Skip to content

Commit 2fec9dc

Browse files
Tim Huangalexdeucher
authored andcommitted
drm/amdgpu: allow more APUs to do mode2 reset when go to S4
Skip mode2 reset only for IMU enabled APUs when do S4. This patch is to fix the regression issue https://gitlab.freedesktop.org/drm/amd/-/issues/2483 It is generated by commit b589626 ("drm/amdgpu: skip ASIC reset for APUs when go to S4"). Fixes: b589626 ("drm/amdgpu: skip ASIC reset for APUs when go to S4") Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2483 Tested-by: Yuan Perry <[email protected]> Signed-off-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.1.x
1 parent 68dc184 commit 2fec9dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,12 @@ static bool amdgpu_atcs_pci_probe_handle(struct pci_dev *pdev)
981981
*/
982982
bool amdgpu_acpi_should_gpu_reset(struct amdgpu_device *adev)
983983
{
984-
if (adev->flags & AMD_IS_APU)
984+
if ((adev->flags & AMD_IS_APU) &&
985+
adev->gfx.imu.funcs) /* Not need to do mode2 reset for IMU enabled APUs */
986+
return false;
987+
988+
if ((adev->flags & AMD_IS_APU) &&
989+
amdgpu_acpi_is_s3_active(adev))
985990
return false;
986991

987992
if (amdgpu_sriov_vf(adev))

0 commit comments

Comments
 (0)