From: Ma Jun Date: Mon, 13 May 2024 08:22:55 +0000 (+0800) Subject: drm/amdgpu/pm: Drop hard-code value of usTMax X-Git-Tag: v6.11-rc1~141^2~25^2~200 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=599142f948cf65ec054c84fb4bc170fe2838411a;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu/pm: Drop hard-code value of usTMax Drop hard-code value of nsTmax because we read this value from pptable. Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher --- 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 17882f8dfdd34..6cfef1b295abb 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