diff options
author | 2023-10-19 10:24:11 +0800 | |
---|---|---|
committer | 2023-11-07 12:03:31 -0500 | |
commit | d78fa1c309327cee1cfb7c608ec59f5a60ab94bd (patch) | |
tree | 04cf068ef07039f4a12653d4ab3c3074519c333b /drivers/gpu | |
parent | drm/amd/display: avoid variable reinitialization (diff) | |
download | linux-d78fa1c309327cee1cfb7c608ec59f5a60ab94bd.tar.gz linux-d78fa1c309327cee1cfb7c608ec59f5a60ab94bd.tar.bz2 linux-d78fa1c309327cee1cfb7c608ec59f5a60ab94bd.zip |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index d86750df5940..1ead323f1c78 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c @@ -1711,6 +1711,7 @@ static int smu_disable_dpms(struct smu_context *smu) } if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(9, 4, 2) && + !((adev->flags & AMD_IS_APU) && adev->gfx.imu.funcs) && !amdgpu_sriov_vf(adev) && adev->gfx.rlc.funcs->stop) adev->gfx.rlc.funcs->stop(adev); |