Displaying 8 results from an estimated 8 matches for "nouveau_dbgopt".
2012 Sep 12
2
[PATCH] drm/nouveau: add default debug level override
...vel, nouveau_debug_level, int, 0400);
+
 /* compares unterminated string 'str' with zero-terminated string 'cmp' */
 static inline int
 strncasecmpz(const char *str, const char *cmp, size_t len)
@@ -86,7 +93,7 @@ nouveau_boolopt(const char *optstr, const char *opt, bool value)
 int
 nouveau_dbgopt(const char *optstr, const char *sub)
 {
-	int mode = 1, level = CONFIG_NOUVEAU_DEBUG_DEFAULT;
+	int mode = 1, level = nouveau_debug_level;
 
 	while (optstr) {
 		int len = strcspn(optstr, ",=");
-- 
1.7.12
2014 Feb 14
0
[PATCH v2] drm/nouveau: use nv_debug for NV_DEBUG, make DRM a separate subflag
...#include <core/class.h>
+#include <core/option.h>
 
 #include <engine/device.h>
 #include <engine/disp.h>
@@ -335,6 +336,7 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
 
 	dev->dev_private = drm;
 	drm->dev = dev;
+	nouveau_client(drm)->debug = nouveau_dbgopt(nouveau_debug, "DRM");
 
 	INIT_LIST_HEAD(&drm->clients);
 	spin_lock_init(&drm->tile.lock);
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h
index 23ca7a5..7efbafa 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.h
+++ b/drivers/gpu...
2014 Feb 01
0
[RFC 03/16] drm/nouveau: add platform device probing function
..., true,
+				     "DEVICE", "device", length, pobject);
+	device = *pobject;
+	if (ret)
+		goto done;
+
+	device->platformdev = pdev;
+	device->handle = name;
+	device->cfgopt = cfg;
+	device->dbgopt = dbg;
+	device->name = sname;
+
+	nv_subdev(device)->debug = nouveau_dbgopt(device->dbgopt, "DEVICE");
+	nv_engine(device)->sclass = nouveau_device_sclass;
+	list_add(&device->head, &nv_devices);
+done:
+	mutex_unlock(&nv_devices_mutex);
+	return ret;
+}
diff --git a/drivers/gpu/drm/nouveau/core/include/engine/device.h b/drivers/gpu/drm/nouve...
2014 Feb 10
0
[PATCH] drm/nouveau: support for platform devices
...;, length, pobject);
> +	device = *pobject;
> +	if (ret)
> +		goto done;
> +
> +	device->platformdev = pdev;
> +	device->handle = name;
> +	device->cfgopt = cfg;
> +	device->dbgopt = dbg;
> +	device->name = sname;
> +
> +	nv_subdev(device)->debug = nouveau_dbgopt(device->dbgopt, "DEVICE");
> +	nv_engine(device)->sclass = nouveau_device_sclass;
> +	list_add(&device->head, &nv_devices);
> +done:
> +	mutex_unlock(&nv_devices_mutex);
> +	return ret;
> +}
I think there's some potential for refactoring here, s...
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
..., true,
+				     "DEVICE", "device", length, pobject);
+	device = *pobject;
+	if (ret)
+		goto done;
+
+	device->platformdev = pdev;
+	device->handle = name;
+	device->cfgopt = cfg;
+	device->dbgopt = dbg;
+	device->name = sname;
+
+	nv_subdev(device)->debug = nouveau_dbgopt(device->dbgopt, "DEVICE");
+	nv_engine(device)->sclass = nouveau_device_sclass;
+	list_add(&device->head, &nv_devices);
+done:
+	mutex_unlock(&nv_devices_mutex);
+	return ret;
+}
diff --git a/drivers/gpu/drm/nouveau/core/engine/falcon.c b/drivers/gpu/drm/nouveau/core/...
2014 May 19
10
[PATCH 0/5] drm/nouveau: platform devices and GK20A probing
This patch series is the final (?) step towards the initial support of GK20A,
allowing it to be probed and used (currently at a very slow speed, and for
offscreen rendering only) on the Jetson TK1 and Venice 2 boards.
The main piece if the first patch which adds platform devices probing support
to Nouveau. There are probably lots of things that need to be discussed about
it, e.g.:
* The way the
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
...+             goto done;
>> +
>> +     device->platformdev = pdev;
>> +     device->handle = name;
>> +     device->cfgopt = cfg;
>> +     device->dbgopt = dbg;
>> +     device->name = sname;
>> +
>> +     nv_subdev(device)->debug = nouveau_dbgopt(device->dbgopt, "DEVICE");
>> +     nv_engine(device)->sclass = nouveau_device_sclass;
>> +     list_add(&device->head, &nv_devices);
>> +done:
>> +     mutex_unlock(&nv_devices_mutex);
>> +     return ret;
>> +}
>
> I think t...
2014 Feb 01
28
[RFC 00/16] drm/nouveau: initial support for GK20A (Tegra K1)
Hello everyone,
GK20A is the Kepler-based GPU used in the upcoming Tegra K1 chips. The following
patches perform architectural changes to Nouveau that are necessary to support
non-PCI GPUs and add initial support for GK20A. Although the support is still
very basic and more user-space changes will be needed to make the full graphics
stack run on top of it, we were able to successfully open