Skip to content

Commit e4c44b1

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Explicitly check for GFXOFF to be enabled for s0ix
If a user has disabled GFXOFF this may cause problems for the suspend sequence. Ensure that it is enabled in amdgpu_acpi_is_s0ix_active(). The system won't reach the deepest state but it also won't hang. Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1972642 commit e4c44b1

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
@@ -1497,6 +1497,9 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev)
14971497
if (adev->asic_type < CHIP_RAVEN)
14981498
return false;
14991499

1500+
if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
1501+
return false;
1502+
15001503
/*
15011504
* If ACPI_FADT_LOW_POWER_S0 is not set in the FADT, it is generally
15021505
* risky to do any special firmware-related preparations for entering

0 commit comments

Comments
 (0)