drm/amdgpu: add judgement for suspend/resume sequence
authorLikun Gao <Likun.Gao@amd.com>
Tue, 15 Dec 2020 16:32:20 +0000 (11:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:32:46 +0000 (11:32 -0500)
commit9ca5b8a170d180889bec0424c27fdd2ee84d2d99
treee7fb8cf1b2791f0f6547e1a46e5b0432e7cb31dd
parenta9c210c1e5fefd621954fca50c72780bf0198327
drm/amdgpu: add judgement for suspend/resume sequence

S0ix only makes sense on APUs since they are part of the platform, so
only when the ASIC is APU should set amdgpu_acpi_is_s0ix_supported flag
to deal with the related situation.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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