Commit cd45c995 authored by Vasily Gorbik's avatar Vasily Gorbik Committed by Martin Schwidefsky

s390/mem_detect: use SCLP info for continuous memory detection

When neither SCLP storage info, nor z/VM diag260 "storage configuration"
are available assume a continuous online memory of size specified by
SCLP info.
Reviewed-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 6e98e643
...@@ -184,8 +184,13 @@ void detect_memory(void) ...@@ -184,8 +184,13 @@ void detect_memory(void)
return; return;
} }
if (max_physmem_end) {
add_mem_detect_block(0, max_physmem_end);
mem_detect.info_source = MEM_DETECT_SCLP_READ_INFO;
return;
}
scan_memory(rzm); scan_memory(rzm);
mem_detect.info_source = MEM_DETECT_TPROT_LOOP; mem_detect.info_source = MEM_DETECT_TPROT_LOOP;
if (!max_physmem_end)
max_physmem_end = get_mem_detect_end(); max_physmem_end = get_mem_detect_end();
} }
...@@ -8,6 +8,7 @@ enum mem_info_source { ...@@ -8,6 +8,7 @@ enum mem_info_source {
MEM_DETECT_NONE = 0, MEM_DETECT_NONE = 0,
MEM_DETECT_SCLP_STOR_INFO, MEM_DETECT_SCLP_STOR_INFO,
MEM_DETECT_DIAG260, MEM_DETECT_DIAG260,
MEM_DETECT_SCLP_READ_INFO,
MEM_DETECT_TPROT_LOOP MEM_DETECT_TPROT_LOOP
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment