Skip to contentSkip to conversation

crash: Default to CRASH_DUMP=n when support for it is unlikely

PATCH In review Dave Vasilevsky 5 participants 17 messages Aug 23, 2024 – Sep 9, 2024

Subsystems (11)
Arm (32-bit) x86 PowerPC MIPS +7 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crash: Default to CRASH_DUMP=n when support for it is unlikely

Fixes boot failures on 6.9 on PPC_BOOK3S_32 machines using Open Firmware. On these machines, the kernel refuses to boot from non-zero PHYSICAL_START, which occurs when CRASH_DUMP is on.

Since most PPC_BOOK3S_32 machines boot via Open Firmware, it should default to off for them. Users booting via some other mechanism can still turn it on explicitly.

Also defaults to CRASH_DUMP=n on sh.

Fixes 75bc255a7444 ("crash: clean up kdump related config items")
---
 arch/arm/Kconfig       | 3 +++
 arch/arm64/Kconfig     | 3 +++
 arch/loongarch/Kconfig | 3 +++
 arch/mips/Kconfig      | 3 +++
 arch/powerpc/Kconfig   | 4 ++++
 arch/riscv/Kconfig     | 3 +++
 arch/s390/Kconfig      | 3 +++
 arch/sh/Kconfig        | 3 +++
 arch/x86/Kconfig       | 3 +++
 kernel/Kconfig.kexec   | 2 +-
 10 files changed, 29 insertions(+), 1 deletion(-)
arch/arm/Kconfig +3 -0
index 54b2bb817a7f..200995052690 100644
@@ -1597,6 +1597,9 @@ config ATAGS_PROC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config AUTO_ZRELADDR
 	bool "Auto calculation of the decompressed kernel image address" if !ARCH_MULTIPLATFORM
 	default !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
arch/arm64/Kconfig +3 -0
index a2f8ff354ca6..43e08cc8204f 100644
@@ -1558,6 +1558,9 @@ config ARCH_DEFAULT_KEXEC_IMAGE_VERIFY_SIG
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
 	def_bool CRASH_RESERVE
 
arch/loongarch/Kconfig +3 -0
index 70f169210b52..ce232ddcd27d 100644
@@ -599,6 +599,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_SELECTS_CRASH_DUMP
 	def_bool y
 	depends on CRASH_DUMP
arch/mips/Kconfig +3 -0
index 60077e576935..b547f4304d0c 100644
@@ -2881,6 +2881,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config PHYSICAL_START
 	hex "Physical address where the kernel is loaded"
 	default "0xffffffff84000000"
arch/powerpc/Kconfig +4 -0
index d7b09b064a8a..0f3c1f958eac 100644
@@ -682,6 +682,10 @@ config RELOCATABLE_TEST
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP)
 
+config ARCH_DEFAULT_CRASH_DUMP
+	bool
+	default y if !PPC_BOOK3S_32
+
 config ARCH_SELECTS_CRASH_DUMP
 	def_bool y
 	depends on CRASH_DUMP
arch/riscv/Kconfig +3 -0
index 0f3cd7c3a436..eb247b5ee569 100644
@@ -880,6 +880,9 @@ config ARCH_SUPPORTS_KEXEC_PURGATORY
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
 	def_bool CRASH_RESERVE
 
arch/s390/Kconfig +3 -0
index a822f952f64a..05a1fb408471 100644
@@ -275,6 +275,9 @@ config ARCH_SUPPORTS_CRASH_DUMP
 	  This option also enables s390 zfcpdump.
 	  See also <file:Documentation/arch/s390/zfcpdump.rst>
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 menu "Processor type and features"
 
 config HAVE_MARCH_Z10_FEATURES
arch/sh/Kconfig +3 -0
index 1aa3c4a0c5b2..b04cfa23378c 100644
@@ -549,6 +549,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool BROKEN_ON_SMP
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool n
+
 config ARCH_SUPPORTS_KEXEC_JUMP
 	def_bool y
 
