aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-06-04 04:39:38 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-06-15 13:20:45 -0400
commit600ae890be59910e65b75fe25a1b900d83c0329c (patch)
tree5e7472260ca37f77c496304b36e36eb929f41006 /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
parentc5792d7776e61737af200bf6f0d15354b5a3d205 (diff)
drm/amdgpu: Use real power source in powerplay instand of hardcode
1. move ac_power to struct pm from dpm, so can be shared with powerplay 2. remove power_source in powerplay, use adev->pm.ac_power instand. 3. update ac_power before dispatch power task. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
index dd6203a0a6b7..9acfbee91c40 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
@@ -402,7 +402,6 @@ struct amdgpu_dpm {
402 u32 tdp_adjustment; 402 u32 tdp_adjustment;
403 u16 load_line_slope; 403 u16 load_line_slope;
404 bool power_control; 404 bool power_control;
405 bool ac_power;
406 /* special states active */ 405 /* special states active */
407 bool thermal_active; 406 bool thermal_active;
408 bool uvd_active; 407 bool uvd_active;
@@ -439,6 +438,7 @@ struct amdgpu_pm {
439 struct amd_pp_display_configuration pm_display_cfg;/* set by dc */ 438 struct amd_pp_display_configuration pm_display_cfg;/* set by dc */
440 uint32_t smu_prv_buffer_size; 439 uint32_t smu_prv_buffer_size;
441 struct amdgpu_bo *smu_prv_buffer; 440 struct amdgpu_bo *smu_prv_buffer;
441 bool ac_power;
442}; 442};
443 443
444#define R600_SSTU_DFLT 0 444#define R600_SSTU_DFLT 0