Commit 5e7067b2 authored by John Clements's avatar John Clements Committed by Alex Deucher
Browse files

drm/amdgpu: Add DPM function for XGMI link power down control

parent ab9c2112
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1188,3 +1188,13 @@ int amdgpu_dpm_set_df_cstate(struct amdgpu_device *adev,

	return ret;
}

int amdgpu_dpm_allow_xgmi_power_down(struct amdgpu_device *adev, bool en)
{
	struct smu_context *smu = &adev->smu;

	if (is_support_sw_smu(adev))
		return smu_allow_xgmi_power_down(smu, en);

	return 0;
}
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -538,4 +538,6 @@ int amdgpu_dpm_baco_enter(struct amdgpu_device *adev);
int amdgpu_dpm_set_df_cstate(struct amdgpu_device *adev,
			     uint32_t cstate);

int amdgpu_dpm_allow_xgmi_power_down(struct amdgpu_device *adev, bool en);

#endif