diff options
| author | Mario Limonciello <[email protected]> | 2025-04-08 18:09:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-11 20:53:08 +0000 |
| commit | 2aabd44aa8a3c08da3d43264c168370f6da5e81d (patch) | |
| tree | 351d284da5c8e67779d316df0793867eee49e35a /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu: use a dummy owner for sysfs triggered cleaner shaders v4 (diff) | |
| download | kernel-2aabd44aa8a3c08da3d43264c168370f6da5e81d.tar.gz kernel-2aabd44aa8a3c08da3d43264c168370f6da5e81d.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 804d37703709..bb5df7831308 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1150,6 +1150,7 @@ struct amdgpu_device { bool in_s3; bool in_s4; bool in_s0ix; + suspend_state_t last_suspend_state; enum pp_mp1_state mp1_state; struct amdgpu_doorbell_index doorbell_index; |
