OSDN Git Service

s390/setup: re-arrange memblock setup
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 14 Oct 2021 11:45:35 +0000 (13:45 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 16 Nov 2021 11:29:19 +0000 (12:29 +0100)
commit6ad5f024d1f5612b9e39ced9f1add6e8121a7afb
tree89fb93dccc8c10369bcad1304808b7243bc31b9f
parent5dbc4cb4667457b0c53bcd7bff11500b3c362975
s390/setup: re-arrange memblock setup

- Avoid using ULONG_MAX in memblock_remove, it has no functional change
  but makes memblock_dbg output a range which makes sense.

- Actually finish memblock memory setup before doing amode31/cr/uv
  setup.

- Move memblock_dump_all() debug output after memblock memory setup is
  complete. This gives us final "memory" regions if they were trimmed
  due to addressing limits and still "physmem" regions as original info
  which came from mem_detect.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/setup.c