drm/amdkfd: add proper handling for S0ix
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Sep 2025 16:42:09 +0000 (12:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Sep 2025 18:59:24 +0000 (14:59 -0400)
commit2ade36eaa9ac05e4913e9785df19c2cde8f912fb
treef6a2eb0bd219cbb39375549a6683f9631b592c27
parentf9b80514a7227c589291792cb6743b0ddf41c2bc
drm/amdkfd: add proper handling for S0ix

When in S0i3, the GFX state is retained, so all we need to do
is stop the runlist so GFX can enter gfxoff.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Tested-by: David Perry <david.perry@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4bfa8609934dbf39bbe6e75b4f971469384b50b1)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_device.c