diff options
author | 2021-11-29 23:15:40 -0500 | |
---|---|---|
committer | 2021-12-02 12:58:26 +0100 | |
commit | a602f5111fdd3d8a8ea2ac9e61f1c047d9794062 (patch) | |
tree | 50c9c7533a9dfdd6738ca795d31fd37277fa3a8d /include/linux/wmi.h | |
parent | platform/x86: touchscreen_dmi: Add TrekStor SurfTab duo W1 touchscreen info (diff) | |
download | wireguard-linux-a602f5111fdd3d8a8ea2ac9e61f1c047d9794062.tar.xz wireguard-linux-a602f5111fdd3d8a8ea2ac9e61f1c047d9794062.zip |
platform/x86: amd-pmc: Fix s2idle failures on certain AMD laptops
On some AMD hardware laptops, the system fails communicating with the
PMC when entering s2idle and the machine is battery powered.
Hardware description: HP Pavilion Aero Laptop 13-be0097nr
CPU: AMD Ryzen 7 5800U with Radeon Graphics
GPU: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices,
Inc. [AMD/ATI] Device [1002:1638] (rev c1)
Detailed description of the problem (and investigation) here:
https://gitlab.freedesktop.org/drm/amd/-/issues/1799
Patch is a single line: reduce the polling delay in half, from 100uSec
to 50uSec when waiting for a change in state from the PMC after a
write command operation.
After changing the delay, I did not see a single failure on this
machine (I have this fix for now more than one week and s2idle worked
every single time on battery power).
Cc: stable@vger.kernel.org
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Fabrizio Bertocci <fabriziobertocci@gmail.com>
Link: https://lore.kernel.org/r/CADtzkx7TdfbwtaVEXUdD6YXPey52E-nZVQNs+Z41DTx7gqMqtw@mail.gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/wmi.h')
0 files changed, 0 insertions, 0 deletions