On 4/8/25 23:10, Rob Herring wrote:
On Tue, Apr 8, 2025 at 4:39 AM Anshuman Khandual anshuman.khandual@arm.com wrote:
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.13 onwards.
d8226d8cfbaf ("perf: arm_pmuv3: Add support for Armv9.4 PMU instruction counter")
This landed in v6.12, not 6.13. As 6.12 is LTS, it needs the backport.
You are right, missed that. I will send this series for 6.12 stable as well.
BTW also need to backport the following commit for ID_AA64DFR0_EL1_PMUVer_V3P9 symbol which is required in __init_el2_fgt2(). Because this commit is not part of the current v6.12 stable tree.
a40e1ec92e46 ("perf/arm_pmuv3: Add PMUv3.9 per counter EL0 access control")
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.
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