]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/powerplay: Fix CIK shutdown temperature
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 13 Oct 2025 06:06:42 +0000 (08:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:03:09 +0000 (14:03 +0100)
[ Upstream commit 6917112af2ba36c5f19075eb9f2933ffd07e55bf ]

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: 4ba082572a42 ("drm/amd/powerplay: export the thermal ranges of VI asics (V2)")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1676
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

index 2d1f37aefdbd123fb47ec185a870df682479a3c4..e25032ad16be7b26ec8b1e5a6b1eb1c32c30bff7 100644 (file)
@@ -5387,8 +5387,7 @@ static int smu7_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
                thermal_data->max = table_info->cac_dtp_table->usSoftwareShutdownTemp *
                        PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
        else if (hwmgr->pp_table_version == PP_TABLE_V0)
-               thermal_data->max = data->thermal_temp_setting.temperature_shutdown *
-                       PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
+               thermal_data->max = data->thermal_temp_setting.temperature_shutdown;
 
        return 0;
 }