drm/amd/pm: Rename pmfw message SetPstatePolicy
Subsystems (3)
PATCH 1/1 drm/amd/pm: Rename pmfw message SetPstatePolicy
Rename pmfw message SelectPstatePolicy to SetThrottlingPolicy as per pmfw interface header for smu_v_13_0_6
--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h +1 -1
@@ -92,7 +92,7 @@#define PPSMC_MSG_McaBankCeDumpDW 0x3B#define PPSMC_MSG_SelectPLPDMode 0x40#define PPSMC_MSG_RmaDueToBadPageThreshold 0x43 -#define PPSMC_MSG_SelectPstatePolicy 0x44 +#define PPSMC_MSG_SetThrottlingPolicy 0x44#define PPSMC_MSG_ResetSDMA 0x4D#define PPSMC_Message_Count 0x4E
drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h +1 -1
@@ -273,7 +273,7 @@__SMU_DUMMY_MAP (GetMetricsVersion), \__SMU_DUMMY_MAP (EnableUCLKShadow), \__SMU_DUMMY_MAP (RmaDueToBadPageThreshold), \ -__SMU_DUMMY_MAP (SelectPstatePolicy), \ +__SMU_DUMMY_MAP (SetThrottlingPolicy), \__SMU_DUMMY_MAP (MALLPowerController), \__SMU_DUMMY_MAP (MALLPowerState), \ __SMU_DUMMY_MAP(ResetSDMA),
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +2 -2
@@ -192,7 +192,7 @@ static const struct cmn2asic_msg_mapping smu_v13_0_6_message_map[SMU_MSG_MAX_COUMSG_MAP (McaBankCeDumpDW, PPSMC_MSG_McaBankCeDumpDW,SMU_MSG_RAS_PRI ),MSG_MAP (SelectPLPDMode, PPSMC_MSG_SelectPLPDMode,0 ),MSG_MAP (RmaDueToBadPageThreshold, PPSMC_MSG_RmaDueToBadPageThreshold,0 ), -MSG_MAP (SelectPstatePolicy, PPSMC_MSG_SelectPstatePolicy,0 ), +MSG_MAP (SetThrottlingPolicy, PPSMC_MSG_SetThrottlingPolicy,0 ), MSG_MAP(ResetSDMA, PPSMC_MSG_ResetSDMA, 0), };
@@ -584,7 +584,7 @@ static int smu_v13_0_6_select_policy_soc_pstate(struct smu_context *smu,return -EINVAL ; } - ret =smu_cmn_send_smc_msg_with_param (smu, SMU_MSG_SelectPstatePolicy, + ret =smu_cmn_send_smc_msg_with_param (smu, SMU_MSG_SetThrottlingPolicy, param,NULL );if (ret)
Signature · 1 line
2.46.0
[AMD Official Use Only - AMD Internal Distribution Only]
Regards,
Hawking
-----Original Message-----
From: Kamal, Asad <[email protected]>
Sent: Monday, February 10, 2025 16:02
To: [email protected]; Lazar, Lijo <[email protected]>
Cc: Ma, Le <[email protected]>; Zhang, Hawking <[email protected]>; Zhang, Morris <[email protected]>; Kamal, Asad <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amd/pm: Rename pmfw message SetPstatePolicy
Rename pmfw message SelectPstatePolicy to SetThrottlingPolicy as per pmfw interface header for smu_v_13_0_6
--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h +1 -1
@@ -92,7 +92,7 @@#define PPSMC_MSG_McaBankCeDumpDW 0x3B#define PPSMC_MSG_SelectPLPDMode 0x40#define PPSMC_MSG_RmaDueToBadPageThreshold 0x43 -#define PPSMC_MSG_SelectPstatePolicy 0x44 +#define PPSMC_MSG_SetThrottlingPolicy 0x44#define PPSMC_MSG_ResetSDMA 0x4D#define PPSMC_Message_Count 0x4E
drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h +1 -1
@@ -273,7 +273,7 @@__SMU_DUMMY_MAP (GetMetricsVersion), \__SMU_DUMMY_MAP (EnableUCLKShadow), \__SMU_DUMMY_MAP (RmaDueToBadPageThreshold), \ -__SMU_DUMMY_MAP (SelectPstatePolicy), \ +__SMU_DUMMY_MAP (SetThrottlingPolicy), \__SMU_DUMMY_MAP (MALLPowerController), \__SMU_DUMMY_MAP (MALLPowerState), \ __SMU_DUMMY_MAP(ResetSDMA),
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +3 -2
@@ -192,7 +192,7 @@ static const struct cmn2asic_msg_mapping smu_v13_0_6_message_map[SMU_MSG_MAX_COUMSG_MAP (McaBankCeDumpDW, PPSMC_MSG_McaBankCeDumpDW,SMU_MSG_RAS_PRI ),MSG_MAP (SelectPLPDMode, PPSMC_MSG_SelectPLPDMode,0 ),MSG_MAP (RmaDueToBadPageThreshold, PPSMC_MSG_RmaDueToBadPageThreshold,0 ), -MSG_MAP (SelectPstatePolicy, PPSMC_MSG_SelectPstatePolicy,0 ), +MSG_MAP (SetThrottlingPolicy, PPSMC_MSG_SetThrottlingPolicy,0 ), MSG_MAP(ResetSDMA, PPSMC_MSG_ResetSDMA, 0), };
@@ -584,7 +584,7 @@ static int smu_v13_0_6_select_policy_soc_pstate(struct smu_context *smu,return -EINVAL ; } - ret =smu_cmn_send_smc_msg_with_param (smu, SMU_MSG_SelectPstatePolicy, + ret =smu_cmn_send_smc_msg_with_param (smu, +SMU_MSG_SetThrottlingPolicy, param,NULL );
if (ret)
--
2.46.0
[AMD Official Use Only - AMD Internal Distribution Only]
Best Regards,
Kevin
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Asad Kamal
Sent: Monday, February 10, 2025 16:02
To: [email protected]; Lazar, Lijo <[email protected]>
Cc: Ma, Le <[email protected]>; Zhang, Hawking <[email protected]>; Zhang, Morris <[email protected]>; Kamal, Asad <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amd/pm: Rename pmfw message SetPstatePolicy
Rename pmfw message SelectPstatePolicy to SetThrottlingPolicy as per pmfw interface header for smu_v_13_0_6
--- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h +1 -1
@@ -92,7 +92,7 @@#define PPSMC_MSG_McaBankCeDumpDW 0x3B#define PPSMC_MSG_SelectPLPDMode 0x40#define PPSMC_MSG_RmaDueToBadPageThreshold 0x43 -#define PPSMC_MSG_SelectPstatePolicy 0x44 +#define PPSMC_MSG_SetThrottlingPolicy 0x44#define PPSMC_MSG_ResetSDMA 0x4D#define PPSMC_Message_Count 0x4E
drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h +1 -1
@@ -273,7 +273,7 @@__SMU_DUMMY_MAP (GetMetricsVersion), \__SMU_DUMMY_MAP (EnableUCLKShadow), \__SMU_DUMMY_MAP (RmaDueToBadPageThreshold), \ -__SMU_DUMMY_MAP (SelectPstatePolicy), \ +__SMU_DUMMY_MAP (SetThrottlingPolicy), \__SMU_DUMMY_MAP (MALLPowerController), \__SMU_DUMMY_MAP (MALLPowerState), \ __SMU_DUMMY_MAP(ResetSDMA),
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +3 -2
@@ -192,7 +192,7 @@ static const struct cmn2asic_msg_mapping smu_v13_0_6_message_map[SMU_MSG_MAX_COUMSG_MAP (McaBankCeDumpDW, PPSMC_MSG_McaBankCeDumpDW,SMU_MSG_RAS_PRI ),MSG_MAP (SelectPLPDMode, PPSMC_MSG_SelectPLPDMode,0 ),MSG_MAP (RmaDueToBadPageThreshold, PPSMC_MSG_RmaDueToBadPageThreshold,0 ), -MSG_MAP (SelectPstatePolicy, PPSMC_MSG_SelectPstatePolicy,0 ), +MSG_MAP (SetThrottlingPolicy, PPSMC_MSG_SetThrottlingPolicy,0 ), MSG_MAP(ResetSDMA, PPSMC_MSG_ResetSDMA, 0), };
@@ -584,7 +584,7 @@ static int smu_v13_0_6_select_policy_soc_pstate(struct smu_context *smu,return -EINVAL ; } - ret =smu_cmn_send_smc_msg_with_param (smu, SMU_MSG_SelectPstatePolicy, + ret =smu_cmn_send_smc_msg_with_param (smu, +SMU_MSG_SetThrottlingPolicy, param,NULL );
if (ret)
--
2.46.0