diff options
author | James Clark <[email protected]> | 2022-12-09 16:44:46 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-12-12 09:07:14 +0000 |
commit | aff234839f8b80ac101e6c2f14d0e44b236efa48 (patch) | |
tree | 81b6e0f5ad1c480705995526722f0bd68bd6ce6b /tools/perf/scripts/python/flamegraph.py | |
parent | 753d734f3f347e7fc49b819472bbf61dcfc1a16f (diff) |
KVM: arm64: PMU: Fix PMCR_EL0 reset value
ARMV8_PMU_PMCR_N_MASK is an unshifted value which results in the wrong
reset value for PMCR_EL0, so shift it to fix it.
This fixes the following error when running qemu:
$ qemu-system-aarch64 -cpu host -machine type=virt,accel=kvm -kernel ...
target/arm/helper.c:1813: pmevcntr_rawwrite: Assertion `counter < pmu_num_counters(env)' failed.
Fixes: 292e8f149476 ("KVM: arm64: PMU: Simplify PMCR_EL0 reset handling")
Signed-off-by: James Clark <[email protected]>
Reviewed-by: Oliver Upton <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions