drm/amd/powerplay: set fan target temperature by msg on vega10.
SMU not support FanTargetTemperature in pptable, so send msg instand. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
05ee321511
commit
56a2f08c41
|
@ -561,6 +561,11 @@ int tf_vega10_thermal_setup_fan_table(struct pp_hwmgr *hwmgr,
|
|||
advanceFanControlParameters.ulMinFanSCLKAcousticLimit);
|
||||
table->FanTargetTemperature = hwmgr->thermal_controller.
|
||||
advanceFanControlParameters.usTMax;
|
||||
|
||||
smum_send_msg_to_smc_with_parameter(hwmgr->smumgr,
|
||||
PPSMC_MSG_SetFanTemperatureTarget,
|
||||
(uint32_t)table->FanTargetTemperature);
|
||||
|
||||
table->FanPwmMin = hwmgr->thermal_controller.
|
||||
advanceFanControlParameters.usPWMMin * 255 / 100;
|
||||
table->FanTargetGfxclk = (uint16_t)(hwmgr->thermal_controller.
|
||||
|
|
Loading…
Reference in New Issue