Commit 526e6ca5 authored by Tim Huang's avatar Tim Huang Committed by Alex Deucher
Browse files

drm/amdgpu/pm: remove the repeated EnableGfxImu message sending



The EnableGfxImu message will be issued in the set_gfx_power_up_by_imu.

Signed-off-by: default avatarTim Huang <tim.huang@amd.com>
Reviewed-by: default avatarYifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d52ea3dc
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -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;
}