s390/mem_detect: handle online memory limit just once
authorVasily Gorbik <gor@linux.ibm.com>
Sat, 28 Jan 2023 22:55:04 +0000 (23:55 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Feb 2023 10:13:54 +0000 (11:13 +0100)
commitbf64f0517e5d0d8f3248143fc49535c1d1594b4f
treeccfc742dbf1f7d39fd3dbc308bcae23f938040ed
parent22476f47b6b7fb7d066c71f67ebc11892adb0849
s390/mem_detect: handle online memory limit just once

Introduce mem_detect_truncate() to cut any online memory ranges above
established identity mapping size, so that mem_detect users wouldn't
have to do it over and over again.

Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/boot.h
arch/s390/boot/kaslr.c
arch/s390/boot/mem_detect.c
arch/s390/boot/startup.c
arch/s390/boot/vmem.c
arch/s390/kernel/setup.c
arch/s390/mm/kasan_init.c