drm/amd/pm: Add GetRmaStatus message
Subsystems (3)
PATCH 1/1 drm/amd/pm: Add GetRmaStatus message
Add GetRmaStatus message for smu_v13_0_12 and smu_v15_0_8.
--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h | 1 + drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 1 + drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c | 1 + 5 files changed, 5 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h +1 -0
@@ -105,6 +105,7 @@#define PPSMC_MSG_UpdatePccWaitDecMaxStr 0x4C#define PPSMC_MSG_ResetSDMA 0x4D#define PPSMC_MSG_GetRasTableVersion 0x4E +#define PPSMC_MSG_GetRmaStatus 0x4F#define PPSMC_MSG_GetBadPageCount 0x50#define PPSMC_MSG_GetBadPageMcaAddress 0x51#define PPSMC_MSG_SetTimestamp 0x53
drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h +1 -0
@@ -292,6 +292,7 @@__SMU_DUMMY_MAP (GetStaticMetricsTable), \__SMU_DUMMY_MAP (GetSystemMetricsTable), \__SMU_DUMMY_MAP (GetRASTableVersion), \ +__SMU_DUMMY_MAP (GetRmaStatus), \__SMU_DUMMY_MAP (GetBadPageCount), \__SMU_DUMMY_MAP (GetBadPageMcaAddr), \ __SMU_DUMMY_MAP(SetTimestamp), \
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +1 -0
@@ -152,6 +152,7 @@ const struct cmn2asic_msg_mapping smu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =MSG_MAP (GetStaticMetricsTable, PPSMC_MSG_GetStaticMetricsTable,1 ),MSG_MAP (GetSystemMetricsTable, PPSMC_MSG_GetSystemMetricsTable,1 ),MSG_MAP (GetRASTableVersion, PPSMC_MSG_GetRasTableVersion,0 ), +MSG_MAP (GetRmaStatus, PPSMC_MSG_GetRmaStatus,0 ),MSG_MAP (GetBadPageCount, PPSMC_MSG_GetBadPageCount,0 ),MSG_MAP (GetBadPageMcaAddr, PPSMC_MSG_GetBadPageMcaAddress,0 ), MSG_MAP(SetTimestamp, PPSMC_MSG_SetTimestamp, 0),
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c +1 -0
@@ -126,6 +126,7 @@ static const struct cmn2asic_msg_mapping smu_v15_0_8_message_map[SMU_MSG_MAX_COUMSG_MAP (GetTimestamp, PPSMC_MSG_GetTimestamp,0 ),MSG_MAP (GetBadPageIpid, PPSMC_MSG_GetBadPageIpIdLoHi,0 ),MSG_MAP (EraseRasTable, PPSMC_MSG_EraseRasTable,0 ), +MSG_MAP (GetRmaStatus, PPSMC_MSG_GetRmaStatus,0 ),MSG_MAP (GetStaticMetricsTable, PPSMC_MSG_GetStaticMetricsTable,1 ),MSG_MAP (GetSystemMetricsTable, PPSMC_MSG_GetSystemMetricsTable,1 ), MSG_MAP(GetSystemMetricsVersion, PPSMC_MSG_GetSystemMetricsVersion, 0),
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c +1 -0
@@ -36,6 +36,7 @@ static const enum smu_message_type ras_smu_msg_maps[RAS_MP1_MSG_MAX] = { [RAS_MP1_MSG_QueryValidMcaCeCount] = SMU_MSG_QueryValidMcaCeCount, [RAS_MP1_MSG_McaBankCeDumpDW] = SMU_MSG_McaBankCeDumpDW, [RAS_MP1_MSG_GetRasTableVersion] = SMU_MSG_GetRASTableVersion, + [RAS_MP1_MSG_GetRmaStatus] = SMU_MSG_GetRmaStatus, [RAS_MP1_MSG_GetBadPageCount] = SMU_MSG_GetBadPageCount, [RAS_MP1_MSG_GetBadPageMcaAddr] = SMU_MSG_GetBadPageMcaAddr, [RAS_MP1_MSG_SetTimestamp] = SMU_MSG_SetTimestamp,
Signature · 1 line
2.43.0
AMD General
Best Regards,
Kevin
Quoted 108 lines
-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Friday, September 11, 2026 15:22
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Wang, Kevin <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH] drm/amd/pm: Add GetRmaStatus messageAdd GetRmaStatus message for
smu_v13_0_12andsmu_v15_0_8.Signed-off-by YiPeng Chai <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h | 1 + drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 1 + drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c | 1 + 5 files changed, 5 insertions(+)drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h +1
-0@@ -105,6 +105,7 @@#define PPSMC_MSG_UpdatePccWaitDecMaxStr 0x4C#define PPSMC_MSG_ResetSDMA 0x4D#define PPSMC_MSG_GetRasTableVersion 0x4E +#define PPSMC_MSG_GetRmaStatus 0x4F#define PPSMC_MSG_GetBadPageCount 0x50#define PPSMC_MSG_GetBadPageMcaAddress 0x51#define PPSMC_MSG_SetTimestamp 0x53drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h +1
-0@@ -292,6 +292,7 @@__SMU_DUMMY_MAP (GetStaticMetricsTable), \__SMU_DUMMY_MAP (GetSystemMetricsTable), \__SMU_DUMMY_MAP (GetRASTableVersion), \ +__SMU_DUMMY_MAP (GetRmaStatus), \__SMU_DUMMY_MAP (GetBadPageCount), \__SMU_DUMMY_MAP (GetBadPageMcaAddr), \ __SMU_DUMMY_MAP(SetTimestamp), \drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +0
-0@@ -152,6 +152,7 @@ const struct cmn2asic_msg_mappingsmu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =
MSG_MAP(GetStaticMetricsTable,PPSMC_MSG_GetStaticMetricsTable, 1),
MSG_MAP(GetSystemMetricsTable,PPSMC_MSG_GetSystemMetricsTable, 1),
MSG_MAP(GetRASTableVersion,PPSMC_MSG_GetRasTableVersion, 0),
+ MSG_MAP(GetRmaStatus,PPSMC_MSG_GetRmaStatus,
0),
MSG_MAP(GetBadPageCount,PPSMC_MSG_GetBadPageCount, 0),
MSG_MAP(GetBadPageMcaAddr,PPSMC_MSG_GetBadPageMcaAddress, 0),
MSG_MAP(SetTimestamp,PPSMC_MSG_SetTimestamp,
0),drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c +0
-0@@ -126,6 +126,7 @@ static const struct cmn2asic_msg_mappingsmu_v15_0_8_message_map[SMU_MSG_MAX_COU
MSG_MAP(GetTimestamp,PPSMC_MSG_GetTimestamp,
0),
MSG_MAP(GetBadPageIpid,PPSMC_MSG_GetBadPageIpIdLoHi, 0),
MSG_MAP(EraseRasTable,PPSMC_MSG_EraseRasTable,
0),
+ MSG_MAP(GetRmaStatus,PPSMC_MSG_GetRmaStatus,
0),
MSG_MAP(GetStaticMetricsTable,PPSMC_MSG_GetStaticMetricsTable, 1),
MSG_MAP(GetSystemMetricsTable,PPSMC_MSG_GetSystemMetricsTable, 1),
MSG_MAP(GetSystemMetricsVersion,PPSMC_MSG_GetSystemMetricsVersion, 0),drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c +0
-0@@ -36,6 +36,7 @@ static const enum smu_message_type ras_smu_msg_maps[RAS_MP1_MSG_MAX] = { [RAS_MP1_MSG_QueryValidMcaCeCount] = SMU_MSG_QueryValidMcaCeCount, [RAS_MP1_MSG_McaBankCeDumpDW] = SMU_MSG_McaBankCeDumpDW, [RAS_MP1_MSG_GetRasTableVersion] =
SMU_MSG_GetRASTableVersion,
+ [RAS_MP1_MSG_GetRmaStatus] =SMU_MSG_GetRmaStatus,
[RAS_MP1_MSG_GetBadPageCount] =SMU_MSG_GetBadPageCount, [RAS_MP1_MSG_GetBadPageMcaAddr] =SMU_MSG_GetBadPageMcaAddr,
[RAS_MP1_MSG_SetTimestamp] =SMU_MSG_SetTimestamp,
--
2.43.0