Skip to content

Commit

Permalink
[S390] zfcpdump: Do not initialize zfcpdump in kdump mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Nov 14, 2011
1 parent bc615de commit 3f25dc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ static void __init setup_zfcpdump(unsigned int console_devno)

if (ipl_info.type != IPL_TYPE_FCP_DUMP)
return;
if (OLDMEM_BASE)
return;
if (console_devno != -1)
sprintf(str, " cio_ignore=all,!0.0.%04x,!0.0.%04x",
ipl_info.data.fcp.dev_id.devno, console_devno);
Expand Down Expand Up @@ -482,7 +484,7 @@ static void __init setup_memory_end(void)


#ifdef CONFIG_ZFCPDUMP
if (ipl_info.type == IPL_TYPE_FCP_DUMP) {
if (ipl_info.type == IPL_TYPE_FCP_DUMP && !OLDMEM_BASE) {
memory_end = ZFCPDUMP_HSA_SIZE;
memory_end_set = 1;
}
Expand Down
2 changes: 2 additions & 0 deletions drivers/s390/char/zcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ static int __init zcore_init(void)

if (ipl_info.type != IPL_TYPE_FCP_DUMP)
return -ENODATA;
if (OLDMEM_BASE)
return -ENODATA;

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

0 comments on commit 3f25dc4

Please sign in to comment.