Home
last modified time | relevance | path

Searched refs:hw_dom (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/arch/x86/kernel/cpu/resctrl/
Dcore.c306 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in mba_wrmsr_amd() local
310 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in mba_wrmsr_amd()
332 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in mba_wrmsr_intel() local
337 wrmsrl(hw_res->msr_base + i, delay_bw_map(hw_dom->ctrl_val[i], r)); in mba_wrmsr_intel()
344 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in cat_wrmsr() local
348 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in cat_wrmsr()
433 static void domain_free(struct rdt_hw_domain *hw_dom) in domain_free() argument
435 kfree(hw_dom->arch_mbm_total); in domain_free()
436 kfree(hw_dom->arch_mbm_local); in domain_free()
437 kfree(hw_dom->ctrl_val); in domain_free()
[all …]
Dctrlmondata.c268 static bool apply_config(struct rdt_hw_domain *hw_dom, in apply_config() argument
272 struct rdt_domain *dom = &hw_dom->d_resctrl; in apply_config()
274 if (cfg->new_ctrl != hw_dom->ctrl_val[idx]) { in apply_config()
276 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in apply_config()
288 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_update_one() local
295 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one()
308 struct rdt_hw_domain *hw_dom; in resctrl_arch_update_domains() local
320 hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_update_domains()
322 cfg = &hw_dom->d_resctrl.staged_config[t]; in resctrl_arch_update_domains()
327 if (!apply_config(hw_dom, cfg, idx, cpu_mask)) in resctrl_arch_update_domains()
[all …]
Dmonitor.c173 static struct arch_mbm_state *get_arch_mbm_state(struct rdt_hw_domain *hw_dom, in get_arch_mbm_state() argument
181 return &hw_dom->arch_mbm_total[rmid]; in get_arch_mbm_state()
183 return &hw_dom->arch_mbm_local[rmid]; in get_arch_mbm_state()
195 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_reset_rmid() local
198 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_rmid()
213 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_reset_rmid_all() local
216 memset(hw_dom->arch_mbm_total, 0, in resctrl_arch_reset_rmid_all()
217 sizeof(*hw_dom->arch_mbm_total) * r->num_rmid); in resctrl_arch_reset_rmid_all()
220 memset(hw_dom->arch_mbm_local, 0, in resctrl_arch_reset_rmid_all()
221 sizeof(*hw_dom->arch_mbm_local) * r->num_rmid); in resctrl_arch_reset_rmid_all()
[all …]
Drdtgroup.c2634 struct rdt_hw_domain *hw_dom; in reset_all_ctrls() local
2653 hw_dom = resctrl_to_arch_dom(d); in reset_all_ctrls()
2657 hw_dom->ctrl_val[i] = r->default_ctrl; in reset_all_ctrls()