drm/amdgpu/pm: remove the repeated EnableGfxImu message sending
authorTim Huang <tim.huang@amd.com>
Mon, 6 Jun 2022 08:27:06 +0000 (16:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jun 2022 01:38:39 +0000 (21:38 -0400)
The EnableGfxImu message will be issued in the set_gfx_power_up_by_imu.

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>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c

index 196670345552ba60ed063ebaf91aca420fd0c970..82d3718d83244f2e8c2fbbc4789d0ea73cc28bb9 100644 (file)
@@ -219,15 +219,10 @@ static int smu_v13_0_4_system_features_control(struct smu_context *smu, bool en)
 {
        struct amdgpu_device *adev = smu->adev;
        int ret = 0;
-       /* SMU fw need this message to trigger IMU to complete the initialization */
-       if (en)
-               ret = smu_cmn_send_smc_msg(smu, SMU_MSG_EnableGfxImu, NULL);
-       else {
-               if (!adev->in_s0ix)
-                       ret = smu_cmn_send_smc_msg(smu,
-                                                  SMU_MSG_PrepareMp1ForUnload,
-                                                  NULL);
-       }
+
+       if (!en && !adev->in_s0ix)
+               ret = smu_cmn_send_smc_msg(smu, SMU_MSG_PrepareMp1ForUnload, NULL);
+
        return ret;
 }