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:03:07 +0000 (12:03 +0100)
commit72808bb42c87c4887c553ea8d9f4ecaf15d867d3
tree8e38220584a4dd7705b818c65b6c1f2378d7464f
parent0ceba4d64feec0c05dc5fbd549a703e25035d7d1
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