mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/amd/pm: Drop legacy message fields from SMUv14
Remove usage of legacy message related fields from SMUv14 SOCs. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
8d62338489
commit
4068f195d1
|
|
@ -215,10 +215,8 @@ int smu_v14_0_get_pptable_from_firmware(struct smu_context *smu,
|
|||
uint32_t pptable_id);
|
||||
|
||||
int smu_v14_0_od_edit_dpm_table(struct smu_context *smu,
|
||||
enum PP_OD_DPM_TABLE_COMMAND type,
|
||||
long input[], uint32_t size);
|
||||
|
||||
void smu_v14_0_set_smu_mailbox_registers(struct smu_context *smu);
|
||||
enum PP_OD_DPM_TABLE_COMMAND type,
|
||||
long input[], uint32_t size);
|
||||
|
||||
int smu_v14_0_enable_thermal_alert(struct smu_context *smu);
|
||||
|
||||
|
|
|
|||
|
|
@ -1731,15 +1731,6 @@ static const struct pptable_funcs smu_v14_0_0_ppt_funcs = {
|
|||
.set_mall_enable = smu_v14_0_common_set_mall_enable,
|
||||
};
|
||||
|
||||
static void smu_v14_0_0_set_smu_mailbox_registers(struct smu_context *smu)
|
||||
{
|
||||
struct amdgpu_device *adev = smu->adev;
|
||||
|
||||
smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_82);
|
||||
smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_66);
|
||||
smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_90);
|
||||
}
|
||||
|
||||
static void smu_v14_0_0_init_msg_ctl(struct smu_context *smu)
|
||||
{
|
||||
struct amdgpu_device *adev = smu->adev;
|
||||
|
|
@ -1758,13 +1749,10 @@ static void smu_v14_0_0_init_msg_ctl(struct smu_context *smu)
|
|||
|
||||
void smu_v14_0_0_set_ppt_funcs(struct smu_context *smu)
|
||||
{
|
||||
|
||||
smu->ppt_funcs = &smu_v14_0_0_ppt_funcs;
|
||||
smu->message_map = smu_v14_0_0_message_map;
|
||||
smu->feature_map = smu_v14_0_0_feature_mask_map;
|
||||
smu->table_map = smu_v14_0_0_table_map;
|
||||
smu->is_apu = true;
|
||||
|
||||
smu_v14_0_0_set_smu_mailbox_registers(smu);
|
||||
smu_v14_0_0_init_msg_ctl(smu);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2111,10 +2111,6 @@ static void smu_v14_0_2_set_smu_mailbox_registers(struct smu_context *smu)
|
|||
{
|
||||
struct amdgpu_device *adev = smu->adev;
|
||||
|
||||
smu->param_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_82);
|
||||
smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_66);
|
||||
smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_90);
|
||||
|
||||
smu->debug_param_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_53);
|
||||
smu->debug_msg_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_75);
|
||||
smu->debug_resp_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_54);
|
||||
|
|
@ -2875,7 +2871,6 @@ static const struct pptable_funcs smu_v14_0_2_ppt_funcs = {
|
|||
void smu_v14_0_2_set_ppt_funcs(struct smu_context *smu)
|
||||
{
|
||||
smu->ppt_funcs = &smu_v14_0_2_ppt_funcs;
|
||||
smu->message_map = smu_v14_0_2_message_map;
|
||||
smu->clock_map = smu_v14_0_2_clk_map;
|
||||
smu->feature_map = smu_v14_0_2_feature_mask_map;
|
||||
smu->table_map = smu_v14_0_2_table_map;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user