]> Git Repo - linux.git/commitdiff
drm/amd/pm: not stop rlc for IMU enabled APUs when suspend
authorTim Huang <[email protected]>
Thu, 19 Oct 2023 02:24:11 +0000 (10:24 +0800)
committerAlex Deucher <[email protected]>
Tue, 7 Nov 2023 17:03:31 +0000 (12:03 -0500)
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 <[email protected]>
Reviewed-by: Yifan Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index d86750df59405ee2ec596ebff16f7aadd97cb1ab..1ead323f1c78138b0176ec55032fd990239e94fa 100644 (file)
@@ -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);
 
This page took 0.086236 seconds and 4 git commands to generate.