Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd: Unify shutdown() callback behavior

[Why]
The shutdown() callback uses amdgpu_ip_suspend() which doesn't notify
drm clients during shutdown. This could lead to hangs.

[How]
Change amdgpu_pci_shutdown() to call the same sequence as suspend/resume.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mario Limonciello and committed by
Alex Deucher
e6af507d 2e7ceac0

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
··· 2558 2558 */ 2559 2559 if (!amdgpu_passthrough(adev)) 2560 2560 adev->mp1_state = PP_MP1_STATE_UNLOAD; 2561 - amdgpu_device_ip_suspend(adev); 2561 + amdgpu_device_prepare(dev); 2562 + amdgpu_device_suspend(dev, true); 2562 2563 adev->mp1_state = PP_MP1_STATE_NONE; 2563 2564 } 2564 2565