Skip to content

ARM PMU tests

Wei Huang kvm kvmarm qemu-devel 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v14 Latest5 patches 3 repliesIn review
  2. v134 patches 24 repliesSuperseded
  3. v123 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v113 patches10 repliesSuperseded
v103 patches4 repliesSuperseded
v93 patches2 repliesSuperseded
v83 patches14 repliesSuperseded
v73 patches9 repliesSuperseded

Changes in v14 from the cover letter

* Rename cp15.h to sysreg.h for ARMv7 and add a new file sysreg.h for ARMv8
* Add macros for read_sysreg() and write_sysreg(). CP15 registers can be defined with __ACCESS_CP15() or __ACCESS_CP15_64(). sysreg.h (ARMv8) was from Drew's GIC testing code, which can be leveraged when his GIC testing code is imported.
* Rewrite PMU testing code based on new macros. All get_xxx() and set_xxx() functions are defined in pmu.c based on read_sysreg() and write_sysreg(). So the code parsing tool, like cscope, can parse them easily.
* Minor fixes inside pmu.c, printf formatting, pmu_probe() func, based on Andre's comments.

Patches in v14 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5arm: rename cp15.h to sysreg.harm/cstart.S lib/arm/asm/sysreg.h+4 -40 replies
2/5arm: Add support for read_sysreg() and write_sysreg()lib/arm/asm/processor.h lib/arm/asm/sysreg.h lib/arm64/asm/processor.h +2 more+54 -121 reply
3/5arm: Add PMU testarm/Makefile.common arm/pmu.c arm/unittests.cfg+100 -11 reply
4/5arm: pmu: Check cycle count increasesarm/pmu.c+66 -00 replies
5/5arm: pmu: Add CPI checkingarm/pmu.c arm/unittests.cfg+146 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v14 yet.

Read the v14 thread

Cover letter [kvm-unit-tests PATCH v14 0/5] ARM PMU tests

Changes from v13:
* Rename cp15.h to sysreg.h for ARMv7 and add a new file sysreg.h for ARMv8
* Add macros for read_sysreg() and write_sysreg(). CP15 registers can be defined with __ACCESS_CP15() or __ACCESS_CP15_64(). sysreg.h (ARMv8) was from Drew's GIC testing code, which can be leveraged when his GIC testing code is imported.
* Rewrite PMU testing code based on new macros. All get_xxx() and set_xxx() functions are defined in pmu.c based on read_sysreg() and write_sysreg(). So the code parsing tool, like cscope, can parse them easily.
* Minor fixes inside pmu.c, printf formatting, pmu_probe() func, based on Andre's comments.

Note:
Current KVM code has bugs in handling PMCCFILTR write. A fix (see below) is required for this unit testing code to work correctly under KVM mode.

Thanks,
-Wei

Christopher Covington (3):
arm: Add PMU test
arm: pmu: Check cycle count increases
arm: pmu: Add CPI checking

Wei Huang (2):
arm: rename cp15.h to sysreg.h
arm: Add support for read_sysreg() and write_sysreg()

 arm/Makefile.common              |   3 +-
 arm/cstart.S                     |   2 +-
 arm/pmu.c                        | 290 +++++++++++++++++++++++++++++++++++++++
 arm/unittests.cfg                |  19 +++
 lib/arm/asm/processor.h          |   6 +-
 lib/arm/asm/{cp15.h => sysreg.h} |  25 +++-
 lib/arm64/asm/processor.h        |  11 +-
 lib/arm64/asm/sysreg.h           |  26 ++++
 lib/libcflat.h                   |   4 +-
 9 files changed, 369 insertions(+), 17 deletions(-)
 create mode 100644 arm/pmu.c
 rename lib/arm/asm/{cp15.h => sysreg.h} (68%)
 create mode 100644 lib/arm64/asm/sysreg.h
Signature · 1 line
1.8.3.1