drm/amdgpu: Correct the place of amdgpu_pm_sysfs_fini
Subsystems (2)
PATCH 1/1 drm/amdgpu: Correct the place of amdgpu_pm_sysfs_fini
The amdgpu_pm_sysfs_fini should call before amdgpu_device_ip_fini, or the adev->pm.dpm_enabled would be set to 0, then the device files related to pp won't be removed by amdgpu_pm_sysfs_fini when unload driver.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -2096,6 +2096,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev)amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev); +amdgpu_pm_sysfs_fini (adev);amdgpu_fbdev_fini (adev); r =amdgpu_device_ip_fini (adev);if (adev->firmware.gpu_info_fw) {
@@ -2124,7 +2125,6 @@ void amdgpu_device_fini(struct amdgpu_device *adev)iounmap (adev->rmmio); adev->rmmio =NULL ;amdgpu_device_doorbell_fini (adev); -amdgpu_pm_sysfs_fini (adev);amdgpu_debugfs_regs_cleanup (adev); }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1520417843-23417-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byQuoted 6 lines · Emily Deng
The
amdgpu_pm_sysfs_finishould call beforeamdgpu_device_ip_fini, or theadev->pm.dpm_enabledwould be set to 0, then the device files related to pp won't be removed byamdgpu_pm_sysfs_finiwhen unload driver.Signed-off-by Emily Deng <[email protected]>
Quoted 27 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -2096,6 +2096,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev)amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev); +amdgpu_pm_sysfs_fini (adev);amdgpu_fbdev_fini (adev); r =amdgpu_device_ip_fini (adev);if (adev->firmware.gpu_info_fw) {@@ -2124,7 +2125,6 @@ void amdgpu_device_fini(struct amdgpu_device *adev)iounmap (adev->rmmio); adev->rmmio =NULL ;amdgpu_device_doorbell_fini (adev); -amdgpu_pm_sysfs_fini (adev);amdgpu_debugfs_regs_cleanup (adev); } --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx