Home
last modified time | relevance | path

Searched refs:mmcr1 (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/tools/testing/selftests/powerpc/pmu/sampling_tests/ !
Dmisc.h98 static inline int get_mmcr1_pmcxsel(u64 mmcr1, int pmc) in get_mmcr1_pmcxsel() argument
100 return ((mmcr1 >> ((24 - (((pmc) - 1) * 8))) & 0xff)); in get_mmcr1_pmcxsel()
103 static inline int get_mmcr1_unit(u64 mmcr1, int pmc) in get_mmcr1_unit() argument
105 return ((mmcr1 >> ((60 - (4 * ((pmc) - 1))))) & 0xf); in get_mmcr1_unit()
108 static inline int get_mmcr1_comb(u64 mmcr1, int pmc) in get_mmcr1_comb() argument
110 return ((mmcr1 >> (38 - ((pmc - 1) * 2))) & 0x3); in get_mmcr1_comb()
113 static inline int get_mmcr1_cache(u64 mmcr1, int pmc) in get_mmcr1_cache() argument
115 return ((mmcr1 >> 46) & 0x3); in get_mmcr1_cache()
118 static inline int get_mmcr1_rsq(u64 mmcr1, int pmc) in get_mmcr1_rsq() argument
120 return mmcr1 & MMCR1_RSQ; in get_mmcr1_rsq()
/linux-6.1.9/arch/powerpc/perf/ !
Dpower6-pmu.c179 unsigned long mmcr1 = 0; in p6_compute_mmcr() local
217 if ((ttmset & (1 << b)) && MMCR1_TTMSEL(mmcr1, b) != u) in p6_compute_mmcr()
219 mmcr1 |= (unsigned long)u << MMCR1_TTMSEL_SH(b); in p6_compute_mmcr()
225 MMCR1_NESTSEL(mmcr1) != s) in p6_compute_mmcr()
228 mmcr1 |= (unsigned long)s << MMCR1_NESTSEL_SH; in p6_compute_mmcr()
233 mmcr1 |= MMCR1_PMC1_ADDR_SEL >> pmc; in p6_compute_mmcr()
240 mmcr1 |= MMCR1_PMC1_LLA >> pmc; in p6_compute_mmcr()
242 mmcr1 |= MMCR1_PMC1_LLA_VALUE >> pmc; in p6_compute_mmcr()
247 mmcr1 |= (unsigned long)psel << MMCR1_PMCSEL_SH(pmc); in p6_compute_mmcr()
254 mmcr->mmcr1 = mmcr1; in p6_compute_mmcr()
[all …]
Dppc970-pmu.c262 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local
323 mmcr1 |= (unsigned long)(ttm & ~4) << MMCR1_TTM1SEL_SH; in p970_compute_mmcr()
341 mmcr1 |= 1ull << (MMCR1_TTM3SEL_SH + 3 - byte); in p970_compute_mmcr()
343 mmcr1 |= (unsigned long)ttm in p970_compute_mmcr()
378 mmcr1 |= 1ull << mmcr1_adder_bits[pmc]; in p970_compute_mmcr()
383 mmcr1 |= spcsel; in p970_compute_mmcr()
390 mmcr1 |= (unsigned long)pmcsel[pmc] in p970_compute_mmcr()
401 mmcr->mmcr1 = mmcr1; in p970_compute_mmcr()
418 mmcr->mmcr1 = (mmcr->mmcr1 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
Dpower5-pmu.c388 unsigned long mmcr1 = 0; in power5_compute_mmcr() local
460 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; in power5_compute_mmcr()
468 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; in power5_compute_mmcr()
483 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5_compute_mmcr()
486 mmcr1 |= (unsigned long)ttm in power5_compute_mmcr()
517 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); in power5_compute_mmcr()
525 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; in power5_compute_mmcr()
530 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power5_compute_mmcr()
540 mmcr->mmcr1 = mmcr1; in power5_compute_mmcr()
548 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); in power5_disable_pmc()
Dpower5+-pmu.c457 unsigned long mmcr1 = 0; in power5p_compute_mmcr() local
520 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; in power5p_compute_mmcr()
528 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; in power5p_compute_mmcr()
543 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5p_compute_mmcr()
546 mmcr1 |= (unsigned long)ttm in power5p_compute_mmcr()
572 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); in power5p_compute_mmcr()
580 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; in power5p_compute_mmcr()
588 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power5p_compute_mmcr()
598 mmcr->mmcr1 = mmcr1; in power5p_compute_mmcr()
606 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); in power5p_disable_pmc()
Dpower7-pmu.c251 unsigned long mmcr1 = 0; in power7_compute_mmcr() local
290 mmcr1 |= (unsigned long) unit in power7_compute_mmcr()
292 mmcr1 |= (unsigned long) combine in power7_compute_mmcr()
294 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power7_compute_mmcr()
296 mmcr1 |= (unsigned long) l2sel in power7_compute_mmcr()
310 mmcr->mmcr1 = mmcr1; in power7_compute_mmcr()
318 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); in power7_disable_pmc()
Disa207-common.c562 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
576 mmcra = mmcr1 = mmcr2 = mmcr3 = 0; in isa207_compute_mmcr()
602 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); in isa207_compute_mmcr()
603 mmcr1 |= combine << combine_shift(pmc); in isa207_compute_mmcr()
604 mmcr1 |= psel << MMCR1_PMCSEL_SHIFT(pmc); in isa207_compute_mmcr()
612 mmcr1 |= (cache) << MMCR1_DC_IC_QUAL_SHIFT; in isa207_compute_mmcr()
616 mmcr1 |= (cache) << MMCR1_DC_IC_QUAL_SHIFT; in isa207_compute_mmcr()
624 mmcr1 |= val << p10_MMCR1_RADIX_SCOPE_QUAL_SHIFT; in isa207_compute_mmcr()
642 mmcr1 |= ((event[i] >> EVENT_THR_CTL_SHIFT) & in isa207_compute_mmcr()
725 mmcr->mmcr1 = mmcr1; in isa207_compute_mmcr()
[all …]
Dmpc7450-pmu.c268 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
314 mmcr1 |= ev; in mpc7450_compute_mmcr()
326 mmcr->mmcr1 = mmcr1; in mpc7450_compute_mmcr()
347 mmcr->mmcr1 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
Dcore-book3s.c1470 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1510 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
/linux-6.1.9/arch/powerpc/kvm/ !
Dbook3s_hv.h17 unsigned long mmcr1; member
Dbook3s_hv_p9_perf.c60 host_os_sprs->mmcr1 = mfspr(SPRN_MMCR1); in switch_pmu_to_guest()
201 mtspr(SPRN_MMCR1, host_os_sprs->mmcr1); in switch_pmu_to_host()
/linux-6.1.9/arch/powerpc/include/asm/ !
Dperf_event_server.h22 unsigned long mmcr1; member
/linux-6.1.9/arch/powerpc/kernel/ !
Dsysfs.c598 SYSFS_PMCSETUP(mmcr1, SPRN_MMCR1);
668 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
675 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
699 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
/linux-6.1.9/tools/perf/arch/powerpc/util/ !
Dperf_regs.c66 SMPL_REG(mmcr1, PERF_REG_POWERPC_MMCR1),
/linux-6.1.9/arch/powerpc/platforms/powernv/ !
Didle.c596 u32 mmcr1; member
673 sprs.mmcr1 = mfspr(SPRN_MMCR1); in power9_idle_stop()
789 mtspr(SPRN_MMCR1, sprs.mmcr1); in power9_idle_stop()