Home
last modified time | relevance | path

Searched refs:mmcr0 (Results 1 – 21 of 21) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dmisc.h63 static inline int get_mmcr0_fc56(u64 mmcr0, int pmc) in get_mmcr0_fc56() argument
65 return (mmcr0 & MMCR0_FC56); in get_mmcr0_fc56()
70 return (mmcr0 & MMCR0_PMCCEXT); in get_mmcr0_pmccext()
73 static inline int get_mmcr0_pmao(u64 mmcr0, int pmc) in get_mmcr0_pmao() argument
75 return ((mmcr0 >> 7) & 0x1); in get_mmcr0_pmao()
80 return ((mmcr0 >> 8) & 0x1); in get_mmcr0_cc56run()
83 static inline int get_mmcr0_pmcjce(u64 mmcr0, int pmc) in get_mmcr0_pmcjce() argument
85 return ((mmcr0 >> 14) & 0x1); in get_mmcr0_pmcjce()
90 return ((mmcr0 >> 15) & 0x1); in get_mmcr0_pmc1ce()
93 static inline int get_mmcr0_pmae(u64 mmcr0, int pmc) in get_mmcr0_pmae() argument
[all …]
/linux-6.3-rc2/arch/powerpc/kvm/
A Dbook3s_hv_p9_perf.c8 static void freeze_pmu(unsigned long mmcr0, unsigned long mmcra) in freeze_pmu() argument
10 if (!(mmcr0 & MMCR0_FC)) in freeze_pmu()
15 if (!(mmcr0 & MMCR0_PMCCEXT)) in freeze_pmu()
23 mmcr0 = MMCR0_FC; in freeze_pmu()
26 mmcr0 |= MMCR0_PMCCEXT; in freeze_pmu()
30 mtspr(SPRN_MMCR0, mmcr0); in freeze_pmu()
49 host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0); in switch_pmu_to_guest()
52 freeze_pmu(host_os_sprs->mmcr0, host_os_sprs->mmcra); in switch_pmu_to_guest()
215 mtspr(SPRN_MMCR0, host_os_sprs->mmcr0); in switch_pmu_to_host()
A Dbook3s_hv.h16 unsigned long mmcr0; member
/linux-6.3-rc2/arch/powerpc/perf/
A Dmpc7450-pmu.c268 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
305 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr()
312 mmcr0 |= ev; in mpc7450_compute_mmcr()
320 mmcr0 |= MMCR0_PMC1CE; in mpc7450_compute_mmcr()
322 mmcr0 |= MMCR0_PMCnCE; in mpc7450_compute_mmcr()
325 mmcr->mmcr0 = mmcr0; in mpc7450_compute_mmcr()
345 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
A Dcore-book3s.c130 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
632 if (!(mmcr0 & MMCR0_EBE)) in ebb_switch_out()
638 current->thread.mmcr0 = mmcr0 & MMCR0_USER_MASK; in ebb_switch_out()
649 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; in ebb_switch_in() local
662 mmcr0 |= current->thread.mmcr0; in ebb_switch_in()
670 mmcr0 &= ~MMCR0_PMXE; in ebb_switch_in()
691 return mmcr0; in ebb_switch_in()
1271 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
1288 if (mmcr0 & MMCR0_FC) in write_mmcr0()
1394 ebb_switch_out(mmcr0); in power_pmu_disable()
[all …]
A Dppc970-pmu.c262 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local
388 mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); in p970_compute_mmcr()
393 mmcr0 |= MMCR0_PMC1CE; in p970_compute_mmcr()
395 mmcr0 |= MMCR0_PMCjCE; in p970_compute_mmcr()
400 mmcr->mmcr0 = mmcr0; in p970_compute_mmcr()
415 mmcr->mmcr0 = (mmcr->mmcr0 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
A Dpower7-pmu.c305 mmcr->mmcr0 = 0; in power7_compute_mmcr()
307 mmcr->mmcr0 = MMCR0_PMC1CE; in power7_compute_mmcr()
309 mmcr->mmcr0 |= MMCR0_PMCjCE; in power7_compute_mmcr()
A Dpower6-pmu.c249 mmcr->mmcr0 = 0; in p6_compute_mmcr()
251 mmcr->mmcr0 = MMCR0_PMC1CE; in p6_compute_mmcr()
253 mmcr->mmcr0 |= MMCR0_PMCjCE; in p6_compute_mmcr()
A Disa207-common.c704 mmcr->mmcr0 = 0; in isa207_compute_mmcr()
708 mmcr->mmcr0 = MMCR0_PMC1CE; in isa207_compute_mmcr()
711 mmcr->mmcr0 |= MMCR0_PMCjCE; in isa207_compute_mmcr()
715 mmcr->mmcr0 |= MMCR0_FC56; in isa207_compute_mmcr()
723 mmcr->mmcr0 |= MMCR0_PMCCEXT; in isa207_compute_mmcr()
A Dpower5-pmu.c535 mmcr->mmcr0 = 0; in power5_compute_mmcr()
537 mmcr->mmcr0 = MMCR0_PMC1CE; in power5_compute_mmcr()
539 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5_compute_mmcr()
A Dpower5+-pmu.c593 mmcr->mmcr0 = 0; in power5p_compute_mmcr()
595 mmcr->mmcr0 = MMCR0_PMC1CE; in power5p_compute_mmcr()
597 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5p_compute_mmcr()
A Dgeneric-compat-pmu.c300 mmcr->mmcr0 |= MMCR0_C56RUN; in generic_compute_mmcr()
A Dpower10-pmu.c576 mmcr->mmcr0 |= MMCR0_C56RUN; in power10_compute_mmcr()
/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/ebb/
A Debb.c219 u32 mmcr0; in dump_ebb_hw_state() local
221 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state()
236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
/linux-6.3-rc2/arch/powerpc/platforms/powernv/
A Didle.c595 u32 mmcr0; member
614 unsigned long mmcr0 = 0; in power9_idle_stop() local
658 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop()
672 sprs.mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop()
719 mtspr(SPRN_MMCR0, mmcr0); in power9_idle_stop()
788 mtspr(SPRN_MMCR0, sprs.mmcr0); in power9_idle_stop()
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dswitch_to.h116 t->thread.mmcr0 = 0; in clear_task_ebb()
A Dperf_event_server.h21 unsigned long mmcr0; member
A Dprocessor.h261 unsigned mmcr0; member
/linux-6.3-rc2/arch/powerpc/kernel/
A Dsysfs.c597 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
667 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
674 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
698 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
/linux-6.3-rc2/tools/perf/arch/powerpc/util/
A Dperf_regs.c65 SMPL_REG(mmcr0, PERF_REG_POWERPC_MMCR0),
/linux-6.3-rc2/arch/powerpc/kernel/ptrace/
A Dptrace-view.c404 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get()
422 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set()
447 &target->thread.mmcr0, 4 * sizeof(unsigned long), in pmu_set()

Completed in 35 milliseconds