aboutsummaryrefslogtreecommitdiff
path: root/Documentation/arm64
diff options
context:
space:
mode:
authorArd Biesheuvel2020-10-08 17:36:02 +0200
committerCatalin Marinas2020-11-09 17:15:37 +0000
commit9ad7c6d5e75b160c9ce5775db610d964af45b83f (patch)
tree37243b66291273cdebb475829945fda5b039a415 /Documentation/arm64
parent8c96400d6a39be763130a5c493647c57726f7013 (diff)
arm64: mm: tidy up top of kernel VA space
Tidy up the way the top of the kernel VA space is organized, by mirroring the 256 MB region we have below the vmalloc space, and populating it top down with the PCI I/O space, some guard regions, and the fixmap region. The latter region is itself populated top down, and today only covers about 4 MB, and so 224 MB is ample, and no guard region is therefore required. The resulting layout is identical between 48-bit/4k and 52-bit/64k configurations. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Steve Capper <steve.capper@arm.com> Link: https://lore.kernel.org/r/20201008153602.9467-5-ardb@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'Documentation/arm64')
-rw-r--r--Documentation/arm64/memory.rst22
1 files changed, 10 insertions, 12 deletions
diff --git a/Documentation/arm64/memory.rst b/Documentation/arm64/memory.rst
index 476edb6015b2..3d62604fa7bd 100644
--- a/Documentation/arm64/memory.rst
+++ b/Documentation/arm64/memory.rst
@@ -35,12 +35,11 @@ AArch64 Linux memory layout with 4KB pages + 4 levels (48-bit)::
[ ffff600000000000 ffff7fffffffffff ] 32TB [ kasan shadow region ]
ffff800000000000 ffff800007ffffff 128MB bpf jit region
ffff800008000000 ffff80000fffffff 128MB modules
- ffff800010000000 fffffbffbffeffff 123TB vmalloc
- fffffbffbfff0000 fffffbfffe7f8fff ~998MB [guard region]
- fffffbfffe7f9000 fffffbfffebfffff 4124KB fixed mappings
- fffffbfffec00000 fffffbfffedfffff 2MB [guard region]
- fffffbfffee00000 fffffbffffdfffff 16MB PCI I/O space
- fffffbffffe00000 fffffbffffffffff 2MB [guard region]
+ ffff800010000000 fffffbffefffffff 124TB vmalloc
+ fffffbfff0000000 fffffbfffdffffff 224MB fixed mappings (top down)
+ fffffbfffe000000 fffffbfffe7fffff 8MB [guard region]
+ fffffbfffe800000 fffffbffff7fffff 16MB PCI I/O space
+ fffffbffff800000 fffffbffffffffff 8MB [guard region]
fffffc0000000000 fffffdffffffffff 2TB vmemmap
fffffe0000000000 ffffffffffffffff 2TB [guard region]
@@ -54,12 +53,11 @@ AArch64 Linux memory layout with 64KB pages + 3 levels (52-bit with HW support):
[ fffd800000000000 ffff7fffffffffff ] 512TB [ kasan shadow region ]
ffff800000000000 ffff800007ffffff 128MB bpf jit region
ffff800008000000 ffff80000fffffff 128MB modules
- ffff800010000000 fffff81ffffeffff 120TB vmalloc
- fffff81fffff0000 fffffbfffe38ffff ~3TB [guard region]
- fffffbfffe390000 fffffbfffebfffff 4544KB fixed mappings
- fffffbfffec00000 fffffbfffedfffff 2MB [guard region]
- fffffbfffee00000 fffffbffffdfffff 16MB PCI I/O space
- fffffbffffe00000 fffffbffffffffff 2MB [guard region]
+ ffff800010000000 fffffbffefffffff 124TB vmalloc
+ fffffbfff0000000 fffffbfffdffffff 224MB fixed mappings (top down)
+ fffffbfffe000000 fffffbfffe7fffff 8MB [guard region]
+ fffffbfffe800000 fffffbffff7fffff 16MB PCI I/O space
+ fffffbffff800000 fffffbffffffffff 8MB [guard region]
fffffc0000000000 ffffffdfffffffff ~4TB vmemmap
ffffffe000000000 ffffffffffffffff 128GB [guard region]