Skip to content

Commit d78fa1c

Browse files
timhuang-amdalexdeucher
authored andcommitted
drm/amd/pm: not stop rlc for IMU enabled APUs when suspend
For IMU enabled APUs, after sending the PrepareMp1ForUnload message to SMU in system_features_control, the RLC registers can't be touched. The driver to stop the rlc in suspending is no longer required. Signed-off-by: Tim Huang <Tim.Huang@amd.com> Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c68b455 commit d78fa1c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,6 +1711,7 @@ static int smu_disable_dpms(struct smu_context *smu)
17111711
}
17121712

17131713
if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(9, 4, 2) &&
1714+
!((adev->flags & AMD_IS_APU) && adev->gfx.imu.funcs) &&
17141715
!amdgpu_sriov_vf(adev) && adev->gfx.rlc.funcs->stop)
17151716
adev->gfx.rlc.funcs->stop(adev);
17161717

0 commit comments

Comments
 (0)