[PATCH] drm/amd/powerplay: set fan target temperature by msg on vega10.

Alex Deucher alexdeucher at gmail.com
Tue May 2 14:05:01 UTC 2017


On Tue, May 2, 2017 at 5:49 AM, Rex Zhu <Rex.Zhu at amd.com> wrote:
> SMU not support FanTargetTemperature in pptable,
> so send msg instand.
>
> Change-Id: Idc9cec95fb8d4f1479f727c8693c1186d28b5435
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> index 7062ec8..5da88ba 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> @@ -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
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list