Skip to content

Commit 1e4a5e3

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
docs: arm64: Document EL3 requirements for FEAT_PMUv3
This documents EL3 requirements for FEAT_PMUv3. The register field MDCR_EL3 .TPM needs to be cleared for accesses into PMU registers without any trap being generated into EL3. PMUv3 registers like PMCCFILTR_EL0, PMCCNTR_EL0 PMCNTENCLR_EL0, PMCNTENSET_EL0, PMCR_EL0, PMEVCNTR<n>_EL0, PMEVTYPER<n>_EL0 etc are already being accessed for perf HW PMU implementation. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Link: https://lore.kernel.org/r/20241211065425.1106683-3-anshuman.khandual@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 3e5be4e commit 1e4a5e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/arch/arm64/booting.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ Before jumping into the kernel, the following conditions must be met:
455455

456456
- MDCR_EL3.TDA (bit 9) must be initialized to 0b0
457457

458+
- For CPUs with FEAT_PMUv3:
459+
460+
- If EL3 is present:
461+
462+
- MDCR_EL3.TPM (bit 6) must be initialized to 0b0
463+
458464
The requirements described above for CPU mode, caches, MMUs, architected
459465
timers, coherency and system registers apply to all CPUs. All CPUs must
460466
enter the kernel in the same exception level. Where the values documented

0 commit comments

Comments
 (0)