[Bug 214921] amdgpu hangs HP Laptop on shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

spasswolf@xxxxxx changed:

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

--- Comment #3 from spasswolf@xxxxxx ---
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.



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux