mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/amd/pm: add new message definitions for pmfw eeprom interface
Add new message definitions for pmfw eeprom interface Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
88ef4de35f
commit
0c6f09e65b
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user