Re: [PATCH] drm/amdgpu/pm: Drop hard-code value of usTMax

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

 




On 5/14/2024 9:43 AM, Ma Jun wrote:
> Drop hard-code value of nsTmax because we read this
> value from fantable below.
> 
> Signed-off-by: Ma Jun <Jun.Ma2@xxxxxxx>

Reviewed-by: Lijo Lazar <lijo.lazar@xxxxxxx>

Thanks,
Lijo

> ---
>  drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
> index 17882f8dfdd3..6cfef1b295ab 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
> +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
> @@ -977,8 +977,6 @@ static int init_thermal_controller(
>  			= le16_to_cpu(tonga_fan_table->usPWMMed);
>  		hwmgr->thermal_controller.advanceFanControlParameters.usPWMHigh
>  			= le16_to_cpu(tonga_fan_table->usPWMHigh);
> -		hwmgr->thermal_controller.advanceFanControlParameters.usTMax
> -			= 10900;                  /* hard coded */
>  		hwmgr->thermal_controller.advanceFanControlParameters.usTMax
>  			= le16_to_cpu(tonga_fan_table->usTMax);
>  		hwmgr->thermal_controller.advanceFanControlParameters.ucFanControlMode



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

  Powered by Linux