drm/amdgpu: disable CRTCs before teardown
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable CRTCs before teardown
Some code called by drm_crtc_force_disable_all() wants to wait for all fences, so only do fence teardown after CRTCs are disabled.
--- 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
@@ -1822,11 +1822,11 @@ void amdgpu_device_fini(struct amdgpu_device *adev)DRM_INFO ("amdgpu: finishing device.\n" ); adev->shutdown = true; +drm_crtc_force_disable_all (adev->ddev);/* evict vram memory */ amdgpu_bo_evict_vram (adev);amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev); -drm_crtc_force_disable_all (adev->ddev);amdgpu_fbdev_fini (adev); r =amdgpu_fini (adev);kfree (adev->ip_block_status);
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 2 lines · Grazvydas Ignotas
Some code called by
drm_crtc_force_disable_all()wants to wait for all fences, so only do fence teardown after CRTCs are disabled.
Ugh, how embarrassing, that was added by me.
Do you have a BUG splat (e.g. soft lockup) for this? I'd be curious to see exactly where things explode, would also be good to have that in the commit message.
Thanks!
Lukas
Quoted 25 lines
Signed-off-by Grazvydas Ignotas <[email protected]>--- 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@@ -1822,11 +1822,11 @@ void amdgpu_device_fini(struct amdgpu_device *adev)DRM_INFO ("amdgpu: finishing device.\n" ); adev->shutdown = true; +drm_crtc_force_disable_all (adev->ddev);/* evict vram memory */ amdgpu_bo_evict_vram (adev);amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev); -drm_crtc_force_disable_all (adev->ddev);amdgpu_fbdev_fini (adev); r =amdgpu_fini (adev);kfree (adev->ip_block_status);Signature · 1 line
2.7.4
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Grazvydas Ignotas
Some code called by
drm_crtc_force_disable_all()wants to wait for all fences, so only do fence teardown after CRTCs are disabled.Signed-off-by Grazvydas Ignotas <[email protected]>
Alex, would it be possible to get this fix into 4.8 this week?
Thanks!
Lukas
Quoted 28 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
-1@@ -1822,11 +1822,11 @@ void amdgpu_device_fini(struct amdgpu_device *adev)DRM_INFO ("amdgpu: finishing device.\n" ); adev->shutdown = true; +drm_crtc_force_disable_all (adev->ddev);/* evict vram memory */ amdgpu_bo_evict_vram (adev);amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev); -drm_crtc_force_disable_all (adev->ddev);amdgpu_fbdev_fini (adev); r =amdgpu_fini (adev);kfree (adev->ip_block_status);Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Lukas Wunner
Quoted 2 lines · Grazvydas Ignotas
Some code called by
drm_crtc_force_disable_all()wants to wait for all fences, so only do fence teardown after CRTCs are disabled.Ugh, how embarrassing, that was added by me.
Do you have a BUG splat (e.g. soft lockup) for this? I'd be curious to see exactly where things explode, would also be good to have that in the commit message.
It can be seen here, the first one:
https://bugs.freedesktop.org/attachment.cgi?id=126769
I'm not sure it's that useful to have the full BUG dump with all the registers, pointers and stuff in the commit message, like some people like to have, most of that is only relevant for my specific build.
Gražvydas
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel