AMD General Reviewed-by: Kevin Wang <[email protected]>
Best Regards, Kevin > -----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 message > > Add GetRmaStatus message for smu_v13_0_12 and smu_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(+) > > 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 d09b6ae9827e..ac7e617e64ad 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,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 > 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 1edef38c9209..35ef95a820dc 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h > +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h > @@ -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), \ > 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 0033453f27e5..4f3d59897aae 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 > @@ -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), > diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c > b/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c > index b886208ad93d..b69efaecc1bb 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c > +++ b/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c > @@ -126,6 +126,7 @@ static const struct cmn2asic_msg_mapping > smu_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), > diff --git a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c > b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c > index d8a446d0179e..7ca2f33f2cf0 100644 > --- a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c > +++ b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c > @@ -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
