docs: arm64: Document MDCR_EL3 boot requirements
Subsystems (2)
cover docs: arm64: Document MDCR_EL3 boot requirements
This series adds missing MDCR_EL3 boot requirements for debug and pmu registers that are currently being accessed in the kernel. Please refer the following link for some earlier discussions on this.
https://lore.kernel.org/all/ZxfOeqyb3RvsdYbU@J2N7QTR9R3/
This series applies on v6.13-rc1
Anshuman Khandual (2):
docs: arm64: Document EL3 requirements for cpu debug architecture
docs: arm64: Document EL3 requirements for FEAT_PMUv3
Documentation/arch/arm64/booting.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Signature · 1 line
2.30.2
PATCH 1/2 docs: arm64: Document EL3 requirements for cpu debug architecture
This documents EL3 requirements for debug architecture. The register field MDCR_EL3.TDA needs to be cleared for accesses into debug registers without any trap being generated into EL3. CPU debug registers like DBGBCR<n>_EL1, DBGBVR<n>_EL1, DBGWCR<n>_EL1, DBGWVR<n>_EL1 and MDSCR_EL1 are already being accessed for HW breakpoint, watchpoint and debug monitor implementations on the platform.
--- Documentation/arch/arm64/booting.rst | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/arch/arm64/booting.rst +6 -0
@@ -449,6 +449,12 @@ Before jumping into the kernel, the following conditions must be met: - HFGWTR_EL2.nGCS_EL0 (bit 52) must be initialised to 0b1. + - For CPUs with debug architecture i.e FEAT_Debugv8pN (all versions): + + - If EL3 is present: + + - MDCR_EL3.TDA (bit 9) must be initialized to 0b0 + The requirements described above for CPU mode, caches, MMUs, architected timers, coherency and system registers apply to all CPUs. All CPUs must enter the kernel in the same exception level. Where the values documented
Signature · 1 line
2.30.2
PATCH 2/2 docs: arm64: Document EL3 requirements for FEAT_PMUv3
In reply to Anshuman KhandualThis 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.
--- Documentation/arch/arm64/booting.rst | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/arch/arm64/booting.rst +6 -0
@@ -455,6 +455,12 @@ Before jumping into the kernel, the following conditions must be met: - MDCR_EL3.TDA (bit 9) must be initialized to 0b0 + - For CPUs with FEAT_PMUv3: + + - If EL3 is present: + + - MDCR_EL3.TPM (bit 6) must be initialized to 0b0 + The requirements described above for CPU mode, caches, MMUs, architected timers, coherency and system registers apply to all CPUs. All CPUs must enter the kernel in the same exception level. Where the values documented
Signature · 1 line
2.30.2
Quoted 16 lines · Anshuman Khandual
This series adds missing
MDCR_EL3boot requirements for debug and pmu registers that are currently being accessed in the kernel. Please refer the following link for some earlier discussions on this.https://lore.kernel.org/all/ZxfOeqyb3RvsdYbU@J2N7QTR9R3/
This series applies on v6.13-rc1
Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc Mark Rutland <[email protected]>Cc Jonathan Corbet <[email protected]>
Quoted 7 lines
Anshuman Khandual (2):
docs: arm64: Document EL3 requirements for cpu debug architecture
docs: arm64: Document EL3 requirements forFEAT_PMUv3Documentation/arch/arm64/booting.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Gentle ping, any updates on this.
Quoted 9 lines · Anshuman Khandual
This series adds missing
MDCR_EL3boot requirements for debug and pmu registers that are currently being accessed in the kernel. Please refer the following link for some earlier discussions on this.https://lore.kernel.org/all/ZxfOeqyb3RvsdYbU@J2N7QTR9R3/
This series applies on v6.13-rc1
[...]
Applied to arm64 (for-next/docs), thanks!
[1/2] docs: arm64: Document EL3 requirements for cpu debug architecture
https://git.kernel.org/arm64/c/3e5be4e11aac [2/2] docs: arm64: Document EL3 requirements for FEAT_PMUv3 https://git.kernel.org/arm64/c/1e4a5e3679cc
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev