All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 6.14.y 0/7] arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9
@ 2025-04-14  4:58 Anshuman Khandual
  2025-04-14  4:58 ` [PATCH V2 6.14.y 1/7] arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1 Anshuman Khandual
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Anshuman Khandual @ 2025-04-14  4:58 UTC (permalink / raw)
  To: stable, gregkh
  Cc: catalin.marinas, will, robh, mark.rutland, anshuman.khandual

This series adds fine grained trap control in EL2 required for FEAT_PMUv3p9
registers like PMICNTR_EL0, PMICFILTR_EL0, and PMUACR_EL1 which are already
being used in the kernel. This is required to prevent their EL1 access trap
into EL2.

The following commits that enabled access into FEAT_PMUv3p9 registers have
already been merged upstream from 6.12 onwards.

d8226d8cfbaf ("perf: arm_pmuv3: Add support for Armv9.4 PMU instruction counter")
0bbff9ed8165 ("perf/arm_pmuv3: Add PMUv3.9 per counter EL0 access control")

The sysreg patches in this series are required for the final patch which
fixes the actual problem.

Changes in V2:

- Replaced [] with () for upstream commit reference across patches in response
  to the following warning from Sasha

  https://lore.kernel.org/stable/f1153021-846b-4fb1-8c4d-9fa813f982d3@arm.com/

Anshuman Khandual (7):
  arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1
  arm64/sysreg: Add register fields for HDFGRTR2_EL2
  arm64/sysreg: Add register fields for HDFGWTR2_EL2
  arm64/sysreg: Add register fields for HFGITR2_EL2
  arm64/sysreg: Add register fields for HFGRTR2_EL2
  arm64/sysreg: Add register fields for HFGWTR2_EL2
  arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9

 Documentation/arch/arm64/booting.rst |  22 ++++++
 arch/arm64/include/asm/el2_setup.h   |  25 +++++++
 arch/arm64/tools/sysreg              | 103 +++++++++++++++++++++++++++
 3 files changed, 150 insertions(+)

-- 
2.30.2


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

end of thread, other threads:[~2025-04-22  8:31 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14  4:58 [PATCH V2 6.14.y 0/7] arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9 Anshuman Khandual
2025-04-14  4:58 ` [PATCH V2 6.14.y 1/7] arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1" has been added to the 6.14-stable tree gregkh
2025-04-14  4:58 ` [PATCH V2 6.14.y 2/7] arm64/sysreg: Add register fields for HDFGRTR2_EL2 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/sysreg: Add register fields for HDFGRTR2_EL2" has been added to the 6.14-stable tree gregkh
2025-04-14  4:58 ` [PATCH V2 6.14.y 3/7] arm64/sysreg: Add register fields for HDFGWTR2_EL2 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/sysreg: Add register fields for HDFGWTR2_EL2" has been added to the 6.14-stable tree gregkh
2025-04-14  4:58 ` [PATCH V2 6.14.y 4/7] arm64/sysreg: Add register fields for HFGITR2_EL2 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/sysreg: Add register fields for HFGITR2_EL2" has been added to the 6.14-stable tree gregkh
2025-04-14  4:58 ` [PATCH V2 6.14.y 5/7] arm64/sysreg: Add register fields for HFGRTR2_EL2 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/sysreg: Add register fields for HFGRTR2_EL2" has been added to the 6.14-stable tree gregkh
2025-04-14  4:58 ` [PATCH V2 6.14.y 6/7] arm64/sysreg: Add register fields for HFGWTR2_EL2 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/sysreg: Add register fields for HFGWTR2_EL2" has been added to the 6.14-stable tree gregkh
2025-04-14  4:58 ` [PATCH V2 6.14.y 7/7] arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9 Anshuman Khandual
2025-04-14 11:09   ` Sasha Levin
2025-04-22  7:18   ` Patch "arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9" has been added to the 6.14-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.