/kernel/linux/linux-6.6/arch/x86/kernel/cpu/resctrl/ |
H A D | monitor.c | 28 u32 rmid; member 80 * If rmid > rmid threshold, MBM total and local values should be multiplied 85 * 1. The threshold 0 is changed to rmid count - 1 so don't do correction 130 static inline u64 get_corrected_mbm_count(u32 rmid, unsigned long val) in get_corrected_mbm_count() argument 133 if (rmid > mbm_cf_rmidthreshold) in get_corrected_mbm_count() 139 static inline struct rmid_entry *__rmid_entry(u32 rmid) in __rmid_entry() argument 143 entry = &rmid_ptrs[rmid]; in __rmid_entry() 144 WARN_ON(entry->rmid != rmid); in __rmid_entry() 149 __rmid_read(u32 rmid, enum resctrl_event_id eventid, u64 *val) __rmid_read() argument 173 get_arch_mbm_state(struct rdt_hw_domain *hw_dom, u32 rmid, enum resctrl_event_id eventid) get_arch_mbm_state() argument 192 resctrl_arch_reset_rmid(struct rdt_resource *r, struct rdt_domain *d, u32 rmid, enum resctrl_event_id eventid) resctrl_arch_reset_rmid() argument 232 resctrl_arch_rmid_read(struct rdt_resource *r, struct rdt_domain *d, u32 rmid, enum resctrl_event_id eventid, u64 *val) resctrl_arch_rmid_read() argument 369 free_rmid(u32 rmid) free_rmid() argument 386 get_mbm_state(struct rdt_domain *d, u32 rmid, enum resctrl_event_id evtid) get_mbm_state() argument 399 __mon_event_count(u32 rmid, struct rmid_read *rr) __mon_event_count() argument 432 mbm_bw_count(u32 rmid, struct rmid_read *rr) mbm_bw_count() argument 518 u32 closid, rmid, cur_msr_val, new_msr_val; update_mba_bw() local 581 mbm_update(struct rdt_resource *r, struct rdt_domain *d, int rmid) mbm_update() argument [all...] |
H A D | rdtgroup.c | 322 this_cpu_write(pqr_state.default_rmid, r->mon.rmid); in update_cpu_closid_rmid() 367 * and update per-cpu rmid in cpus_mon_write() 421 * and update per-cpu closid/rmid. in cpus_ctrl_write() 440 * now and update the rmid for the cpus the child lost. in cpus_ctrl_write() 562 tsk->rmid == rdtgrp->mon.rmid) || in __rdtgroup_move_task() 563 (rdtgrp->type == RDTMON_GROUP && tsk->rmid == rdtgrp->mon.rmid && in __rdtgroup_move_task() 568 * Set the task's closid/rmid before the PQR_ASSOC MSR can be in __rdtgroup_move_task() 571 * For ctrl_mon groups, move both closid and rmid in __rdtgroup_move_task() [all...] |
H A D | internal.h | 160 * @rmid: rmid for this rdtgroup 166 u32 rmid; member 536 void free_rmid(u32 rmid);
|
H A D | pseudo_lock.c | 750 * If this system is capable of monitoring a rmid would have been in rdtgroup_locksetup_enter() 755 free_rmid(rdtgrp->mon.rmid); in rdtgroup_locksetup_enter() 785 rdtgrp->mon.rmid = ret; in rdtgroup_locksetup_exit() 790 free_rmid(rdtgrp->mon.rmid); in rdtgroup_locksetup_exit()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
H A D | monitor.c | 24 u32 rmid; member 67 static inline struct rmid_entry *__rmid_entry(u32 rmid) in __rmid_entry() argument 71 entry = &rmid_ptrs[rmid]; in __rmid_entry() 72 WARN_ON(entry->rmid != rmid); in __rmid_entry() 77 static u64 __rmid_read(u32 rmid, u32 eventid) in __rmid_read() argument 89 wrmsr(MSR_IA32_QM_EVTSEL, eventid, rmid); in __rmid_read() 97 u64 val = __rmid_read(entry->rmid, QOS_L3_OCCUP_EVENT_ID); in rmid_dirty() 129 clear_bit(entry->rmid, d->rmid_busy_llc); in __check_limbo() 162 return entry->rmid; in alloc_rmid() 200 free_rmid(u32 rmid) free_rmid() argument 225 __mon_event_count(u32 rmid, struct rmid_read *rr) __mon_event_count() argument 270 mbm_bw_count(u32 rmid, struct rmid_read *rr) mbm_bw_count() argument 358 u32 closid, rmid, cur_msr, cur_msr_val, new_msr_val; update_mba_bw() local 439 mbm_update(struct rdt_resource *r, struct rdt_domain *d, int rmid) mbm_update() argument [all...] |
H A D | rdtgroup.c | 306 this_cpu_write(pqr_state.default_rmid, r->mon.rmid); in update_cpu_closid_rmid() 356 * and update per-cpu rmid in cpus_mon_write() 410 * and update per-cpu closid/rmid. in cpus_ctrl_write() 429 * now and update the rmid for the cpus the child lost. in cpus_ctrl_write() 551 tsk->rmid == rdtgrp->mon.rmid) || in __rdtgroup_move_task() 552 (rdtgrp->type == RDTMON_GROUP && tsk->rmid == rdtgrp->mon.rmid && in __rdtgroup_move_task() 557 * Set the task's closid/rmid before the PQR_ASSOC MSR can be in __rdtgroup_move_task() 560 * For ctrl_mon groups, move both closid and rmid in __rdtgroup_move_task() [all...] |
H A D | internal.h | 148 * @rmid: rmid for this rdtgroup 154 u32 rmid; member 608 void free_rmid(u32 rmid);
|
H A D | pseudo_lock.c | 732 * If this system is capable of monitoring a rmid would have been in rdtgroup_locksetup_enter() 737 free_rmid(rdtgrp->mon.rmid); in rdtgroup_locksetup_enter() 767 rdtgrp->mon.rmid = ret; in rdtgroup_locksetup_exit() 772 free_rmid(rdtgrp->mon.rmid); in rdtgroup_locksetup_exit()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | resctrl.h | 20 * lower 10 bits rmid. The update to IA32_PQR_ASSOC always 58 u32 rmid = state->default_rmid; in __resctrl_sched_in() local 62 * If this task has a closid/rmid assigned, use it. in __resctrl_sched_in() 63 * Else use the closid/rmid assigned to this cpu. in __resctrl_sched_in() 72 tmp = READ_ONCE(tsk->rmid); in __resctrl_sched_in() 74 rmid = tmp; in __resctrl_sched_in() 77 if (closid != state->cur_closid || rmid != state->cur_rmid) { in __resctrl_sched_in() 79 state->cur_rmid = rmid; in __resctrl_sched_in() 80 wrmsr(IA32_PQR_ASSOC, rmid, closid); in __resctrl_sched_in()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | resctrl.h | 18 * lower 10 bits rmid. The update to MSR_IA32_PQR_ASSOC always 56 u32 rmid = state->default_rmid; in __resctrl_sched_in() local 60 * If this task has a closid/rmid assigned, use it. in __resctrl_sched_in() 61 * Else use the closid/rmid assigned to this cpu. in __resctrl_sched_in() 70 tmp = READ_ONCE(tsk->rmid); in __resctrl_sched_in() 72 rmid = tmp; in __resctrl_sched_in() 75 if (closid != state->cur_closid || rmid != state->cur_rmid) { in __resctrl_sched_in() 77 state->cur_rmid = rmid; in __resctrl_sched_in() 78 wrmsr(MSR_IA32_PQR_ASSOC, rmid, closid); in __resctrl_sched_in()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | resctrl.h | 224 * resctrl_arch_rmid_read() - Read the eventid counter corresponding to rmid 228 * @rmid: rmid of the counter to read. 238 u32 rmid, enum resctrl_event_id eventid, u64 *val); 241 * resctrl_arch_reset_rmid() - Reset any private state associated with rmid 244 * @d: The rmid's domain. 245 * @rmid: The rmid whose counter values should be reset. 251 u32 rmid, enum resctrl_event_id eventid);
|
H A D | sched.h | 1349 u32 rmid; member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | sched.h | 1242 u32 rmid; member
|