s390/boot: Consider DCSS segments on memory layout setup
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 1 Mar 2024 06:03:49 +0000 (07:03 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 17 Apr 2024 11:37:59 +0000 (13:37 +0200)
commitb2b15f079c4c19e3a73a8b0cf4f901186f12098f
treed00cb0bad807dd98414097e445ffddb654ef7acf
parent47bf81767277b5abb87f7e86e15310f0e9d4d06c
s390/boot: Consider DCSS segments on memory layout setup

The maximum mappable physical address (as returned by
arch_get_mappable_range() callback) is limited by the
value of (1UL << MAX_PHYSMEM_BITS).

The maximum physical address available to a DCSS segment
is 512GB.

In case the available online or offline memory size is less
than the DCSS limit arch_get_mappable_range() would include
never used [512GB..(1UL << MAX_PHYSMEM_BITS)] range.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/boot/startup.c
arch/s390/include/asm/extmem.h