diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2014-03-26 14:25:55 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-04-05 05:06:18 -0400 |
commit | c218bca74eeafa2f8528b6bbb34d112075fcf40a (patch) | |
tree | 29b3e350efca77e073436df3cf78b818bf57cc34 /Documentation/arm64 | |
parent | 35a86976924a9eda7775b5b02ad47268dca1a5b4 (diff) |
arm64: Relax the kernel cache requirements for boot
With system caches for the host OS or architected caches for guest OS we
cannot easily guarantee that there are no dirty or stale cache lines for
the areas of memory written by the kernel during boot with the MMU off
(therefore non-cacheable accesses).
This patch adds the necessary cache maintenance during boot and relaxes
the booting requirements.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'Documentation/arm64')
-rw-r--r-- | Documentation/arm64/booting.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/arm64/booting.txt b/Documentation/arm64/booting.txt index a9691cc48fe3..beb754e87c65 100644 --- a/Documentation/arm64/booting.txt +++ b/Documentation/arm64/booting.txt | |||
@@ -111,8 +111,14 @@ Before jumping into the kernel, the following conditions must be met: | |||
111 | - Caches, MMUs | 111 | - Caches, MMUs |
112 | The MMU must be off. | 112 | The MMU must be off. |
113 | Instruction cache may be on or off. | 113 | Instruction cache may be on or off. |
114 | Data cache must be off and invalidated. | 114 | The address range corresponding to the loaded kernel image must be |
115 | External caches (if present) must be configured and disabled. | 115 | cleaned to the PoC. In the presence of a system cache or other |
116 | coherent masters with caches enabled, this will typically require | ||
117 | cache maintenance by VA rather than set/way operations. | ||
118 | System caches which respect the architected cache maintenance by VA | ||
119 | operations must be configured and may be enabled. | ||
120 | System caches which do not respect architected cache maintenance by VA | ||
121 | operations (not recommended) must be configured and disabled. | ||
116 | 122 | ||
117 | - Architected timers | 123 | - Architected timers |
118 | CNTFRQ must be programmed with the timer frequency and CNTVOFF must | 124 | CNTFRQ must be programmed with the timer frequency and CNTVOFF must |