diff options
author | Rob Herring (Arm) <robh@kernel.org> | 2024-07-31 19:51:19 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-08-16 15:09:12 +0300 |
commit | a4a6e2078d85a9d94bcc7eab77845cb8cd39f680 (patch) | |
tree | 884ba4a594cf575a0ca30b99be2f8a94d60ad884 /include/kvm | |
parent | bf5ffc8c80e0cf5205849cd0c9c3cb261d2beee6 (diff) | |
download | linux-a4a6e2078d85a9d94bcc7eab77845cb8cd39f680.tar.xz |
perf: arm_pmuv3: Prepare for more than 32 counters
Various PMUv3 registers which are a mask of counters are 64-bit
registers, but the accessor functions take a u32. This has been fine as
the upper 32-bits have been RES0 as there has been a maximum of 32
counters prior to Armv9.4/8.9. With Armv9.4/8.9, a 33rd counter is
added. Update the accessor functions to use a u64 instead.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Tested-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20240731-arm-pmu-3-9-icntr-v3-2-280a8d7ff465@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_pmu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h index 35d4ca4f6122..334d7c5503cf 100644 --- a/include/kvm/arm_pmu.h +++ b/include/kvm/arm_pmu.h @@ -19,8 +19,8 @@ struct kvm_pmc { }; struct kvm_pmu_events { - u32 events_host; - u32 events_guest; + u64 events_host; + u64 events_guest; }; struct kvm_pmu { |