Add new message definitions for pmfw eeprom interface

Signed-off-by: Gangliang Xie <[email protected]>
---
 .../pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h    | 16 ++++++----------
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h     |  9 ++++++++-
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c    |  7 +++++++
 3 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h 
b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h
index 4b066c42e0ec..fe1b3ac50a75 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h
@@ -105,19 +105,15 @@
 #define PPSMC_MSG_UpdatePccWaitDecMaxStr            0x4C
 #define PPSMC_MSG_ResetSDMA                         0x4D
 #define PPSMC_MSG_GetRasTableVersion                0x4E
-#define PPSMC_MSG_GetRmaStatus                      0x4F
-#define PPSMC_MSG_GetErrorCount                     0x50
-#define PPSMC_MSG_GetBadPageCount                   0x51
-#define PPSMC_MSG_GetBadPageInfo                    0x52
-#define PPSMC_MSG_GetBadPagePaAddrLoHi              0x53
-#define PPSMC_MSG_SetTimestampLoHi                  0x54
-#define PPSMC_MSG_GetTimestampLoHi                  0x55
-#define PPSMC_MSG_GetRasPolicy                      0x56
-#define PPSMC_MSG_DumpErrorRecord                   0x57
+#define PPSMC_MSG_GetBadPageCount                   0x50
+#define PPSMC_MSG_GetBadPageMcaAddress              0x51
+#define PPSMC_MSG_SetTimestamp                      0x53
+#define PPSMC_MSG_SetTimestampHi                    0x54
+#define PPSMC_MSG_GetTimestamp                      0x55
+#define PPSMC_MSG_GetBadPageIpIdLoHi                0x57
 #define PPSMC_MSG_EraseRasTable                     0x58
 #define PPSMC_MSG_GetStaticMetricsTable             0x59
 #define PPSMC_MSG_ResetVfArbitersByIndex            0x5A
-#define PPSMC_MSG_GetBadPageSeverity                0x5B
 #define PPSMC_MSG_GetSystemMetricsTable             0x5C
 #define PPSMC_MSG_GetSystemMetricsVersion           0x5D
 #define PPSMC_MSG_ResetVCN                          0x5E
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h 
b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
index 2256c77da636..9315ce49b396 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
@@ -279,7 +279,14 @@
        __SMU_DUMMY_MAP(ResetSDMA), \
        __SMU_DUMMY_MAP(ResetVCN), \
        __SMU_DUMMY_MAP(GetStaticMetricsTable), \
-       __SMU_DUMMY_MAP(GetSystemMetricsTable),
+       __SMU_DUMMY_MAP(GetSystemMetricsTable), \
+       __SMU_DUMMY_MAP(GetRASTableVersion), \
+       __SMU_DUMMY_MAP(GetBadPageCount), \
+       __SMU_DUMMY_MAP(GetBadPageMcaAddr), \
+       __SMU_DUMMY_MAP(SetTimestamp), \
+       __SMU_DUMMY_MAP(GetTimestamp), \
+       __SMU_DUMMY_MAP(GetBadPageIpid), \
+       __SMU_DUMMY_MAP(EraseRasTable),
 
 #undef __SMU_DUMMY_MAP
 #define __SMU_DUMMY_MAP(type)  SMU_MSG_##type
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c 
b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
index cb3fea9e8cf3..27b950c126ab 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
@@ -139,6 +139,13 @@ const struct cmn2asic_msg_mapping 
smu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =
        MSG_MAP(ResetVCN,                            PPSMC_MSG_ResetVCN,        
                0),
        MSG_MAP(GetStaticMetricsTable,               
PPSMC_MSG_GetStaticMetricsTable,           1),
        MSG_MAP(GetSystemMetricsTable,               
PPSMC_MSG_GetSystemMetricsTable,           1),
+       MSG_MAP(GetRASTableVersion,                  
PPSMC_MSG_GetRasTableVersion,              0),
+       MSG_MAP(GetBadPageCount,                     PPSMC_MSG_GetBadPageCount, 
                0),
+       MSG_MAP(GetBadPageMcaAddr,                   
PPSMC_MSG_GetBadPageMcaAddress,            0),
+       MSG_MAP(SetTimestamp,                        PPSMC_MSG_SetTimestamp,    
                0),
+       MSG_MAP(GetTimestamp,                        PPSMC_MSG_GetTimestamp,    
                0),
+       MSG_MAP(GetBadPageIpid,                      
PPSMC_MSG_GetBadPageIpIdLoHi,              0),
+       MSG_MAP(EraseRasTable,                       PPSMC_MSG_EraseRasTable,   
                0),
 };
 
 int smu_v13_0_12_tables_init(struct smu_context *smu)
-- 
2.34.1

Reply via email to