Skip to content

Commit 6917112

Browse files
Timur Kristófalexdeucher
authored andcommitted
drm/amd/powerplay: Fix CIK shutdown temperature
Remove extra multiplication. CIK GPUs such as Hawaii appear to use PP_TABLE_V0 in which case the shutdown temperature is hardcoded in smu7_init_dpm_defaults and is already multiplied by 1000. The value was mistakenly multiplied another time by smu7_get_thermal_temperature_range. Fixes: 4ba0825 ("drm/amd/powerplay: export the thermal ranges of VI asics (V2)") Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1676 Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Timur Kristóf <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ef38b4e commit 6917112

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5444,8 +5444,7 @@ static int smu7_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
54445444
thermal_data->max = table_info->cac_dtp_table->usSoftwareShutdownTemp *
54455445
PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
54465446
else if (hwmgr->pp_table_version == PP_TABLE_V0)
5447-
thermal_data->max = data->thermal_temp_setting.temperature_shutdown *
5448-
PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
5447+
thermal_data->max = data->thermal_temp_setting.temperature_shutdown;
54495448

54505449
thermal_data->sw_ctf_threshold = thermal_data->max;
54515450

0 commit comments

Comments
 (0)