Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/dump: Remove CONFIG_ZFCPDUMP

Currently there are two s390 kernel dump config options "CONFIG_ZFCPDUMP"
and "CONFIG_CRASH_DUMP". In order to keep things simple and because the
"CONFIG_ZFCPDUMP" option already has a dependency to "CONFIG_CRASH_DUMP"
remove the CONFIG_ZFCPDUMP option.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Reviewed-by: Eric Farman <farman@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Michael Holzheu and committed by
Martin Schwidefsky
bf28a597 71c40f7f

+11 -20
+2 -2
Documentation/s390/zfcpdump.txt
··· 21 21 dump format defines a 4K header followed by plain uncompressed memory. The 22 22 register sets are stored in the prefix pages of the respective cpus. To build a 23 23 dump enabled kernel with the zcore driver, the kernel config option 24 - CONFIG_ZFCPDUMP has to be set. When reading from "zcore/mem", the part of 24 + CONFIG_CRASH_DUMP has to be set. When reading from "zcore/mem", the part of 25 25 memory, which has been saved by hardware is read by the driver via the SCLP 26 26 hardware interface. The second part is just copied from the non overwritten real 27 27 memory. ··· 32 32 33 33 To build a zfcpdump kernel use the following settings in your kernel 34 34 configuration: 35 - * CONFIG_ZFCPDUMP=y 35 + * CONFIG_CRASH_DUMP=y 36 36 * Enable ZFCP driver 37 37 * Enable SCSI driver 38 38 * Enable ext2 and ext3 filesystems
+2 -9
arch/s390/Kconfig
··· 593 593 bool "kernel crash dumps" 594 594 depends on 64BIT && SMP 595 595 select KEXEC 596 - select ZFCPDUMP 597 596 help 598 597 Generate crash dump after being started by kexec. 599 598 Crash dump kernels are loaded in the main kernel with kexec-tools 600 599 into a specially reserved region and then later executed after 601 600 a crash by kdump/kexec. 602 - For more details see Documentation/kdump/kdump.txt 603 - 604 - config ZFCPDUMP 605 - def_bool n 606 - prompt "zfcpdump support" 607 - depends on 64BIT && SMP 608 - help 609 - Select this option if you want to build an zfcpdump enabled kernel. 610 601 Refer to <file:Documentation/s390/zfcpdump.txt> for more details on this. 602 + This option also enables s390 zfcpdump. 603 + See also <file:Documentation/s390/zfcpdump.txt> 611 604 612 605 endmenu 613 606
+3 -3
arch/s390/kernel/setup.c
··· 211 211 } 212 212 } 213 213 214 - #ifdef CONFIG_ZFCPDUMP 214 + #ifdef CONFIG_CRASH_DUMP 215 215 static void __init setup_zfcpdump(void) 216 216 { 217 217 if (ipl_info.type != IPL_TYPE_FCP_DUMP) ··· 223 223 } 224 224 #else 225 225 static inline void setup_zfcpdump(void) {} 226 - #endif /* CONFIG_ZFCPDUMP */ 226 + #endif /* CONFIG_CRASH_DUMP */ 227 227 228 228 /* 229 229 * Reboot, halt and power_off stubs. They just call _machine_restart, ··· 521 521 */ 522 522 static void reserve_memory_end(void) 523 523 { 524 - #ifdef CONFIG_ZFCPDUMP 524 + #ifdef CONFIG_CRASH_DUMP 525 525 if (ipl_info.type == IPL_TYPE_FCP_DUMP && 526 526 !OLDMEM_BASE && sclp_get_hsa_size()) { 527 527 memory_end = sclp_get_hsa_size();
+3 -5
arch/s390/kernel/smp.c
··· 521 521 } 522 522 EXPORT_SYMBOL(smp_ctl_clear_bit); 523 523 524 - #if defined(CONFIG_ZFCPDUMP) || defined(CONFIG_CRASH_DUMP) 524 + #ifdef CONFIG_CRASH_DUMP 525 525 526 526 static void __init smp_get_save_area(int cpu, u16 address) 527 527 { ··· 536 536 save_area = dump_save_area_create(cpu); 537 537 if (!save_area) 538 538 panic("could not allocate memory for save area\n"); 539 - #ifdef CONFIG_CRASH_DUMP 540 539 if (address == boot_cpu_address) { 541 540 /* Copy the registers of the boot cpu. */ 542 541 copy_oldmem_page(1, (void *) save_area, sizeof(*save_area), 543 542 SAVE_AREA_BASE - PAGE_SIZE, 0); 544 543 return; 545 544 } 546 - #endif 547 545 /* Get the registers of a non-boot cpu. */ 548 546 __pcpu_sigp_relax(address, SIGP_STOP_AND_STORE_STATUS, 0, NULL); 549 547 memcpy_real(save_area, lc + SAVE_AREA_BASE, sizeof(*save_area)); ··· 558 560 return 0; 559 561 } 560 562 561 - #else /* CONFIG_ZFCPDUMP || CONFIG_CRASH_DUMP */ 563 + #else /* CONFIG_CRASH_DUMP */ 562 564 563 565 static inline void smp_get_save_area(int cpu, u16 address) { } 564 566 565 - #endif /* CONFIG_ZFCPDUMP || CONFIG_CRASH_DUMP */ 567 + #endif /* CONFIG_CRASH_DUMP */ 566 568 567 569 void smp_cpu_set_polarization(int cpu, int val) 568 570 {
+1 -1
drivers/s390/char/Makefile
··· 33 33 obj-$(CONFIG_S390_VMUR) += vmur.o 34 34 35 35 zcore_mod-objs := sclp_sdias.o zcore.o 36 - obj-$(CONFIG_ZFCPDUMP) += zcore_mod.o 36 + obj-$(CONFIG_CRASH_DUMP) += zcore_mod.o