Skip to content

Commit 3f25dc4

Browse files
Michael HolzheuMartin Schwidefsky
authored andcommitted
[S390] zfcpdump: Do not initialize zfcpdump in kdump mode
When the kernel is started in kdump mode, zfcpdump should not be initialized because both dump methods can't be used at the same time. Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent bc615de commit 3f25dc4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎arch/s390/kernel/setup.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ static void __init setup_zfcpdump(unsigned int console_devno)
211211

212212
if (ipl_info.type != IPL_TYPE_FCP_DUMP)
213213
return;
214+
if (OLDMEM_BASE)
215+
return;
214216
if (console_devno != -1)
215217
sprintf(str, " cio_ignore=all,!0.0.%04x,!0.0.%04x",
216218
ipl_info.data.fcp.dev_id.devno, console_devno);
@@ -482,7 +484,7 @@ static void __init setup_memory_end(void)
482484

483485

484486
#ifdef CONFIG_ZFCPDUMP
485-
if (ipl_info.type == IPL_TYPE_FCP_DUMP) {
487+
if (ipl_info.type == IPL_TYPE_FCP_DUMP && !OLDMEM_BASE) {
486488
memory_end = ZFCPDUMP_HSA_SIZE;
487489
memory_end_set = 1;
488490
}

‎drivers/s390/char/zcore.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,8 @@ static int __init zcore_init(void)
641641

642642
if (ipl_info.type != IPL_TYPE_FCP_DUMP)
643643
return -ENODATA;
644+
if (OLDMEM_BASE)
645+
return -ENODATA;
644646

645647
zcore_dbf = debug_register("zcore", 4, 1, 4 * sizeof(long));
646648
debug_register_view(zcore_dbf, &debug_sprintf_view);

0 commit comments

Comments
 (0)