drm/amd: add support to check whether the system is set to s3
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 26 Jan 2022 03:35:09 +0000 (21:35 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:05:51 +0000 (12:05 +0100)
commit73e682d985331ecd7fe0d83dbc24db37cde60d32
tree759eb95f0f15e4f41cb3c9b38874145eb8c3453d
parent3132b1d27f57ac09163c526d93e41d1a15118f90
drm/amd: add support to check whether the system is set to s3

[ Upstream commit f52a2b8badbd24faf73a13c9c07fdb9d07352944 ]

This will be used to help make decisions on what to do in
misconfigured systems.

v2: squash in semicolon fix from Stephen Rothwell

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: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c