s390/mem_detect: move tprot loop to early boot phase
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 11 Apr 2018 09:56:55 +0000 (11:56 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:08 +0000 (11:21 +0200)
commit6966d604e2ec4ecf5691aea953538f63597a250d
treebb97b41e8ee7ead33cb952f690820f13d4dd8ab6
parent17aacfbfa1ae386d3e54d12a13b88b7981e04896
s390/mem_detect: move tprot loop to early boot phase

Move memory detection to early boot phase. To store online memory
regions "struct mem_detect_info" has been introduced together with
for_each_mem_detect_block iterator. mem_detect_info is later converted
to memblock.

Also introduces sclp_early_get_meminfo function to get maximum physical
memory and maximum increment number.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/Makefile
arch/s390/boot/boot.h
arch/s390/boot/mem_detect.c [new file with mode: 0644]
arch/s390/boot/startup.c
arch/s390/include/asm/mem_detect.h [new file with mode: 0644]
arch/s390/include/asm/sclp.h
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c
arch/s390/mm/Makefile
arch/s390/mm/mem_detect.c [deleted file]
drivers/s390/char/sclp_early_core.c