Skip to content

Commit e8d6d6f

Browse files
committed
Merge tag 'amd-drm-fixes-6.3-2023-03-30' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-6.3-2023-03-30: amdgpu: - Hibernation regression fix Signed-off-by: Daniel Vetter <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 69620d5 + 2fec9dc commit e8d6d6f

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)