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 <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Brown <[email protected]> Reviewed-by: Mark Brown <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 6b776d3 commit 6c792b7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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)