Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Lijo Lazar and committed by
Alex Deucher
4068f195 8d623384

+2 -21
+2 -4
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
··· 215 215 uint32_t pptable_id); 216 216 217 217 int smu_v14_0_od_edit_dpm_table(struct smu_context *smu, 218 - enum PP_OD_DPM_TABLE_COMMAND type, 219 - long input[], uint32_t size); 220 - 221 - void smu_v14_0_set_smu_mailbox_registers(struct smu_context *smu); 218 + enum PP_OD_DPM_TABLE_COMMAND type, 219 + long input[], uint32_t size); 222 220 223 221 int smu_v14_0_enable_thermal_alert(struct smu_context *smu); 224 222
-12
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
··· 1731 1731 .set_mall_enable = smu_v14_0_common_set_mall_enable, 1732 1732 }; 1733 1733 1734 - static void smu_v14_0_0_set_smu_mailbox_registers(struct smu_context *smu) 1735 - { 1736 - struct amdgpu_device *adev = smu->adev; 1737 - 1738 - smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_82); 1739 - smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_66); 1740 - smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_90); 1741 - } 1742 - 1743 1734 static void smu_v14_0_0_init_msg_ctl(struct smu_context *smu) 1744 1735 { 1745 1736 struct amdgpu_device *adev = smu->adev; ··· 1749 1758 1750 1759 void smu_v14_0_0_set_ppt_funcs(struct smu_context *smu) 1751 1760 { 1752 - 1753 1761 smu->ppt_funcs = &smu_v14_0_0_ppt_funcs; 1754 - smu->message_map = smu_v14_0_0_message_map; 1755 1762 smu->feature_map = smu_v14_0_0_feature_mask_map; 1756 1763 smu->table_map = smu_v14_0_0_table_map; 1757 1764 smu->is_apu = true; 1758 1765 1759 - smu_v14_0_0_set_smu_mailbox_registers(smu); 1760 1766 smu_v14_0_0_init_msg_ctl(smu); 1761 1767 }
-5
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
··· 2111 2111 { 2112 2112 struct amdgpu_device *adev = smu->adev; 2113 2113 2114 - smu->param_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_82); 2115 - smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_66); 2116 - smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_90); 2117 - 2118 2114 smu->debug_param_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_53); 2119 2115 smu->debug_msg_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_75); 2120 2116 smu->debug_resp_reg = SOC15_REG_OFFSET(MP1, 0, regMP1_SMN_C2PMSG_54); ··· 2871 2875 void smu_v14_0_2_set_ppt_funcs(struct smu_context *smu) 2872 2876 { 2873 2877 smu->ppt_funcs = &smu_v14_0_2_ppt_funcs; 2874 - smu->message_map = smu_v14_0_2_message_map; 2875 2878 smu->clock_map = smu_v14_0_2_clk_map; 2876 2879 smu->feature_map = smu_v14_0_2_feature_mask_map; 2877 2880 smu->table_map = smu_v14_0_2_table_map;