On Tue, Jan 2, 2018 at 10:15 PM, Evan Quan <evan.quan at amd.com> wrote: > Change-Id: I861e3e6d4ec553171cbf369eca4ac9d834478290 > Signed-off-by: Evan Quan <evan.quan at amd.com> > --- > drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c > index b314d09..7e87f09 100644 > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c > @@ -1858,6 +1858,25 @@ static int cz_notify_cac_buffer_info(struct pp_hwmgr *hwmgr, > return 0; > } > > +static struct PP_TemperatureRange SMU7ThermalPolicy[] = copy past typo again. With that fixed: Reviewed-by: Alex Deucher <alexander.deucher at amd.com> > +{ > + {-273150, 99000}, > + { 120000, 120000}, > +}; > + > +static int cz_get_thermal_temperature_range(struct pp_hwmgr *hwmgr, > + struct PP_TemperatureRange *thermal_data) > +{ > + struct cz_hwmgr *cz_hwmgr = (struct cz_hwmgr *)(hwmgr->backend); > + > + memcpy(thermal_data, &SMU7ThermalPolicy[0], sizeof(struct PP_TemperatureRange)); > + > + thermal_data->max = (cz_hwmgr->thermal_auto_throttling_treshold + > + cz_hwmgr->sys_info.htc_hyst_lmt) * > + PP_TEMPERATURE_UNITS_PER_CENTIGRADES; > + > + return 0; > +} > > static const struct pp_hwmgr_func cz_hwmgr_funcs = { > .backend_init = cz_hwmgr_backend_init, > @@ -1890,6 +1909,7 @@ static const struct pp_hwmgr_func cz_hwmgr_funcs = { > .power_state_set = cz_set_power_state_tasks, > .dynamic_state_management_disable = cz_disable_dpm_tasks, > .notify_cac_buffer_info = cz_notify_cac_buffer_info, > + .get_thermal_temperature_range = cz_get_thermal_temperature_range, > }; > > int cz_init_function_pointers(struct pp_hwmgr *hwmgr) > -- > 2.7.4 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx