Displaying 7 results from an estimated 7 matches for "fail_drm".
2020 Nov 06
2
[PATCH 2/3] drm/nouveau: manage nouveau_drm lifetime with devres
...(*nv_dev), drm_dev);
> + if (IS_ERR(nv_dev)) {
> + ret = PTR_ERR(nv_dev);
> goto fail_nvkm;
> }
> + drm_dev = nouveau_to_drm_dev(nv_dev);
>
> ret = pci_enable_device(pdev);
> if (ret)
> - goto fail_drm;
> + goto fail_nvkm;
>
> drm_dev->pdev = pdev;
> pci_set_drvdata(pdev, drm_dev);
> @@ -778,8 +775,6 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
> nouveau_drm_device_fini(drm_dev);
> fail_pci:
> pci_disable_device(pd...
2020 Nov 06
0
[PATCH 2/3] drm/nouveau: manage nouveau_drm lifetime with devres
...drm_dev)) {
- ret = PTR_ERR(drm_dev);
+ nv_dev = devm_drm_dev_alloc(&pdev->dev, &driver_stub, typeof(*nv_dev), drm_dev);
+ if (IS_ERR(nv_dev)) {
+ ret = PTR_ERR(nv_dev);
goto fail_nvkm;
}
+ drm_dev = nouveau_to_drm_dev(nv_dev);
ret = pci_enable_device(pdev);
if (ret)
- goto fail_drm;
+ goto fail_nvkm;
drm_dev->pdev = pdev;
pci_set_drvdata(pdev, drm_dev);
@@ -778,8 +775,6 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
nouveau_drm_device_fini(drm_dev);
fail_pci:
pci_disable_device(pdev);
-fail_drm:
- drm_dev_put(drm_dev);
fail_nvkm:
nvkm_device_del(&...
2018 Dec 07
2
next/master boot bisection: Oops in nouveau driver on jetson-tk1
...rn ret;
+
+ pci_set_master(pdev);
+
+ if (nouveau_atomic)
+ driver_pci.driver_features |= DRIVER_ATOMIC;
+
+ drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev);
+ if (IS_ERR(drm_dev)) {
+ ret = PTR_ERR(drm_dev);
+ goto fail_nvkm;
+ }
+
+ ret = pci_enable_device(pdev);
+ if (ret)
+ goto fail_drm;
+
+ drm_dev->pdev = pdev;
+ pci_set_drvdata(pdev, drm_dev);
+
+ ret = nouveau_drm_device_init(drm_dev);
+ if (ret)
+ goto fail_pci;
+
+ ret = drm_dev_register(drm_dev, pent->driver_data);
+ if (ret)
+ goto fail_drm_dev_init;
+
+ return 0;
+
+fail_drm_dev_init:
+ nouveau_drm_device_fini(drm...
2018 Dec 08
0
next/master boot bisection: Oops in nouveau driver on jetson-tk1
...c)
> + driver_pci.driver_features |= DRIVER_ATOMIC;
> +
> + drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev);
> + if (IS_ERR(drm_dev)) {
> + ret = PTR_ERR(drm_dev);
> + goto fail_nvkm;
> + }
> +
> + ret = pci_enable_device(pdev);
> + if (ret)
> + goto fail_drm;
> +
> + drm_dev->pdev = pdev;
> + pci_set_drvdata(pdev, drm_dev);
> +
> + ret = nouveau_drm_device_init(drm_dev);
> + if (ret)
> + goto fail_pci;
> +
> + ret = drm_dev_register(drm_dev, pent->driver_data);
> + if (ret)
> + goto fail_drm_dev_init;
> +
>...
2018 Dec 10
2
next/master boot bisection: Oops in nouveau driver on jetson-tk1
...DRIVER_ATOMIC;
>> +
>> + drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev);
>> + if (IS_ERR(drm_dev)) {
>> + ret = PTR_ERR(drm_dev);
>> + goto fail_nvkm;
>> + }
>> +
>> + ret = pci_enable_device(pdev);
>> + if (ret)
>> + goto fail_drm;
>> +
>> + drm_dev->pdev = pdev;
>> + pci_set_drvdata(pdev, drm_dev);
>> +
>> + ret = nouveau_drm_device_init(drm_dev);
>> + if (ret)
>> + goto fail_pci;
>> +
>> + ret = drm_dev_register(drm_dev, pent->driver_data);
>> + if (ret)
&g...
2018 Aug 23
3
[PATCH 0/3] drm/nouveau: Fixup module probe to add ->shutdown()
This series is intended to add support for shutting down the GPU on
kernel shutdown/reboot using the ->shutdown() hook, similar to what
amdgpu does. This is mainly intended to workaround a bios issue on the
P50 that was preventing nouveau from initializing the dedicated GM107
GPU on that system properly. You can find more details on this issue in
the patch labeled "Shut down GPU on kernel
2020 Nov 06
4
[PATCH 0/3] drm/nouveau: extend the lifetime of nouveau_drm
Hi folks,
Currently, when the device is removed (or the driver is unbound) the
nouveau_drm structure de-allocated. However, it's still accessible from
and used by some DRM layer callbacks. For example, file handles can be
closed after the device has been removed (physically or otherwise). This
series converts the Nouveau device structure to be allocated and
de-allocated with the