]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd: Forbid suspending into non-default suspend states
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 8 Apr 2025 18:09:57 +0000 (13:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Apr 2025 19:52:20 +0000 (15:52 -0400)
commit1657793def101dac7c9d3b2250391f6a3dd934ba
treef60b06644a2c9b6ae3ed3487910c923b3c656fbb
parent447fab30955cf7dba7dd563f42b67c02284860c8
drm/amd: Forbid suspending into non-default suspend states

On systems that default to 'deep' some userspace software likes
to try to suspend in 'deep' first.  If there is a failure for any
reason (such as -ENOMEM) the failure is ignored and then it will
try to use 's2idle' as a fallback. This fails, but more importantly
it leads to graphical problems.

Forbid this behavior and only allow suspending in the last state
supported by the system.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4093
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20250408180957.4027643-1-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 2aabd44aa8a3c08da3d43264c168370f6da5e81d)
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c