Displaying 5 results from an estimated 5 matches for "nouveau_device_platform_create_".
2014 Feb 01
0
[RFC 03/16] drm/nouveau: add platform device probing function
.../device/base.c b/drivers/gpu/drm/nouveau/core/engine/device/base.c
index a6abb51..ba6c2f2 100644
--- a/drivers/gpu/drm/nouveau/core/engine/device/base.c
+++ b/drivers/gpu/drm/nouveau/core/engine/device/base.c
@@ -543,3 +543,37 @@ done:
mutex_unlock(&nv_devices_mutex);
return ret;
}
+
+int
+nouveau_device_platform_create_(struct platform_device *pdev, u64 name,
+ const char *sname, const char *cfg,
+ const char *dbg, int length, void **pobject)
+{
+ struct nouveau_device *device;
+ int ret = -EEXIST;
+
+ mutex_lock(&nv_devices_mutex);
+ list_for_each_entry(device, &nv_devices, head) {
+ if (device->...
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
...rm_get_irq_byname(device->platformdev,
+ stall ? "stall" : "nonstall");
+ }
+}
+
static struct nouveau_oclass
nouveau_device_oclass = {
.handle = NV_ENGINE(DEVICE, 0x00),
@@ -489,3 +555,37 @@ done:
mutex_unlock(&nv_devices_mutex);
return ret;
}
+
+int
+nouveau_device_platform_create_(struct platform_device *pdev, u64 name,
+ const char *sname, const char *cfg,
+ const char *dbg, int length, void **pobject)
+{
+ struct nouveau_device *device;
+ int ret = -EEXIST;
+
+ mutex_lock(&nv_devices_mutex);
+ list_for_each_entry(device, &nv_devices, head) {
+ if (device->...
2014 Feb 10
0
[PATCH] drm/nouveau: support for platform devices
...hat away and it's not like
this is called from a hot path.
I do see that pci_resource_len() does additional checking for BARs that
have zero size (start == 0 && end == start), so it's not exactly the
same, but I think there's another issue with that, see below.
> +int
> +nouveau_device_platform_create_(struct platform_device *pdev, u64 name,
> + const char *sname, const char *cfg,
> + const char *dbg, int length, void **pobject)
> +{
> + struct nouveau_device *device;
> + int ret = -EEXIST;
> +
> + mutex_lock(&nv_devices_mutex);
> + list_for_each_entry(device, &a...
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
...ly make the code crash later).
>
> I do see that pci_resource_len() does additional checking for BARs that
> have zero size (start == 0 && end == start), so it's not exactly the
> same, but I think there's another issue with that, see below.
>
>> +int
>> +nouveau_device_platform_create_(struct platform_device *pdev, u64 name,
>> + const char *sname, const char *cfg,
>> + const char *dbg, int length, void **pobject)
>> +{
>> + struct nouveau_device *device;
>> + int ret = -EEXIST;
>>...
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