[Bug 214921] amdgpu hangs HP Laptop on shutdown

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Sun Nov 7 13:21:28 UTC 2021


https://bugzilla.kernel.org/show_bug.cgi?id=214921

spasswolf at web.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Kernel Version|5.15                        |5.15, 5.15.1

--- Comment #3 from spasswolf at web.de ---
Shutdown still hangs with linux-5.15.1.
This fixes the shutdown issue for me:
diff -aur linux-5.15.1.orig/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
linux-5.15.1/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
--- linux-5.15.1.orig/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c     2021-11-06
14:13:31.000000000 +0100
+++ linux-5.15.1/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c  2021-11-07
14:19:39.194630084 +0100
@@ -554,18 +554,6 @@
         * jobs for clockgating/powergating/dpm setting to
         * ->set_powergating_state().
         */
-       cancel_delayed_work_sync(&adev->uvd.idle_work);
-
-       if (adev->pm.dpm_enabled) {
-               amdgpu_dpm_enable_uvd(adev, false);
-       } else {
-               amdgpu_asic_set_uvd_clocks(adev, 0, 0);
-               /* shutdown the UVD block */
-               amdgpu_device_ip_set_powergating_state(adev,
AMD_IP_BLOCK_TYPE_UVD,
-                                                      AMD_PG_STATE_GATE);
-               amdgpu_device_ip_set_clockgating_state(adev,
AMD_IP_BLOCK_TYPE_UVD,
-                                                      AMD_CG_STATE_GATE);
-       }

        if (RREG32(mmUVD_STATUS) != 0)
                uvd_v6_0_stop(adev);

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the dri-devel mailing list