Skip to content

Commit 09cd4ff

Browse files
Alexander Gordeevhcahca
authored andcommitted
s390/boot: account Real Memory Copy and Lowcore areas
Real Memory Copy and (absolute) Lowcore areas are not accounted when virtual memory layout is set up. Fixes: 4df29d2 ("s390/smp: rework absolute lowcore access") Fixes: 2f0e8aa ("s390/mm: rework memcpy_real() to avoid DAT-off mode") Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent a984f27 commit 09cd4ff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/s390/boot/startup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ static unsigned long setup_kernel_memory_layout(void)
185185
vmemmap_size = SECTION_ALIGN_UP(pages) * sizeof(struct page);
186186

187187
/* choose kernel address space layout: 4 or 3 levels. */
188-
vsize = round_up(ident_map_size, _REGION3_SIZE) + vmemmap_size + MODULES_LEN;
188+
vsize = round_up(ident_map_size, _REGION3_SIZE) + vmemmap_size +
189+
MODULES_LEN + MEMCPY_REAL_SIZE + ABS_LOWCORE_MAP_SIZE;
189190
vsize = size_add(vsize, vmalloc_size);
190191
if (IS_ENABLED(CONFIG_KASAN) || (vsize > _REGION2_SIZE)) {
191192
asce_limit = _REGION1_SIZE;

0 commit comments

Comments
 (0)