arch/x86/Kconfig +3 -0
index 007bab9f2a0e..aa4666bb9e9c 100644
@@ -2087,6 +2087,9 @@ config ARCH_SUPPORTS_KEXEC_JUMP
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool X86_64 || (X86_32 && HIGHMEM)
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_SUPPORTS_CRASH_HOTPLUG
 	def_bool y
 
kernel/Kconfig.kexec +1 -1
index 6c34e63c88ff..4d111f871951 100644
@@ -97,7 +97,7 @@ config KEXEC_JUMP
 
 config CRASH_DUMP
 	bool "kernel crash dumps"
-	default y
+	default ARCH_DEFAULT_CRASH_DUMP
 	depends on ARCH_SUPPORTS_CRASH_DUMP
 	depends on KEXEC_CORE
 	select VMCORE_INFO
Signature · 1 line
2.34.1
#1 lore raw

Hi Dave,

Quoted 8 lines · Dave Vasilevsky

Fixes boot failures on 6.9 on PPC_BOOK3S_32 machines using Open Firmware. On these machines, the kernel refuses to boot from non-zero PHYSICAL_START, which occurs when CRASH_DUMP is on.

Since most PPC_BOOK3S_32 machines boot via Open Firmware, it should default to off for them. Users booting via some other mechanism can still turn it on explicitly.

Quoted 6 lines

Also defaults to CRASH_DUMP=n on sh.

Fixes 75bc255a7444 ("crash: clean up kdump related config items")

Thanks for your patch!

kernel/Kconfig.kexec config KEXEC_JUMP · line 103

Quoted 11 lines
kernel/Kconfig.kexec +1 -1
@@ -97,7 +97,7 @@ config KEXEC_JUMP
 
 config CRASH_DUMP
        bool "kernel crash dumps"
-       default y
+       default ARCH_DEFAULT_CRASH_DUMP
        depends on ARCH_SUPPORTS_CRASH_DUMP
        depends on KEXEC_CORE
        select VMCORE_INFO

IMHO CRASH_DUMP should just default to n, like most kernel options, as it enables non-trivial extra functionality: the kernel source tree has more than 100 locations that check if CONFIG_CRASH_DUMP is enabled.

Letting it default to enabled also conflicts with the spirit of the help text for the symbol:

Generate crash dump after being started by kexec. This should be normally only set in special crash dump kernels ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ which are loaded in the main kernel with kexec-tools into a specially reserved region and then later executed after a crash by kdump/kexec. The crash dump kernel must be compiled to a memory address not used by the main kernel or BIOS using PHYSICAL_START, or it must be built as a relocatable image (CONFIG_RELOCATABLE=y).
For more details see Documentation/admin-guide/kdump/kdump.rst

For s390, this option also enables zfcpdump. See also <file:Documentation/arch/s390/zfcpdump.rst>

What is so special about CRASH_DUMP, that it should be enabled by default?

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#2 lore raw

Hi Geert,

Quoted 3 lines · Geert Uytterhoeven

IMHO CRASH_DUMP should just default to n, like most kernel options, as it enables non-trivial extra functionality: the kernel source tree has more than 100 locations that check if CONFIG_CRASH_DUMP is enabled.

I guess we should then revert that part of Baoquan's original patch.

Quoted 2 lines

What is so special about CRASH_DUMP, that it should be enabled by default?

Let's ask Baoquan who made the original change to enable CRASH_DUMP by default.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#3 lore raw
Quoted 7 lines · John Paul Adrian Glaubitz

Hi Geert,

Quoted 3 lines · Geert Uytterhoeven

IMHO CRASH_DUMP should just default to n, like most kernel options, as it enables non-trivial extra functionality: the kernel source tree has more than 100 locations that check if CONFIG_CRASH_DUMP is enabled.

Quoted 6 lines

I guess we should then revert that part of Baoquan's original patch.

Quoted 2 lines

What is so special about CRASH_DUMP, that it should be enabled by default?

