drm/amd/pm: fix smu overdrive data type wrong issue on smu 14.0.2
Subsystems (3)
PATCH 1/1 drm/amd/pm: fix smu overdrive data type wrong issue on smu 14.0.2
resolving the issue of incorrect type definitions potentially causing calculation errors.
Fixes eaa4293e87aa ("drm/amdgpu/swm14: Update power limit logic")
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c +2 -1
@@ -1633,8 +1633,9 @@ static int smu_v14_0_2_get_power_limit(struct smu_context *smu, table_context->power_play_table;PPTable_t *pptable = table_context->driver_pptable;CustomSkuTable_t *skutable = &pptable->CustomSkuTable; -uint32_t power_limit, od_percent_upper =0 , od_percent_lower =0 ; +int16_t od_percent_upper =0 , od_percent_lower =0 ;uint32_t msg_limit = pptable->SkuTable.MsgLimits.Power[PPT_THROTTLER_PPT0 ][POWER_SOURCE_AC ]; +uint32_t power_limit;if (smu_v14_0_get_current_power_limit (smu, &power_limit)) power_limit = smu->adev->pm.ac_power ?
Signature · 1 line
2.34.1
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Tuesday, January 6, 2026 14:49
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>; Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/pm: fix smu overdrive data type wrong issue on smu 14.0.2
resolving the issue of incorrect type definitions potentially causing calculation errors.
Fixes eaa4293e87aa ("drm/amdgpu/swm14: Update power limit logic")
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c +2 -1
@@ -1633,8 +1633,9 @@ static int smu_v14_0_2_get_power_limit(struct smu_context *smu, table_context->power_play_table;PPTable_t *pptable = table_context->driver_pptable;CustomSkuTable_t *skutable = &pptable->CustomSkuTable; -uint32_t power_limit, od_percent_upper =0 , od_percent_lower =0 ; +int16_t od_percent_upper =0 , od_percent_lower =0 ;uint32_t msg_limit = pptable->SkuTable.MsgLimits.Power[PPT_THROTTLER_PPT0 ][POWER_SOURCE_AC ]; +uint32_t power_limit;if (smu_v14_0_get_current_power_limit (smu, &power_limit)) power_limit = smu->adev->pm.ac_power ?
--
2.34.1