Skip to content

Commit bbfaf2a

Browse files
Ma Junalexdeucher
authored andcommitted
drm/amdgpu: Fix the runtime resume failure issue
Don't set power state flag when system enter runtime suspend, or it may cause runtime resume failure issue. Fixes: 3a9626c ("drm/amd: Stop evicting resources on APUs in suspend") Signed-off-by: Ma Jun <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 9671761 commit bbfaf2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,9 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev)
15281528
*/
15291529
void amdgpu_choose_low_power_state(struct amdgpu_device *adev)
15301530
{
1531+
if (adev->in_runpm)
1532+
return;
1533+
15311534
if (amdgpu_acpi_is_s0ix_active(adev))
15321535
adev->in_s0ix = true;
15331536
else if (amdgpu_acpi_is_s3_active(adev))

0 commit comments

Comments
 (0)