public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] KVM: arm64: Read PMUVer as unsigned
@ 2026-03-05 16:28 James Clark
  2026-03-05 16:28 ` [PATCH v2 1/3] " James Clark
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: James Clark @ 2026-03-05 16:28 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton, Joey Gouly, Suzuki K Poulose,
	Zenghui Yu, Catalin Marinas, Will Deacon, Colton Lewis,
	Alexandru Elisei
  Cc: linux-arm-kernel, kvmarm, linux-kernel, James Clark

Fix some issues with the signedness of PMUVer and PerfMon ID fields.

I ran into the first issue when testing "ARM64 PMU Partitioning" patches
on the FVP. The second issue was only found by inspection.

Signed-off-by: James Clark <james.clark@linaro.org>
---
Changes in v2:
- Handle ID_AA64DFR0_EL1_PMUVer_IMP_DEF correctly by using
  pmuv3_implemented()
- Fix another issue with incorrect sign in cpufeature.c
- Add a commit to refactor has_pmuv3() to use pmuv3_implemented() for
  consistency
- Link to v1: https://lore.kernel.org/r/20260305-james-kvm-pmuver-sign-v1-1-eea0a2116dd0@linaro.org

---
James Clark (3):
      KVM: arm64: Read PMUVer as unsigned
      arm64: cpufeature: Make PMUVer and PerfMon unsigned
      arm64: cpufeature: Use pmuv3_implemented() function

 arch/arm/include/asm/arm_pmuv3.h |  7 +++++++
 arch/arm64/kernel/cpufeature.c   | 16 ++++------------
 arch/arm64/kvm/debug.c           |  5 ++++-
 3 files changed, 15 insertions(+), 13 deletions(-)
---
base-commit: 11439c4635edd669ae435eec308f4ab8a0804808
change-id: 20260305-james-kvm-pmuver-sign-fe830bdead2d

Best regards,
-- 
James Clark <james.clark@linaro.org>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-24 15:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 16:28 [PATCH v2 0/3] KVM: arm64: Read PMUVer as unsigned James Clark
2026-03-05 16:28 ` [PATCH v2 1/3] " James Clark
2026-03-05 16:28 ` [PATCH v2 2/3] arm64: cpufeature: Make PMUVer and PerfMon unsigned James Clark
2026-03-05 16:28 ` [PATCH v2 3/3] arm64: cpufeature: Use pmuv3_implemented() function James Clark
2026-03-12 21:44 ` [PATCH v2 0/3] KVM: arm64: Read PMUVer as unsigned Colton Lewis
2026-03-19 16:51 ` Marc Zyngier
2026-03-24 15:08 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox