• Home
  • Raw
  • Download

Lines Matching refs:hwmgr

28 static int smu7_enable_disable_uvd_dpm(struct pp_hwmgr *hwmgr, bool enable)  in smu7_enable_disable_uvd_dpm()  argument
30 return smum_send_msg_to_smc(hwmgr->smumgr, enable ? in smu7_enable_disable_uvd_dpm()
35 static int smu7_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_disable_vce_dpm() argument
37 return smum_send_msg_to_smc(hwmgr->smumgr, enable ? in smu7_enable_disable_vce_dpm()
42 static int smu7_enable_disable_samu_dpm(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_disable_samu_dpm() argument
44 return smum_send_msg_to_smc(hwmgr->smumgr, enable ? in smu7_enable_disable_samu_dpm()
49 static int smu7_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_uvd_dpm() argument
52 smum_update_smc_table(hwmgr, SMU_UVD_TABLE); in smu7_update_uvd_dpm()
53 return smu7_enable_disable_uvd_dpm(hwmgr, !bgate); in smu7_update_uvd_dpm()
56 static int smu7_update_vce_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_vce_dpm() argument
59 smum_update_smc_table(hwmgr, SMU_VCE_TABLE); in smu7_update_vce_dpm()
60 return smu7_enable_disable_vce_dpm(hwmgr, !bgate); in smu7_update_vce_dpm()
63 static int smu7_update_samu_dpm(struct pp_hwmgr *hwmgr, bool bgate) in smu7_update_samu_dpm() argument
66 smum_update_smc_table(hwmgr, SMU_SAMU_TABLE); in smu7_update_samu_dpm()
67 return smu7_enable_disable_samu_dpm(hwmgr, !bgate); in smu7_update_samu_dpm()
70 int smu7_powerdown_uvd(struct pp_hwmgr *hwmgr) in smu7_powerdown_uvd() argument
72 if (phm_cf_want_uvd_power_gating(hwmgr)) in smu7_powerdown_uvd()
73 return smum_send_msg_to_smc(hwmgr->smumgr, in smu7_powerdown_uvd()
78 int smu7_powerup_uvd(struct pp_hwmgr *hwmgr) in smu7_powerup_uvd() argument
80 if (phm_cf_want_uvd_power_gating(hwmgr)) { in smu7_powerup_uvd()
81 if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, in smu7_powerup_uvd()
83 return smum_send_msg_to_smc_with_parameter(hwmgr->smumgr, in smu7_powerup_uvd()
86 return smum_send_msg_to_smc_with_parameter(hwmgr->smumgr, in smu7_powerup_uvd()
94 int smu7_powerdown_vce(struct pp_hwmgr *hwmgr) in smu7_powerdown_vce() argument
96 if (phm_cf_want_vce_power_gating(hwmgr)) in smu7_powerdown_vce()
97 return smum_send_msg_to_smc(hwmgr->smumgr, in smu7_powerdown_vce()
102 int smu7_powerup_vce(struct pp_hwmgr *hwmgr) in smu7_powerup_vce() argument
104 if (phm_cf_want_vce_power_gating(hwmgr)) in smu7_powerup_vce()
105 return smum_send_msg_to_smc(hwmgr->smumgr, in smu7_powerup_vce()
110 int smu7_powerdown_samu(struct pp_hwmgr *hwmgr) in smu7_powerdown_samu() argument
112 if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, in smu7_powerdown_samu()
114 return smum_send_msg_to_smc(hwmgr->smumgr, in smu7_powerdown_samu()
119 int smu7_powerup_samu(struct pp_hwmgr *hwmgr) in smu7_powerup_samu() argument
121 if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, in smu7_powerup_samu()
123 return smum_send_msg_to_smc(hwmgr->smumgr, in smu7_powerup_samu()
128 int smu7_disable_clock_power_gating(struct pp_hwmgr *hwmgr) in smu7_disable_clock_power_gating() argument
130 struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); in smu7_disable_clock_power_gating()
136 smu7_powerup_uvd(hwmgr); in smu7_disable_clock_power_gating()
137 smu7_powerup_vce(hwmgr); in smu7_disable_clock_power_gating()
138 smu7_powerup_samu(hwmgr); in smu7_disable_clock_power_gating()
143 int smu7_powergate_uvd(struct pp_hwmgr *hwmgr, bool bgate) in smu7_powergate_uvd() argument
145 struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); in smu7_powergate_uvd()
150 cgs_set_clockgating_state(hwmgr->device, in smu7_powergate_uvd()
153 smu7_update_uvd_dpm(hwmgr, true); in smu7_powergate_uvd()
154 smu7_powerdown_uvd(hwmgr); in smu7_powergate_uvd()
156 smu7_powerup_uvd(hwmgr); in smu7_powergate_uvd()
157 smu7_update_uvd_dpm(hwmgr, false); in smu7_powergate_uvd()
158 cgs_set_clockgating_state(hwmgr->device, in smu7_powergate_uvd()
166 int smu7_powergate_vce(struct pp_hwmgr *hwmgr, bool bgate) in smu7_powergate_vce() argument
168 struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); in smu7_powergate_vce()
176 cgs_set_clockgating_state(hwmgr->device, in smu7_powergate_vce()
179 smu7_update_vce_dpm(hwmgr, true); in smu7_powergate_vce()
180 smu7_powerdown_vce(hwmgr); in smu7_powergate_vce()
182 smu7_powerup_vce(hwmgr); in smu7_powergate_vce()
183 smu7_update_vce_dpm(hwmgr, false); in smu7_powergate_vce()
184 cgs_set_clockgating_state(hwmgr->device, in smu7_powergate_vce()
191 int smu7_powergate_samu(struct pp_hwmgr *hwmgr, bool bgate) in smu7_powergate_samu() argument
193 struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); in smu7_powergate_samu()
201 smu7_update_samu_dpm(hwmgr, true); in smu7_powergate_samu()
202 smu7_powerdown_samu(hwmgr); in smu7_powergate_samu()
204 smu7_powerup_samu(hwmgr); in smu7_powergate_samu()
205 smu7_update_samu_dpm(hwmgr, false); in smu7_powergate_samu()
211 int smu7_update_clock_gatings(struct pp_hwmgr *hwmgr, in smu7_update_clock_gatings() argument
217 if (!(hwmgr->feature_mask & PP_ENABLE_GFX_CG_THRU_SMU)) in smu7_update_clock_gatings()
231 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
241 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
254 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
265 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
278 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
291 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
305 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
325 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
335 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
348 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
359 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
372 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
382 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
395 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
406 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
419 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
430 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
443 hwmgr->smumgr, msg, value)) in smu7_update_clock_gatings()
466 int smu7_enable_per_cu_power_gating(struct pp_hwmgr *hwmgr, bool enable) in smu7_enable_per_cu_power_gating() argument
475 result = cgs_query_system_info(hwmgr->device, &sys_info); in smu7_enable_per_cu_power_gating()
483 return smum_send_msg_to_smc_with_parameter(hwmgr->smumgr, in smu7_enable_per_cu_power_gating()
486 return smum_send_msg_to_smc(hwmgr->smumgr, in smu7_enable_per_cu_power_gating()