Let's ask Baoquan who made the original change to enable CRASH_DUMP by default.

Sorry for late reply.

It's me who enabled it by default when I clean up the messy Kconfig items related to kexec/kdump. Before the clean up, CONFIG_CRASH_DUMP only controlled a very small file including sevearl functions and macro definitions. But kernel codes took CRASH_DUMP as switch of kdump.

About why it's enabled by default, as Michael has explained in another thread, distros usualy needs to enable it by default because vmcore dumping is a very important feature on servers, even guest instances. Even though kdump codes are enabled to built in, not providing crashkernel= value won't make vmcore dumping take effect, it won't cost system resources in that case.

Thanks
Baoquan

#4 lore raw
Quoted 6 lines · Baoquan He

About why it's enabled by default, as Michael has explained in another thread, distros usualy needs to enable it by default because vmcore dumping is a very important feature on servers, even guest instances. Even though kdump codes are enabled to built in, not providing crashkernel= value won't make vmcore dumping take effect, it won't cost system resources in that case.

OK, thanks for the explanation. But as we have found out in the mean time, the assumption was wrong to enable it by default for all architectures as some architectures cannot boot a crash dump kernel with their default bootloader but only through kexec.

Can we have a follow-up patch to disable crash dump kernels where they're not needed? I mean, not every platform supported by Linux is obviously a x86-based or POWER-based server.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#5 lore raw
Quoted 8 lines · John Paul Adrian Glaubitz
Quoted 6 lines · Baoquan He

About why it's enabled by default, as Michael has explained in another thread, distros usualy needs to enable it by default because vmcore dumping is a very important feature on servers, even guest instances. Even though kdump codes are enabled to built in, not providing crashkernel= value won't make vmcore dumping take effect, it won't cost system resources in that case.

Quoted 8 lines

OK, thanks for the explanation. But as we have found out in the mean time, the assumption was wrong to enable it by default for all architectures as some architectures cannot boot a crash dump kernel with their default bootloader but only through kexec.

Can we have a follow-up patch to disable crash dump kernels where they're not needed? I mean, not every platform supported by Linux is obviously a x86-based or POWER-based server.

Yes, while isn't Dave's patch a good one to fix it? In Dave's patch, the default enabling of CRASH_DUMP has been taken off, change to rely on ARCH_DEFAULT_CRASH_DUMP provided by each arch.

config CRASH_DUMP
bool "kernel crash dumps"
- default y
+ default ARCH_DEFAULT_CRASH_DUMP

#6 lore raw
In reply to Geert Uytterhoeven
Quoted 50 lines · Geert Uytterhoeven

Hi Dave,

Quoted 8 lines · Dave Vasilevsky

Fixes boot failures on 6.9 on PPC_BOOK3S_32 machines using Open Firmware. On these machines, the kernel refuses to boot from non-zero PHYSICAL_START, which occurs when CRASH_DUMP is on.

Since most PPC_BOOK3S_32 machines boot via Open Firmware, it should default to off for them. Users booting via some other mechanism can still turn it on explicitly.

Quoted 6 lines

Also defaults to CRASH_DUMP=n on sh.

Fixes 75bc255a7444 ("crash: clean up kdump related config items")

Thanks for your patch!

kernel/Kconfig.kexec config KEXEC_JUMP · line 103

Quoted 11 lines
kernel/Kconfig.kexec +1 -1
@@ -97,7 +97,7 @@ config KEXEC_JUMP
 
 config CRASH_DUMP
        bool "kernel crash dumps"
-       default y
+       default ARCH_DEFAULT_CRASH_DUMP
        depends on ARCH_SUPPORTS_CRASH_DUMP
        depends on KEXEC_CORE
        select VMCORE_INFO

IMHO CRASH_DUMP should just default to n, like most kernel options, as it enables non-trivial extra functionality: the kernel source tree has more than 100 locations that check if CONFIG_CRASH_DUMP is enabled.

