]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd: Don't allow s0ix on APUs older than Raven
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 13 Feb 2023 21:10:30 +0000 (15:10 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 9 Aug 2023 09:38:17 +0000 (11:38 +0200)
commit8424b82c03f0b63899b6f13213330b6d819c5cf1
treef42719a69656eec4434a16acc3e2cddb13c113bb
parentf715c3c21bf6c54a110fd2dc33bce1918df4399d
drm/amd: Don't allow s0ix on APUs older than Raven

BugLink: https://bugs.launchpad.net/bugs/2028979
commit ca47518663973083c513cd6b2801dcda0bfaaa99 upstream.

APUs before Raven didn't support s0ix.  As we just relieved some
of the safety checks for s0ix to improve power consumption on
APUs that support it but that are missing BIOS support a new
blind spot was introduced that a user could "try" to run s0ix.

Plug this hole so that if users try to run s0ix on anything older
than Raven it will just skip suspend of the GPU.

Fixes: cf488dcd0ab7 ("drm/amd: Allow s0ix without BIOS support")
Suggested-by: Alexander Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c