Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/powerpc/perf/
Disa207-common.c82 static void mmcra_sdar_mode(u64 event, unsigned long *mmcra) in mmcra_sdar_mode() argument
101 if (is_event_marked(event) || (*mmcra & MMCRA_SAMPLE_ENABLE)) in mmcra_sdar_mode()
102 *mmcra &= MMCRA_SDAR_MODE_NO_UPDATES; in mmcra_sdar_mode()
104 *mmcra |= sdar_mod_val(event) << MMCRA_SDAR_MODE_SHIFT; in mmcra_sdar_mode()
106 *mmcra |= MMCRA_SDAR_MODE_DCACHE; in mmcra_sdar_mode()
108 *mmcra |= MMCRA_SDAR_MODE_TLB; in mmcra_sdar_mode()
244 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local
245 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight()
246 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
251 mantissa = P10_MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
[all …]
Dppc970-pmu.c261 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local
384 mmcra |= MMCRA_SAMPLE_ENABLE; in p970_compute_mmcr()
396 mmcra |= 0x2000; /* mark only one IOP per PPC instruction */ in p970_compute_mmcr()
401 mmcr->mmcra = mmcra; in p970_compute_mmcr()
Dcore-book3s.c167 unsigned long mmcra = regs->dsisr; in perf_ip_adjust() local
169 if ((ppmu->flags & PPMU_HAS_SSLOT) && (mmcra & MMCRA_SAMPLE_ENABLE)) { in perf_ip_adjust()
170 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust()
188 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local
205 sdar_valid = mmcra & sdsync; in perf_get_data_addr()
208 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || sdar_valid) in perf_get_data_addr()
289 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs() local
290 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_read_regs()
293 regs->dsisr = mmcra; in perf_read_regs()
340 unsigned long mmcra = regs->dsisr; in siar_valid() local
[all …]
Dpower7-pmu.c251 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power7_compute_mmcr() local
299 mmcra |= MMCRA_SAMPLE_ENABLE; in power7_compute_mmcr()
310 mmcr->mmcra = mmcra; in power7_compute_mmcr()
Dpower6-pmu.c179 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in p6_compute_mmcr() local
244 mmcra |= MMCRA_SAMPLE_ENABLE; in p6_compute_mmcr()
254 mmcr->mmcra = mmcra; in p6_compute_mmcr()
Dpower5-pmu.c388 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power5_compute_mmcr() local
527 mmcra |= MMCRA_SAMPLE_ENABLE; in power5_compute_mmcr()
540 mmcr->mmcra = mmcra; in power5_compute_mmcr()
Dpower5+-pmu.c457 unsigned long mmcra = 0; in power5p_compute_mmcr() local
582 mmcra |= MMCRA_SAMPLE_ENABLE; in power5p_compute_mmcr()
598 mmcr->mmcra = mmcra; in power5p_compute_mmcr()
Dmpc7450-pmu.c333 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Didle.c593 u64 mmcra; member
614 unsigned long mmcra = 0; in power9_idle_stop() local
672 sprs.mmcra = mfspr(SPRN_MMCRA); in power9_idle_stop()
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()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Doprofile_impl.h30 unsigned long mmcra; member
Dperf_event_server.h24 unsigned long mmcra; member
Dkvm_host.h643 u64 mmcra; member
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/
Dperf_regs.c64 SMPL_REG(mmcra, PERF_REG_POWERPC_MMCRA),
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsysfs.c615 SYSFS_PMCSETUP(mmcra, SPRN_MMCRA);
618 static DEVICE_ATTR(mmcra, 0600, show_mmcra, store_mmcra);
Dasm-offsets.c563 OFFSET(VCPU_MMCRA, kvm_vcpu, arch.mmcra); in main()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv.c1700 *val = get_reg_val(id, vcpu->arch.mmcra); in kvmppc_get_one_reg_hv()
1939 vcpu->arch.mmcra = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()