Letting it default to enabled also conflicts with the spirit of the help text for the symbol:

Generate crash dump after being started by kexec. This should be normally only set in special crash dump kernels ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ which are loaded in the main kernel with kexec-tools into a specially reserved region and then later executed after a crash by kdump/kexec. The crash dump kernel must be compiled to a memory address not used by the main kernel or BIOS using PHYSICAL_START, or it must be built as a relocatable image (CONFIG_RELOCATABLE=y).
For more details see Documentation/admin-guide/kdump/kdump.rst

Quoted 5 lines

For s390, this option also enables zfcpdump. See also <file:Documentation/arch/s390/zfcpdump.rst>

What is so special about CRASH_DUMP, that it should be enabled by default?

The reality is that essentially all distros enable it. Because they don't want to manage separate kernel / crash-kernel packages.

So IMHO having it enabled by default in upstream does make sense, because it more closely matches what distros/users actually run.

cheers

#7 lore raw

Hi Michael,

Quoted 8 lines · Michael Ellerman
Quoted 2 lines

What is so special about CRASH_DUMP, that it should be enabled by default?

The reality is that essentially all distros enable it. Because they don't want to manage separate kernel / crash-kernel packages.

So IMHO having it enabled by default in upstream does make sense, because it more closely matches what distros/users actually run.

Well, at least Debian did not enable it by default as otherwise we wouldn't have noticed this change downstream.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#8 lore raw
Quoted 6 lines · John Paul Adrian Glaubitz
Quoted 2 lines · Michael Ellerman

So IMHO having it enabled by default in upstream does make sense, because it more closely matches what distros/users actually run.

Well, at least Debian did not enable it by default as otherwise we wouldn't have noticed this change downstream.

Debian does enable it explicitly on some supported architectures, but not all: https://salsa.debian.org/search?group_id=2107&nav_source=navbar&project_id=18670&repository_ref=master&scope=blobs&search=path%3Aconfig+CRASH_DUMP&search_code=true

By my count, 6.9's new default affected mips, powerpc (32-bit), riscv, and sh in Debian.

-Dave

#9 lore raw
In reply to Dave Vasilevsky

Hi Dave,

On 08/23/24 at 08:51am, Dave Vasilevsky wrote:
......snip..

arch/sh/Kconfig config ARCH_SUPPORTS_KEXEC · line 553

Quoted 10 lines
arch/sh/Kconfig +2 -0
index 1aa3c4a0c5b2..b04cfa23378c 100644
@@ -549,6 +549,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool BROKEN_ON_SMP
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool n

If we don't add ARCH_DEFAULT_CRASH_DUMP at all in sh arch, the CRASH_DUMP will be off by default according to the below new definition of CRASH_DUMP?

Thanks
Baoquan

Quoted 4 lines
arch/sh/Kconfig +1 -0
+
 config ARCH_SUPPORTS_KEXEC_JUMP
 	def_bool y
 

......

Quoted 16 lines
kernel/Kconfig.kexec +1 -1
index 6c34e63c88ff..4d111f871951 100644
@@ -97,7 +97,7 @@ config KEXEC_JUMP
 
 config CRASH_DUMP
 	bool "kernel crash dumps"
-	default y
+	default ARCH_DEFAULT_CRASH_DUMP
 	depends on ARCH_SUPPORTS_CRASH_DUMP
 	depends on KEXEC_CORE
 	select VMCORE_INFO
Signature · 1 line
2.34.1
#10 lore raw
Quoted 6 lines · Baoquan He

arch/sh/Kconfig config ARCH_SUPPORTS_KEXEC · line 553

Quoted 2 lines
arch/sh/Kconfig +2 -0
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool n

If we don't add ARCH_DEFAULT_CRASH_DUMP at all in sh arch, the CRASH_DUMP will be off by default according to the below new definition of CRASH_DUMP?

Yes, that's true. But if we don't add it at all in sh arch, it looks confusing in the search feature of menuconfig:

