Lines Matching +full:used +full:- +full:by +full:- +full:rtas
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2006-2007 Will Schmidt <willschm@us.ibm.com>, IBM
14 #include <asm/rtas.h>
32 /* mmcr values are set in power4_reg_setup, used in power4_cpu_setup */
45 * power7_marked_instr_event() in file arch/powerpc/perf/power7-pmu.c. in power7_marked_instr_event()
49 << (OPROFILE_MAX_PMC_NUM - pmc) in power7_marked_instr_event()
51 psel = (psel >> ((OPROFILE_MAX_PMC_NUM - pmc) in power7_marked_instr_event()
55 - (pmc * OPROFILE_PMSEL_FIELD_WIDTH ))); in power7_marked_instr_event()
57 - (pmc * OPROFILE_PMSEL_FIELD_WIDTH)); in power7_marked_instr_event()
103 mmcr0_val = sys->mmcr0; in power4_reg_setup()
104 mmcr1_val = sys->mmcr1; in power4_reg_setup()
105 mmcra_val = sys->mmcra; in power4_reg_setup()
109 * specified by the bit settings in the MMCR1 register) are marked in power4_reg_setup()
111 * before OProfile starts. Information is used in the interrupt in power4_reg_setup()
124 for (i = 0; i < cur_cpu_spec->num_pmcs; ++i) in power4_reg_setup()
125 reset_value[i] = 0x80000000UL - ctr[i].count; in power4_reg_setup()
128 if (sys->enable_kernel) in power4_reg_setup()
133 if (sys->enable_user) in power4_reg_setup()
208 for (i = 0; i < cur_cpu_spec->num_pmcs; ++i) { in power4_start()
254 /* Fake functions used by canonicalize_pc */
270 * the hypervisor, our exception vectors or RTAS.
284 if (!cur_cpu_spec->oprofile_mmcra_sihv) in get_pc()
292 pc += 4 * (slot - 1); 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()
306 /* Were we in RTAS? */ in get_pc()
307 if (pc >= rtas.base && pc < (rtas.base + rtas.size)) in get_pc()
328 if (!cur_cpu_spec->oprofile_mmcra_sihv) { in get_kernel()
331 is_kernel = ((mmcra & cur_cpu_spec->oprofile_mmcra_sipr) == 0); in get_kernel()
353 if (pvr_version_is(PVR_POWER7) && ((0x80000000 - val) <= 256)) in pmc_overflow()
382 for (i = 0; i < cur_cpu_spec->num_pmcs; ++i) { in power4_handle_interrupt()
420 mmcra &= ~cur_cpu_spec->oprofile_mmcra_clear; in power4_handle_interrupt()