mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/amdgpu: Fix the runtime resume failure issue
[ Upstream commit bbfaf2aea7164db59739728d62d9cc91d64ff856 ]
Don't set power state flag when system enter runtime suspend,
or it may cause runtime resume failure issue.
Fixes: 3a9626c816db ("drm/amd: Stop evicting resources on APUs in suspend")
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Stable-dep-of: d0ce1aaa8531 ("Revert "drm/amd: Stop evicting resources on APUs in suspend"")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6b9418c825
commit
c3408b49e3
@@ -1127,6 +1127,9 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev)
|
|||||||
*/
|
*/
|
||||||
void amdgpu_choose_low_power_state(struct amdgpu_device *adev)
|
void amdgpu_choose_low_power_state(struct amdgpu_device *adev)
|
||||||
{
|
{
|
||||||
|
if (adev->in_runpm)
|
||||||
|
return;
|
||||||
|
|
||||||
if (amdgpu_acpi_is_s0ix_active(adev))
|
if (amdgpu_acpi_is_s0ix_active(adev))
|
||||||
adev->in_s0ix = true;
|
adev->in_s0ix = true;
|
||||||
else if (amdgpu_acpi_is_s3_active(adev))
|
else if (amdgpu_acpi_is_s3_active(adev))
|
||||||
|
|||||||
Reference in New Issue
Block a user