drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7
authorjsg <jsg@openbsd.org>
Fri, 16 Jun 2023 00:49:10 +0000 (00:49 +0000)
committerjsg <jsg@openbsd.org>
Fri, 16 Jun 2023 00:49:10 +0000 (00:49 +0000)
From Evan Quan
6acfbdda4d06d83d434b05b7fe1a9d545d99c027 in linux-6.1.y/6.1.31
0d2dd02d74e6377268f56b90261de0fae8f0d2cb in mainline linux

sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c

index 2bb5c38..57579f5 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] = {