drm/amdgpu: Use atomic function to disable crtcs with dc enabled
Subsystems (2)
PATCH 1/1 drm/amdgpu: Use atomic function to disable crtcs with dc enabled
From: Mikita Lipski <[email protected]>
This change fixes the deadlock when unloading the driver with displays connected.
Signed-off-by Mikita Lipski <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +6 -3
@@ -2081,9 +2081,12 @@ void amdgpu_device_fini(struct amdgpu_device *adev)DRM_INFO ("amdgpu: finishing device.\n" ); adev->shutdown = true; -if (adev->mode_info.mode_config_initialized) -drm_crtc_force_disable_all (adev->ddev); - +if (adev->mode_info.mode_config_initialized){ +if (!amdgpu_device_has_dc_support (adev)) +drm_crtc_force_disable_all (adev->ddev); +else +drm_atomic_helper_shutdown (adev->ddev); + }amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev);amdgpu_fbdev_fini (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): 1521049901-481-1-git-send-email-mikita.lipski-5C7GfCeVMHo@public.gmane.org
Andrey Grodzovsky
Reviewed-byReviewed-by Andrey Grodzovsky <[email protected]>
Andrey
Quoted 20 lines · On 03/14/2018 01:51 PM, [email protected] wrote:
From: Mikita Lipski <[email protected]>
This change fixes the deadlock when unloading the driver with displays connected.
Signed-off-by Mikita Lipski <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-2@@ -2081,9 +2081,12 @@ void amdgpu_device_fini(struct amdgpu_device *adev)DRM_INFO ("amdgpu: finishing device.\n" ); adev->shutdown = true; -if (adev->mode_info.mode_config_initialized) -drm_crtc_force_disable_all (adev->ddev);
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c void amdgpu_device_fini(struct amdgpu_device *adev) · line 2092
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +6
-1- +if (adev->mode_info.mode_config_initialized){ +if (!amdgpu_device_has_dc_support (adev)) +drm_crtc_force_disable_all (adev->ddev); +else +drm_atomic_helper_shutdown (adev->ddev); + }amdgpu_ib_pool_fini (adev);amdgpu_fence_driver_fini (adev);amdgpu_fbdev_fini (adev);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx