drm/amd/pm: Add VCN reset message support for SMU v13.0.12
Subsystems (3)
PATCH 1/1 drm/amd/pm: Add VCN reset message support for SMU v13.0.12
This commit adds support for VCN reset functionality in SMU v13.0.12 by:
1. Adding two new PPSMC messages in smu_v13_0_12_ppsmc.h:
- PPSMC_MSG_ResetVCN (0x5E)
- PPSMC_MSG_CPPipeReset (0x5F)
- Updates PPSMC_Message_Count to 0x60 to account for new messages
2. Adding message mapping for ResetVCN in smu_v13_0_12_ppt.c:
- Maps SMU_MSG_ResetVCN to PPSMC_MSG_ResetVCN
These changes enable proper VCN reset handling through the SMU firmware interface for compatible AMD GPUs.
--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h | 4 +++- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h +3 -1
@@ -120,7 +120,9 @@#define PPSMC_MSG_GetBadPageSeverity 0x5B#define PPSMC_MSG_GetSystemMetricsTable 0x5C#define PPSMC_MSG_GetSystemMetricsVersion 0x5D -#define PPSMC_Message_Count 0x5E +#define PPSMC_MSG_ResetVCN 0x5E +#define PPSMC_MSG_CPPipeReset 0x5F +#define PPSMC_Message_Count 0x60//PPSMC Reset Types for driver msg argument #define PPSMC_RESET_TYPE_DRIVER_MODE_1_RESET 0x1
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +1 -0
@@ -136,6 +136,7 @@ const struct cmn2asic_msg_mapping smu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =MSG_MAP (RmaDueToBadPageThreshold, PPSMC_MSG_RmaDueToBadPageThreshold,0 ),MSG_MAP (SetThrottlingPolicy, PPSMC_MSG_SetThrottlingPolicy,0 ),MSG_MAP (ResetSDMA, PPSMC_MSG_ResetSDMA,0 ), +MSG_MAP (ResetVCN, PPSMC_MSG_ResetVCN,0 ),MSG_MAP (GetStaticMetricsTable, PPSMC_MSG_GetStaticMetricsTable,1 ), MSG_MAP(GetSystemMetricsTable, PPSMC_MSG_GetSystemMetricsTable, 0), };
Signature · 1 line
2.49.0
Quoted 8 lines · Jesse.Zhang
This commit adds support for VCN reset functionality in SMU v13.0.12 by:
1. Adding two new PPSMC messages in
smu_v13_0_12_ppsmc.h:
-PPSMC_MSG_ResetVCN(0x5E)
-PPSMC_MSG_CPPipeReset(0x5F)
- UpdatesPPSMC_Message_Countto0x60to account for new messages
Quoted 7 lines
2. Adding message mapping for ResetVCN in
smu_v13_0_12_ppt.c:
- MapsSMU_MSG_ResetVCNtoPPSMC_MSG_ResetVCNThese changes enable proper VCN reset handling through the SMU firmware interface for compatible AMD GPUs.
Signed-off-by Jesse Zhang <[email protected]>
Quoted 35 lines
--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h | 4 +++- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_12_ppsmc.h +3
-1@@ -120,7 +120,9 @@#define PPSMC_MSG_GetBadPageSeverity 0x5B#define PPSMC_MSG_GetSystemMetricsTable 0x5C#define PPSMC_MSG_GetSystemMetricsVersion 0x5D -#define PPSMC_Message_Count 0x5E +#define PPSMC_MSG_ResetVCN 0x5E +#define PPSMC_MSG_CPPipeReset 0x5F +#define PPSMC_Message_Count 0x60//PPSMC Reset Types for driver msg argument #define PPSMC_RESET_TYPE_DRIVER_MODE_1_RESET 0x1drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +1
-1@@ -136,6 +136,7 @@ const struct cmn2asic_msg_mapping smu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =MSG_MAP (RmaDueToBadPageThreshold, PPSMC_MSG_RmaDueToBadPageThreshold,0 ),MSG_MAP (SetThrottlingPolicy, PPSMC_MSG_SetThrottlingPolicy,0 ),MSG_MAP (ResetSDMA, PPSMC_MSG_ResetSDMA,0 ), +MSG_MAP (ResetVCN, PPSMC_MSG_ResetVCN,0 ),MSG_MAP (GetStaticMetricsTable, PPSMC_MSG_GetStaticMetricsTable,1 ), MSG_MAP(GetSystemMetricsTable, PPSMC_MSG_GetSystemMetricsTable, 0), }; --2.49.0