drm/amd/pm: Fix missing thermal throttler status
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 19 May 2022 05:20:25 +0000 (10:50 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:32 +0000 (14:56 -0400)
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.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c

index 38af648cb857da66a39aef1efe851479e2a6af16..fb130409309c03bdf157bce8ae7718412913edce 100644 (file)
@@ -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"},