Home
last modified time | relevance | path

Searched refs:mmcra (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/arch/powerpc/oprofile/
Dop_model_power4.c105 mmcra_val = sys->mmcra; in power4_reg_setup()
172 unsigned long mmcra = mmcra_val; in power4_cpu_setup() local
187 mmcra |= MMCRA_SAMPLE_ENABLE; in power4_cpu_setup()
188 mtspr(SPRN_MMCRA, mmcra); in power4_cpu_setup()
280 unsigned long mmcra; in get_pc() local
287 mmcra = mfspr(SPRN_MMCRA); in get_pc()
289 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) { in get_pc()
290 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT); in get_pc()
297 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv)) in get_pc()
302 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr) in get_pc()
[all …]
Dcommon.c129 oprofilefs_create_ulong(root, "mmcra", &sys.mmcra); in op_powerpc_create_files()
/Linux-v5.4/arch/powerpc/perf/
Disa207-common.c72 static void mmcra_sdar_mode(u64 event, unsigned long *mmcra) in mmcra_sdar_mode() argument
91 if (is_event_marked(event) || (*mmcra & MMCRA_SAMPLE_ENABLE)) in mmcra_sdar_mode()
92 *mmcra &= MMCRA_SDAR_MODE_NO_UPDATES; in mmcra_sdar_mode()
94 *mmcra |= p9_SDAR_MODE(event) << MMCRA_SDAR_MODE_SHIFT; in mmcra_sdar_mode()
96 *mmcra |= MMCRA_SDAR_MODE_DCACHE; in mmcra_sdar_mode()
98 *mmcra |= MMCRA_SDAR_MODE_TLB; in mmcra_sdar_mode()
230 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local
231 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight()
232 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
369 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
[all …]
Dppc970-pmu.c258 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local
381 mmcra |= MMCRA_SAMPLE_ENABLE; in p970_compute_mmcr()
393 mmcra |= 0x2000; /* mark only one IOP per PPC instruction */ in p970_compute_mmcr()
398 mmcr[2] = mmcra; in p970_compute_mmcr()
Dpower6-pmu.c177 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in p6_compute_mmcr() local
242 mmcra |= MMCRA_SAMPLE_ENABLE; in p6_compute_mmcr()
252 mmcr[2] = mmcra; in p6_compute_mmcr()
Dpower7-pmu.c248 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power7_compute_mmcr() local
296 mmcra |= MMCRA_SAMPLE_ENABLE; in power7_compute_mmcr()
307 mmcr[2] = mmcra; in power7_compute_mmcr()
Dcore-book3s.c163 unsigned long mmcra = regs->dsisr; in perf_ip_adjust() local
165 if ((ppmu->flags & PPMU_HAS_SSLOT) && (mmcra & MMCRA_SAMPLE_ENABLE)) { in perf_ip_adjust()
166 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust()
184 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local
201 sdar_valid = mmcra & sdsync; in perf_get_data_addr()
204 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || sdar_valid) in perf_get_data_addr()
286 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs() local
287 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_read_regs()
290 regs->dsisr = mmcra; in perf_read_regs()
346 unsigned long mmcra = regs->dsisr; in siar_valid() local
[all …]
Dpower5-pmu.c385 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power5_compute_mmcr() local
524 mmcra |= MMCRA_SAMPLE_ENABLE; in power5_compute_mmcr()
537 mmcr[2] = mmcra; in power5_compute_mmcr()
Dpower5+-pmu.c454 unsigned long mmcra = 0; in power5p_compute_mmcr() local
579 mmcra |= MMCRA_SAMPLE_ENABLE; in power5p_compute_mmcr()
595 mmcr[2] = mmcra; in power5p_compute_mmcr()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Didle.c593 u64 mmcra; member
670 sprs.mmcra = mfspr(SPRN_MMCRA); in power9_idle_stop()
703 unsigned long mmcra; in power9_idle_stop() local
728 mmcra = mfspr(SPRN_MMCRA); in power9_idle_stop()
729 mmcra |= PPC_BIT(60); in power9_idle_stop()
730 mtspr(SPRN_MMCRA, mmcra); in power9_idle_stop()
731 mmcra &= ~PPC_BIT(60); in power9_idle_stop()
732 mtspr(SPRN_MMCRA, mmcra); in power9_idle_stop()
789 mtspr(SPRN_MMCRA, sprs.mmcra); in power9_idle_stop()
/Linux-v5.4/arch/powerpc/include/asm/
Doprofile_impl.h30 unsigned long mmcra; member
/Linux-v5.4/tools/perf/arch/powerpc/util/
Dperf_regs.c57 SMPL_REG(mmcra, PERF_REG_POWERPC_MMCRA),
/Linux-v5.4/arch/powerpc/kernel/
Dsysfs.c487 SYSFS_PMCSETUP(mmcra, SPRN_MMCRA);
498 static DEVICE_ATTR(mmcra, 0600, show_mmcra, store_mmcra);