Skip to content

Commit 37a45fb

Browse files
Kenneth Fengalexdeucher
authored andcommitted
drm/amd/pm: update message interface for smu v14.0.2/3
update message interface for smu v14.0.2/3 Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 01bfabc)
1 parent d420c85 commit 37a45fb

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292

9393
//Resets
9494
#define PPSMC_MSG_PrepareMp1ForUnload 0x2E
95-
#define PPSMC_MSG_Mode1Reset 0x2F
9695

9796
//Set SystemVirtual DramAddrHigh
9897
#define PPSMC_MSG_SetSystemVirtualDramAddrHigh 0x30
@@ -119,11 +118,12 @@
119118

120119
//STB to dram log
121120
#define PPSMC_MSG_DumpSTBtoDram 0x3D
122-
#define PPSMC_MSG_STBtoDramLogSetDramAddrHigh 0x3E
123-
#define PPSMC_MSG_STBtoDramLogSetDramAddrLow 0x3F
121+
#define PPSMC_MSG_STBtoDramLogSetDramAddress 0x3E
122+
#define PPSMC_MSG_DummyUndefined 0x3F
124123
#define PPSMC_MSG_STBtoDramLogSetDramSize 0x40
125124
#define PPSMC_MSG_SetOBMTraceBufferLogging 0x41
126125

126+
#define PPSMC_MSG_UseProfilingMode 0x42
127127
#define PPSMC_MSG_AllowGfxDcs 0x43
128128
#define PPSMC_MSG_DisallowGfxDcs 0x44
129129
#define PPSMC_MSG_EnableAudioStutterWA 0x45
@@ -135,6 +135,16 @@
135135
#define PPSMC_MSG_SetBadMemoryPagesRetiredFlagsPerChannel 0x4B
136136
#define PPSMC_MSG_SetPriorityDeltaGain 0x4C
137137
#define PPSMC_MSG_AllowIHHostInterrupt 0x4D
138+
#define PPSMC_MSG_EnableShadowDpm 0x4E
138139
#define PPSMC_MSG_Mode3Reset 0x4F
139-
#define PPSMC_Message_Count 0x50
140+
#define PPSMC_MSG_SetDriverDramAddr 0x50
141+
#define PPSMC_MSG_SetToolsDramAddr 0x51
142+
#define PPSMC_MSG_TransferTableSmu2DramWithAddr 0x52
143+
#define PPSMC_MSG_TransferTableDram2SmuWithAddr 0x53
144+
#define PPSMC_MSG_GetAllRunningSmuFeatures 0x54
145+
#define PPSMC_MSG_GetSvi3Voltage 0x55
146+
#define PPSMC_MSG_UpdatePolicy 0x56
147+
#define PPSMC_MSG_ExtPwrConnSupport 0x57
148+
#define PPSMC_MSG_PreloadSwPstateForUclkOverDrive 0x58
149+
#define PPSMC_Message_Count 0x59
140150
#endif

drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ static struct cmn2asic_msg_mapping smu_v14_0_2_message_map[SMU_MSG_MAX_COUNT] =
115115
MSG_MAP(SetMGpuFanBoostLimitRpm, PPSMC_MSG_SetMGpuFanBoostLimitRpm, 0),
116116
MSG_MAP(GetPptLimit, PPSMC_MSG_GetPptLimit, 0),
117117
MSG_MAP(NotifyPowerSource, PPSMC_MSG_NotifyPowerSource, 0),
118-
MSG_MAP(Mode1Reset, PPSMC_MSG_Mode1Reset, 0),
119118
MSG_MAP(PrepareMp1ForUnload, PPSMC_MSG_PrepareMp1ForUnload, 0),
120119
MSG_MAP(DFCstateControl, PPSMC_MSG_SetExternalClientDfCstateAllow, 0),
121120
MSG_MAP(ArmD3, PPSMC_MSG_ArmD3, 0),

0 commit comments

Comments
 (0)