Correct Vega10, Vega12 and Vega20 hotspot temperature critical max
values.

Change-Id: I77bb77761e8530066ec4f3225f8555cf8f672348
Signed-off-by: Evan Quan <evan.q...@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2 +-
 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c 
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index f4ecbbe854ee..efd9947eb723 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -4871,7 +4871,7 @@ static int vega10_get_thermal_temperature_range(struct 
pp_hwmgr *hwmgr,
 
        memcpy(thermal_data, &SMU7ThermalWithDelayPolicy[0], sizeof(struct 
PP_TemperatureRange));
 
-       thermal_data->max = table_info->tdp_table->usSoftwareShutdownTemp *
+       thermal_data->max = pp_table->ThotspotLimit *
                PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
        thermal_data->hotspot_emergency_max = (pp_table->ThotspotLimit + 
CTF_OFFSET_HOTSPOT) *
                PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c 
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
index 86c48cb56f6c..ba35118a35b8 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
@@ -2574,7 +2574,7 @@ static int vega12_get_thermal_temperature_range(struct 
pp_hwmgr *hwmgr,
 
        memcpy(thermal_data, &SMU7ThermalWithDelayPolicy[0], sizeof(struct 
PP_TemperatureRange));
 
-       thermal_data->max = pptable_information->us_software_shutdown_temp *
+       thermal_data->max = pp_table->ThotspotLimit *
                PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
        thermal_data->hotspot_emergency_max = (pp_table->ThotspotLimit + 
CTF_OFFSET_HOTSPOT) *
                PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c 
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
index 72a71a002f0b..8dcd04561e8f 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
@@ -3989,7 +3989,7 @@ static int vega20_get_thermal_temperature_range(struct 
pp_hwmgr *hwmgr,
 
        memcpy(thermal_data, &SMU7ThermalWithDelayPolicy[0], sizeof(struct 
PP_TemperatureRange));
 
-       thermal_data->max = pptable_information->us_software_shutdown_temp *
+       thermal_data->max = pp_table->ThotspotLimit *
                PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
        thermal_data->hotspot_emergency_max = (pp_table->ThotspotLimit + 
CTF_OFFSET_HOTSPOT) *
                PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
-- 
2.21.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to