Skip to contentSkip to conversation

drm/amd/pm: Fix missing thermal throttler status

PATCH In review Lijo Lazar 2 participants 2 messages May 19, 2022

Subsystems (3)
lore
Share & tools
lore

Lijo Lazar

author
#0 lore raw

PATCH 1/1 drm/amd/pm: Fix missing thermal throttler status

On aldebaran, when thermal throttling happens due to excessive GPU temperature, the reason for throttling event is missed in warning message. This patch fixes it.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +1 -0
index 38af648cb857..fb130409309c 100644
@@ -1666,6 +1666,7 @@ static const struct throttling_logging_label {
 	uint32_t feature_mask;
 	const char *label;
 } logging_label[] = {
+	{(1U << THROTTLER_TEMP_GPU_BIT), "GPU"},
 	{(1U << THROTTLER_TEMP_MEM_BIT), "HBM"},
 	{(1U << THROTTLER_TEMP_VR_GFX_BIT), "VR of GFX rail"},
 	{(1U << THROTTLER_TEMP_VR_MEM_BIT), "VR of HBM rail"},
Signature · 1 line
2.25.1
#1 lore raw

[AMD Official Use Only - General]

Reviewed-by Yang Wang <[email protected]>

Regards,
Kevin
________________________________
发件人: amd-gfx <[email protected]> 代表 Lijo Lazar <[email protected]> 发送时间: 星期四, 五月 19, 2022 13:28
收件人: [email protected] <[email protected]>
抄送: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]> 主题: [PATCH] drm/amd/pm: Fix missing thermal throttler status

On aldebaran, when thermal throttling happens due to excessive GPU temperature, the reason for throttling event is missed in warning message. This patch fixes it.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +1 -0
index 38af648cb857..fb130409309c 100644
@@ -1666,6 +1666,7 @@ static const struct throttling_logging_label {
         uint32_t feature_mask;
         const char *label;
 } logging_label[] = {
+       {(1U << THROTTLER_TEMP_GPU_BIT), "GPU"},
         {(1U << THROTTLER_TEMP_MEM_BIT), "HBM"},
         {(1U << THROTTLER_TEMP_VR_GFX_BIT), "VR of GFX rail"},
         {(1U << THROTTLER_TEMP_VR_MEM_BIT), "VR of HBM rail"},

--
2.25.1