Skip to content

Commit 6c792b7

Browse files
jgoulyctmarinas
authored andcommitted
arm64: Document boot requirements for PIE
Features PIE and TCR2 introduce new registers, update the trap requirements for these features. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Brown <broonie@kernel.org> Reviewed-by: Mark Brown <broonie@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20230606145859.697944-19-joey.gouly@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 6b776d3 commit 6c792b7

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Documentation/arm64/booting.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,32 @@ Before jumping into the kernel, the following conditions must be met:
385385

386386
- HCRX_EL2.MSCEn (bit 11) must be initialised to 0b1.
387387

388+
For CPUs with the Extended Translation Control Register feature (FEAT_TCR2):
389+
390+
- If EL3 is present:
391+
392+
- SCR_EL3.TCR2En (bit 43) must be initialised to 0b1.
393+
394+
- If the kernel is entered at EL1 and EL2 is present:
395+
396+
- HCRX_EL2.TCR2En (bit 14) must be initialised to 0b1.
397+
398+
For CPUs with the Stage 1 Permission Indirection Extension feature (FEAT_S1PIE):
399+
400+
- If EL3 is present:
401+
402+
- SCR_EL3.PIEn (bit 45) must be initialised to 0b1.
403+
404+
- If the kernel is entered at EL1 and EL2 is present:
405+
406+
- HFGRTR_EL2.nPIR_EL1 (bit 58) must be initialised to 0b1.
407+
408+
- HFGWTR_EL2.nPIR_EL1 (bit 58) must be initialised to 0b1.
409+
410+
- HFGRTR_EL2.nPIRE0_EL1 (bit 57) must be initialised to 0b1.
411+
412+
- HFGRWR_EL2.nPIRE0_EL1 (bit 57) must be initialised to 0b1.
413+
388414
The requirements described above for CPU mode, caches, MMUs, architected
389415
timers, coherency and system registers apply to all CPUs. All CPUs must
390416
enter the kernel in the same exception level. Where the values documented

0 commit comments

Comments
 (0)