[PATCH 2/3] drm/amd/powerplay: updated vega10 fan control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 28, 2017 at 04:00:45PM +0800, Evan Quan wrote:
> Change-Id: Ifbeb1f0c8e195cc9cb1e9cff975284d96d49b193
> Signed-off-by: Evan Quan <evan.quan at amd.com>

Reviewed-by: Huang Rui <ray.huang at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
>  mode change 100644 => 100755 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> old mode 100644
> new mode 100755
> index 7bb4e46..ace1aca
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> @@ -321,10 +321,7 @@ int vega10_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr)
>  
>  	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
>  			PHM_PlatformCaps_MicrocodeFanControl)) {
> -		result = vega10_fan_ctrl_set_static_mode(hwmgr,
> -				FDO_PWM_MODE_STATIC);
> -		if (!result)
> -			result = vega10_fan_ctrl_start_smc_fan_control(hwmgr);
> +		result = vega10_fan_ctrl_start_smc_fan_control(hwmgr);
>  	} else
>  		result = vega10_fan_ctrl_set_default_mode(hwmgr);
>  
> @@ -633,7 +630,6 @@ int tf_vega10_thermal_start_smc_fan_control(struct pp_hwmgr *hwmgr,
>  	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
>  			PHM_PlatformCaps_MicrocodeFanControl)) {
>  		vega10_fan_ctrl_start_smc_fan_control(hwmgr);
> -		vega10_fan_ctrl_set_static_mode(hwmgr, FDO_PWM_MODE_STATIC);
>  	}
>  
>  	return 0;
> -- 
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux