]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7
authorEvan Quan <evan.quan@amd.com>
Fri, 19 May 2023 06:20:17 +0000 (14:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2023 19:17:31 +0000 (15:17 -0400)
Otherwise, the power source switching will fail due to message
unavailable.

Fixes: bf4823267a81 ("drm/amd/pm: fix possible power mode mismatch between driver and PMFW")
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c

index 98a33f8ee2095a94d9899d3ebeb34c20173dc129..bba621615abf0948bf9ce4d0d560fd3d860b0354 100644 (file)
@@ -125,6 +125,7 @@ static struct cmn2asic_msg_mapping smu_v13_0_7_message_map[SMU_MSG_MAX_COUNT] =
        MSG_MAP(ArmD3,                          PPSMC_MSG_ArmD3,                       0),
        MSG_MAP(AllowGpo,                       PPSMC_MSG_SetGpoAllow,           0),
        MSG_MAP(GetPptLimit,                    PPSMC_MSG_GetPptLimit,                 0),
+       MSG_MAP(NotifyPowerSource,              PPSMC_MSG_NotifyPowerSource,           0),
 };
 
 static struct cmn2asic_mapping smu_v13_0_7_clk_map[SMU_CLK_COUNT] = {