drm/amd/powerplay: set fan target temperature by msg on vega10.
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: set fan target temperature by msg on vega10.
SMU not support FanTargetTemperature in pptable,
so send msg instand.
Change-Id Idc9cec95fb8d4f1479f727c8693c1186d28b5435
Signed-off-by Rex Zhu <[email protected]>
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c +5 -0
@@ -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.
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1493718588-16322-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byQuoted 5 lines · Rex Zhu
SMU not support FanTargetTemperature in pptable,
so send msg instand.Change-Id Idc9cec95fb8d4f1479f727c8693c1186d28b5435Signed-off-by Rex Zhu <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 23 lines
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c +5
-1@@ -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. --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx