drm/amdgpu/pm: Drop hard-code value of usTMax
authorMa Jun <Jun.Ma2@amd.com>
Mon, 13 May 2024 08:22:55 +0000 (16:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:40:36 +0000 (17:40 -0400)
Drop hard-code value of nsTmax because we read this
value from pptable.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c

index 17882f8dfdd34f92d5d37a9b0ee37f4a7d1bb406..6cfef1b295abbe1c9e7a82675e568c6d8cc44833 100644 (file)
@@ -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