aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorshaoyunl <shaoyun.liu@amd.com>2019-02-21 16:30:25 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-03-19 16:36:48 -0400
commit9b638f9751308ae3ae8f28e0c6e9decffd97f5f9 (patch)
treef64c4de40d4e49ea3f11ba79dbc3e65bd514c2fa /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parenta690aa0f459eba3e768257a655c82b24d14dcc88 (diff)
drm/amdgpu: XGMI pstate switch initial support
Driver vote low to high pstate switch whenever there is an outstanding XGMI mapping request. Driver vote high to low pstate when all the outstanding XGMI mapping is terminated. Signed-off-by: shaoyunl <shaoyun.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 05cd5c460a1d..1de5b2a9921b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1999,6 +1999,9 @@ static void amdgpu_device_ip_late_init_func_handler(struct work_struct *work)
1999 r = amdgpu_device_enable_mgpu_fan_boost(); 1999 r = amdgpu_device_enable_mgpu_fan_boost();
2000 if (r) 2000 if (r)
2001 DRM_ERROR("enable mgpu fan boost failed (%d).\n", r); 2001 DRM_ERROR("enable mgpu fan boost failed (%d).\n", r);
2002
2003 /*set to low pstate by default */
2004 amdgpu_xgmi_set_pstate(adev, 0);
2002} 2005}
2003 2006
2004static void amdgpu_device_delay_enable_gfx_off(struct work_struct *work) 2007static void amdgpu_device_delay_enable_gfx_off(struct work_struct *work)