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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:23 +0000 (18:36 +0200)
[ Upstream commit b0f4d663fce6a4232d3c20ce820f919111b1c60b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c

index c9cfeb094750d6f8a8136f1d6a6abeae11eb916e..d0c6b864d00afb13fba9c453271b53e980958d56 100644 (file)
@@ -1627,6 +1627,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"},