aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
diff options
context:
space:
mode:
authorJohn Clements <[email protected]>2020-05-13 09:45:57 +0000
committerAlex Deucher <[email protected]>2020-05-14 21:42:27 +0000
commit5e7067b24fcf1549c72988dd92de6d17ff3d2077 (patch)
tree1e643720daa936c974f0419338e4088459fae9fc /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
parentdrm/amdgpu: Add cmd to control XGMI link sleep (diff)
downloadkernel-5e7067b24fcf1549c72988dd92de6d17ff3d2077.tar.gz
kernel-5e7067b24fcf1549c72988dd92de6d17ff3d2077.zip
drm/amdgpu: Add DPM function for XGMI link power down control
Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
index 0e8018c9aa8e..d2a105e3bf7c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
@@ -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