Quoted 2 lines

Symbol: ARCH_DEFAULT_CRASH_DUMP [=ARCH_DEFAULT_CRASH_DUMP] Type : unknown

So I thought it was better to explicitly set it to 'n'. What do you think?

-Dave

#11 lore raw
Quoted 8 lines · Dave Vasilevsky
Quoted 6 lines · Baoquan He

arch/sh/Kconfig config ARCH_SUPPORTS_KEXEC · line 553

Quoted 2 lines
arch/sh/Kconfig +2 -0
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool n

If we don't add ARCH_DEFAULT_CRASH_DUMP at all in sh arch, the CRASH_DUMP will be off by default according to the below new definition of CRASH_DUMP?

Quoted 7 lines

Yes, that's true. But if we don't add it at all in sh arch, it looks confusing in the search feature of menuconfig:

Quoted 2 lines

Symbol: ARCH_DEFAULT_CRASH_DUMP [=ARCH_DEFAULT_CRASH_DUMP] Type : unknown

So I thought it was better to explicitly set it to 'n'. What do you think?

If so, better adding it. Thanks.

#12 lore raw
In reply to Dave Vasilevsky
Quoted 9 lines · Dave Vasilevsky

Fixes boot failures on 6.9 on PPC_BOOK3S_32 machines using Open Firmware. On these machines, the kernel refuses to boot from non-zero PHYSICAL_START, which occurs when CRASH_DUMP is on.

Since most PPC_BOOK3S_32 machines boot via Open Firmware, it should default to off for them. Users booting via some other mechanism can still turn it on explicitly.

Also defaults to CRASH_DUMP=n on sh.

The overrall looks good to me except of the CRASH_DUMP=n on sh, do you have a comment about the reasoning since you have discussed with John? Is it because of below config items?

arch/sh/Kconfig:
config ARCH_SUPPORTS_CRASH_DUMP
def_bool BROKEN_ON_SMP
...
config PHYSICAL_START

        hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
        default MEMORY_START
	...
Quoted 161 lines
Fixes 75bc255a7444 ("crash: clean up kdump related config items")
---
 arch/arm/Kconfig       | 3 +++
 arch/arm64/Kconfig     | 3 +++
 arch/loongarch/Kconfig | 3 +++
 arch/mips/Kconfig      | 3 +++
 arch/powerpc/Kconfig   | 4 ++++
 arch/riscv/Kconfig     | 3 +++
 arch/s390/Kconfig      | 3 +++
 arch/sh/Kconfig        | 3 +++
 arch/x86/Kconfig       | 3 +++
 kernel/Kconfig.kexec   | 2 +-
 10 files changed, 29 insertions(+), 1 deletion(-)
arch/arm/Kconfig +3 -0
index 54b2bb817a7f..200995052690 100644
@@ -1597,6 +1597,9 @@ config ATAGS_PROC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config AUTO_ZRELADDR
 	bool "Auto calculation of the decompressed kernel image address" if !ARCH_MULTIPLATFORM
 	default !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
arch/arm64/Kconfig +3 -0
index a2f8ff354ca6..43e08cc8204f 100644
@@ -1558,6 +1558,9 @@ config ARCH_DEFAULT_KEXEC_IMAGE_VERIFY_SIG
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
 	def_bool CRASH_RESERVE
 
arch/loongarch/Kconfig +3 -0
index 70f169210b52..ce232ddcd27d 100644
@@ -599,6 +599,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_SELECTS_CRASH_DUMP
 	def_bool y
 	depends on CRASH_DUMP
arch/mips/Kconfig +3 -0
index 60077e576935..b547f4304d0c 100644
@@ -2881,6 +2881,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config PHYSICAL_START
 	hex "Physical address where the kernel is loaded"
 	default "0xffffffff84000000"
arch/powerpc/Kconfig +4 -0
index d7b09b064a8a..0f3c1f958eac 100644
@@ -682,6 +682,10 @@ config RELOCATABLE_TEST
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP)
 
