Skip to contentSkip to conversation

drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7

PATCH Superseded Evan Quan 2 participants 3 messages May 19, 2023 – May 22, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Evan Quan

author
#0 lore raw

PATCH 1/1 drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7

Otherwise, the power source switching will fail due to message unavailable.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +1 -0
index 1b6116cf8b4c..cf6827179fd1 100644
@@ -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] = {
Signature · 1 line
2.34.1
#1 lore raw

[Public]

Looks it's better to add a Fixes tag like Fixes: 4dd9b5392c57 ("drm/amd/pm: fix possible power mode mismatch between driver and PMFW"), if I understand it correctly.

Regards,
Guchun

Quoted 38 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Evan Quan
Sent: Friday, May 19, 2023 3:53 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7

Otherwise, the power source switching will fail due to message unavailable.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +0 -0
index 1b6116cf8b4c..cf6827179fd1 100644
@@ -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] =
{
--
2.34.1

author
#2 lore raw

[Public]

Quoted 9 lines

-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Friday, May 19, 2023 8:04 PM
To: Quan, Evan <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Quan, Evan <[email protected]>
Subject: RE: [PATCH] drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7

Quoted 5 lines

[Public]

Looks it's better to add a Fixes tag like Fixes: 4dd9b5392c57 ("drm/amd/pm:
fix possible power mode mismatch between driver and PMFW"), if I understand it correctly.

Yes, will add that in V2.

Evan

Quoted 43 lines

Regards,
Guchun

Quoted 34 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Evan Quan
Sent: Friday, May 19, 2023 3:53 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7

Otherwise, the power source switching will fail due to message unavailable.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +0 -0
index 1b6116cf8b4c..cf6827179fd1 100644
@@ -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),
};

Quoted 1 line

static struct cmn2asic_mapping smu_v13_0_7_clk_map[SMU_CLK_COUNT]

= {

Quoted 2 lines

--
2.34.1