Revert "drm/amd: Stop evicting resources on APUs in suspend"
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 1 May 2025 17:00:16 +0000 (13:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 21:42:30 +0000 (17:42 -0400)
commitce8f7d95899c2869b47ea6ce0b3e5bf304b2fff4
tree988bb380755bdee0d95ebd4dcab5aa3066e8f828
parent5c89ceda9984498b28716944633a9a01cbb2c90d
Revert "drm/amd: Stop evicting resources on APUs in suspend"

This reverts commit 3a9626c816db901def438dc2513622e281186d39.

This breaks S4 because we end up setting the s3/s0ix flags
even when we are entering s4 since prepare is used by both
flows.  The causes both the S3/s0ix and s4 flags to be set
which breaks several checks in the driver which assume they
are mutually exclusive.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3634
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c