+config ARCH_DEFAULT_CRASH_DUMP
+	bool
+	default y if !PPC_BOOK3S_32
+
 config ARCH_SELECTS_CRASH_DUMP
 	def_bool y
 	depends on CRASH_DUMP
arch/riscv/Kconfig +3 -0
index 0f3cd7c3a436..eb247b5ee569 100644
@@ -880,6 +880,9 @@ config ARCH_SUPPORTS_KEXEC_PURGATORY
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool y
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
 	def_bool CRASH_RESERVE
 
arch/s390/Kconfig +3 -0
index a822f952f64a..05a1fb408471 100644
@@ -275,6 +275,9 @@ config ARCH_SUPPORTS_CRASH_DUMP
 	  This option also enables s390 zfcpdump.
 	  See also <file:Documentation/arch/s390/zfcpdump.rst>
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 menu "Processor type and features"
 
 config HAVE_MARCH_Z10_FEATURES
arch/sh/Kconfig +3 -0
index 1aa3c4a0c5b2..b04cfa23378c 100644
@@ -549,6 +549,9 @@ config ARCH_SUPPORTS_KEXEC
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool BROKEN_ON_SMP
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool n
+
 config ARCH_SUPPORTS_KEXEC_JUMP
 	def_bool y
 
arch/x86/Kconfig +3 -0
index 007bab9f2a0e..aa4666bb9e9c 100644
@@ -2087,6 +2087,9 @@ config ARCH_SUPPORTS_KEXEC_JUMP
 config ARCH_SUPPORTS_CRASH_DUMP
 	def_bool X86_64 || (X86_32 && HIGHMEM)
 
+config ARCH_DEFAULT_CRASH_DUMP
+	def_bool y
+
 config ARCH_SUPPORTS_CRASH_HOTPLUG
 	def_bool y
 
kernel/Kconfig.kexec +1 -1
index 6c34e63c88ff..4d111f871951 100644
@@ -97,7 +97,7 @@ config KEXEC_JUMP
 
 config CRASH_DUMP
 	bool "kernel crash dumps"
-	default y
+	default ARCH_DEFAULT_CRASH_DUMP
 	depends on ARCH_SUPPORTS_CRASH_DUMP
 	depends on KEXEC_CORE
 	select VMCORE_INFO
Signature · 1 line
2.34.1
#13 lore raw
Quoted 3 lines · Baoquan He

The overrall looks good to me except of the CRASH_DUMP=n on sh, do you have a comment about the reasoning since you have discussed with John? Is it because of below config items?

I don't yet know why John asked to turn this off by default on sh, though I'm sure there's a good reason! John, I'd appreciate if you could chime in.

Otherwise, I could split the patch, and we can discuss the default on sh separately from powerpc.

-Dave

#15 lore raw
Quoted 1 line · Dave Vasilevsky

I received a notification from Patchwork that my patch is now in the state "Handled Elsewhere".[0] Does that mean someone merged it somewhere? Or that I should be using a different mailing list? Or something else?

I guess it's powerpc dev's patchwork which automatically grabs this patch to do some testing? Becuase ppc list is added in the CC. I don't think this patch has been picked by people because this is an old v1 and there's concern about it.

#16 lore raw
In reply to Dave Vasilevsky
Quoted 6 lines · Dave Vasilevsky

I received a notification from Patchwork that my patch is now in the state "Handled Elsewhere".[0] Does that mean someone merged it somewhere? Or that I should be using a different mailing list? Or something else?

I'd appreciate some guidance.

It was sent/Cc'ed to linuxppc-dev, so it was picked up by the linuxppc patchwork, which is fine and normal.

Because it touches many arches I don't plan to merge it, I would expect the kexec maintainers to take it.

So I marked it as "Handled Elsewhere" in the linuxppc patchwork - ie. not handled via the powerpc tree.

That doesn't mean anyone else has merged it, it just means I haven't and don't plan to.

cheers