Skip to content

More fully implement ARM PMUv3

Aaron Lindsay qemu-arm qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest13 patches 19 repliesIn review
  2. v421 patches 7 repliesSuperseded
  3. v322 patches 53 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v213 patches18 repliesSuperseded
v113 patches3 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13target/arm: Reorganize PMCCNTR accessestarget/arm/cpu.h target/arm/helper.c+73 -554 replies
2/13target/arm: Filter cycle counter based on PMCCFILTR_EL0target/arm/cpu.c target/arm/cpu.h target/arm/helper.c+129 -101 reply
3/13target/arm: Allow AArch32 access for PMCCFILTRtarget/arm/helper.c+26 -11 reply
4/13target/arm: Add ARM_FEATURE_V7VE for v7 Virtualization Extensionstarget/arm/cpu.c target/arm/cpu.h target/arm/kvm32.c+19 -111 reply
5/13target/arm: Remove redundant DIV detection for KVMtarget/arm/kvm32.c+1 -181 reply
6/13target/arm: Implement PMOVSSETtarget/arm/helper.c+28 -02 replies
7/13target/arm: Add array for supported PMU events, generate PMCEID[01]target/arm/cpu.c target/arm/cpu.h target/arm/cpu64.c +1 more+60 -92 replies
8/13target/arm: Finish implementation of PM[X]EVCNTR and PM[X]EVTYPERtarget/arm/cpu.h target/arm/helper.c+209 -182 replies
9/13target/arm: PMU: Add instruction and cycle eventstarget/arm/helper.c+43 -451 reply
10/13target/arm: PMU: Set PMCR.N to 4target/arm/helper.c+3 -20 replies
11/13target/arm: Implement PMSWINCtarget/arm/helper.c+37 -20 replies
12/13target/arm: Mark PMINTENSET accesses as possibly doing IOtarget/arm/helper.c+1 -12 replies
13/13target/arm: Send interrupts on PMU counter overflowtarget/arm/cpu.c target/arm/cpu.h target/arm/helper.c+141 -91 reply

Reviews trailers per patch

6 of 13 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/13
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13
7/13
8/13
9/13R-b
10/13
11/13
12/13R-b
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [Qemu-arm] [PATCH v5 00/13] More fully implement ARM PMUv3

The ARM PMU implementation currently contains a basic cycle counter, but it is often useful to gather counts of other events and filter them based on execution mode. These patches flesh out the implementations of various PMU registers including PM[X]EVCNTR and PM[X]EVTYPER, add a struct definition to represent arbitrary counter types, implement mode filtering, send interrupts on counter overflow, and add instruction, cycle, and software increment events.

Since v4 I've added improved V7VE handling with Peter's direction, fixed up a few patch staging issues, and fixed a bug causing cycle counter overflow to be checked every instruction.

-Aaron

Aaron Lindsay (13):
target/arm: Reorganize PMCCNTR accesses
target/arm: Filter cycle counter based on PMCCFILTR_EL0 target/arm: Allow AArch32 access for PMCCFILTR target/arm: Add ARM_FEATURE_V7VE for v7 Virtualization Extensions target/arm: Remove redundant DIV detection for KVM target/arm: Implement PMOVSSET
target/arm: Add array for supported PMU events, generate PMCEID[01] target/arm: Finish implementation of PM[X]EVCNTR and PM[X]EVTYPER target/arm: PMU: Add instruction and cycle events target/arm: PMU: Set PMCR.N to 4
target/arm: Implement PMSWINC
target/arm: Mark PMINTENSET accesses as possibly doing IO target/arm: Send interrupts on PMU counter overflow

 target/arm/cpu.c    |  49 +++-
 target/arm/cpu.h    |  71 +++++-
 target/arm/cpu64.c  |   2 -
 target/arm/helper.c | 702 +++++++++++++++++++++++++++++++++++++++++++++-------
 target/arm/kvm32.c  |  27 +-
 5 files changed, 720 insertions(+), 131 deletions(-)
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.