drm/amdgpu: Add DPM function for XGMI link power down control
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: John Clements <john.clements@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
ab9c21124d
commit
5e7067b24f
@@ -1188,3 +1188,13 @@ int amdgpu_dpm_set_df_cstate(struct amdgpu_device *adev,
|
|||||||
|
|
||||||
return ret;
|
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;
|
||||||
|
}
|
||||||
@@ -538,4 +538,6 @@ int amdgpu_dpm_baco_enter(struct amdgpu_device *adev);
|
|||||||
int amdgpu_dpm_set_df_cstate(struct amdgpu_device *adev,
|
int amdgpu_dpm_set_df_cstate(struct amdgpu_device *adev,
|
||||||
uint32_t cstate);
|
uint32_t cstate);
|
||||||
|
|
||||||
|
int amdgpu_dpm_allow_xgmi_power_down(struct amdgpu_device *adev, bool en);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user