mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 00:56:46 +07:00
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: 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>
This commit is contained in:
parent
6e98e64329
commit
cd45c99561
@ -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 {
|
|||||||
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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user