aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/kgd_pp_interface.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-10-11 00:53:40 -0400
committerDave Airlie <airlied@redhat.com>2018-10-11 00:53:45 -0400
commitca4b869240d5810ebac6b1570ad7beffcfbac2f5 (patch)
treed7e36e551b058316ab35e28f1bb992ce06b2ce0c /drivers/gpu/drm/amd/include/kgd_pp_interface.h
parent46972c03ab667dc298cad0c9db517fb9b1521b5f (diff)
parentdf2fc43d09d3ee5ede82cab9299df5e78aa427b5 (diff)
Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux into drm-next
Add a new list.h helper for doing bulk updates. Used by ttm. - Fixes for display underflow on VI APUs at 4K with UVD running - Endian fixes for powerplay on vega - DC fixes for interlaced video - Vega20 powerplay fixes - RV/RV2/PCO powerplay fixes - Fix for spurious ACPI events on HG laptops - Fix a memory leak in DC on driver unload - Fixes for manual fan control mode switching - Suspend/resume robustness fixes - Fix display handling on RV2 - VCN fixes for DPG on PCO - Misc code cleanups and warning fixes Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexdeucher@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181011014739.3117-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/include/kgd_pp_interface.h')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_pp_interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
index bd7404532029..980e696989b1 100644
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
@@ -114,6 +114,8 @@ enum amd_pp_sensors {
114 AMDGPU_PP_SENSOR_STABLE_PSTATE_SCLK, 114 AMDGPU_PP_SENSOR_STABLE_PSTATE_SCLK,
115 AMDGPU_PP_SENSOR_STABLE_PSTATE_MCLK, 115 AMDGPU_PP_SENSOR_STABLE_PSTATE_MCLK,
116 AMDGPU_PP_SENSOR_ENABLED_SMC_FEATURES_MASK, 116 AMDGPU_PP_SENSOR_ENABLED_SMC_FEATURES_MASK,
117 AMDGPU_PP_SENSOR_MIN_FAN_RPM,
118 AMDGPU_PP_SENSOR_MAX_FAN_RPM,
117}; 119};
118 120
119enum amd_pp_task { 121enum amd_pp_task {
@@ -228,6 +230,7 @@ struct amd_pm_funcs {
228 enum amd_dpm_forced_level (*get_performance_level)(void *handle); 230 enum amd_dpm_forced_level (*get_performance_level)(void *handle);
229 enum amd_pm_state_type (*get_current_power_state)(void *handle); 231 enum amd_pm_state_type (*get_current_power_state)(void *handle);
230 int (*get_fan_speed_rpm)(void *handle, uint32_t *rpm); 232 int (*get_fan_speed_rpm)(void *handle, uint32_t *rpm);
233 int (*set_fan_speed_rpm)(void *handle, uint32_t rpm);
231 int (*get_pp_num_states)(void *handle, struct pp_states_info *data); 234 int (*get_pp_num_states)(void *handle, struct pp_states_info *data);
232 int (*get_pp_table)(void *handle, char **table); 235 int (*get_pp_table)(void *handle, char **table);
233 int (*set_pp_table)(void *handle, const char *buf, size_t size); 236 int (*set_pp_table)(void *handle, const char *buf, size_t size);
@@ -272,6 +275,7 @@ struct amd_pm_funcs {
272 int (*get_display_mode_validation_clocks)(void *handle, 275 int (*get_display_mode_validation_clocks)(void *handle,
273 struct amd_pp_simple_clock_info *clocks); 276 struct amd_pp_simple_clock_info *clocks);
274 int (*notify_smu_enable_pwe)(void *handle); 277 int (*notify_smu_enable_pwe)(void *handle);
278 int (*enable_mgpu_fan_boost)(void *handle);
275}; 279};
276 280
277#endif 281#endif