kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP
Subsystems (3)
PATCH 1/1 kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP
In commit f8ff23429c62 ("kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP") we tried to fix a config regression, where CONFIG_CRASH_DUMP required CONFIG_KEXEC.
However, it was not enough at least for arm64 platforms. While further testing the patch with our arm64 config I noticed that CONFIG_CRASH_DUMP is unavailable in menuconfig. This is because CONFIG_CRASH_DUMP still depends on the new CONFIG_ARCH_SUPPORTS_KEXEC introduced in commit 91506f7e5d21 ("arm64/kexec:
refactor for kernel/Kconfig.kexec") and on arm64 CONFIG_ARCH_SUPPORTS_KEXEC requires CONFIG_PM_SLEEP_SMP=y, which in turn requires either CONFIG_SUSPEND=y or CONFIG_HIBERNATION=y neither of which are set in our config.
Given that we already established that CONFIG_KEXEC (which is a switch for kexec system call itself) is not required for CONFIG_CRASH_DUMP drop CONFIG_ARCH_SUPPORTS_KEXEC dependency as well. The arm64 kernel builds just fine with CONFIG_CRASH_DUMP=y and with both CONFIG_KEXEC=n and CONFIG_KEXEC_FILE=n after f8ff23429c62 ("kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP") and this patch are applied given that the necessary shared bits are included via CONFIG_KEXEC_CORE dependency.
--- kernel/Kconfig.kexec | 1 - 1 file changed, 1 deletion(-)
kernel/Kconfig.kexec +0 -1
@@ -96,7 +96,6 @@ config KEXEC_JUMP config CRASH_DUMP bool "kernel crash dumps" depends on ARCH_SUPPORTS_CRASH_DUMP - depends on ARCH_SUPPORTS_KEXEC select CRASH_CORE select KEXEC_CORE help
Signature · 1 line
2.39.2
Quoted 3 lines · On Wed, 29 Nov 2023 22:04:09 +0000 Ignat Korchagin <[email protected]> wrote:
Fixes 91506f7e5d21 ("arm64/kexec: refactor for kernel/Kconfig.kexec")Cc [email protected] # 6.6+: f8ff234: kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMPCc [email protected] # 6.6+
I doubt if anyone knows what the two above lines mean. What are your recommendations for the merging of this patch?
Quoted 1 line
Signed-off-by Ignat Korchagin <[email protected]>
Quoted 9 lines · Andrew Morton
Quoted 3 lines · On Wed, 29 Nov 2023 22:04:09 +0000 Ignat Korchagin <[email protected]> wrote:
Fixes 91506f7e5d21 ("arm64/kexec: refactor for kernel/Kconfig.kexec")Cc [email protected] # 6.6+: f8ff234: kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMPCc [email protected] # 6.6+I doubt if anyone knows what the two above lines mean. What are your recommendations for the merging of this patch?
Hmm... I was just following
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1
and basically wanted to make sure that this patch gets backported together with commit f8ff234: kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP (they should go together)
Quoted 2 lines
Quoted 1 line
Signed-off-by Ignat Korchagin <[email protected]>
Quoted 9 lines · On Wed, 29 Nov 2023 22:34:13 +0000 Ignat Korchagin <[email protected]> wrote:
Quoted 7 lines · Andrew Morton
Quoted 3 lines · On Wed, 29 Nov 2023 22:04:09 +0000 Ignat Korchagin <[email protected]> wrote:
Fixes 91506f7e5d21 ("arm64/kexec: refactor for kernel/Kconfig.kexec")Cc [email protected] # 6.6+: f8ff234: kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMPCc [email protected] # 6.6+
Quoted 8 lines
Quoted 2 lines
I doubt if anyone knows what the two above lines mean. What are your recommendations for the merging of this patch?
Hmm... I was just following
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1
and basically wanted to make sure that this patch gets backported together with commit f8ff234:kernel/Kconfig.kexec: drop select of KEXEC forCRASH_DUMP(they should go together)
I see, thanks. I don't think I've ever received a patch which did this!
Quoted 20 lines · Ignat Korchagin
In commit
f8ff23429c62("kernel/Kconfig.kexec: drop select of KEXEC forCRASH_DUMP") we tried to fix a config regression, whereCONFIG_CRASH_DUMPrequiredCONFIG_KEXEC.However, it was not enough at least for arm64 platforms. While further testing the patch with our arm64 config I noticed that
CONFIG_CRASH_DUMPis unavailable in menuconfig. This is becauseCONFIG_CRASH_DUMPstill depends on the newCONFIG_ARCH_SUPPORTS_KEXECintroduced in commit91506f7e5d21("arm64/kexec:
refactor forkernel/Kconfig.kexec") and on arm64CONFIG_ARCH_SUPPORTS_KEXECrequiresCONFIG_PM_SLEEP_SMP=y, which in turn requires eitherCONFIG_SUSPEND=yorCONFIG_HIBERNATION=yneither of which are set in our config.Given that we already established that
CONFIG_KEXEC(which is a switch for kexec system call itself) is not required forCONFIG_CRASH_DUMPdropCONFIG_ARCH_SUPPORTS_KEXECdependency as well. The arm64 kernel builds just fine withCONFIG_CRASH_DUMP=yand with bothCONFIG_KEXEC=nandCONFIG_KEXEC_FILE=nafterf8ff23429c62("kernel/Kconfig.kexec: drop select of KEXEC forCRASH_DUMP") and this patch are applied given that the necessary shared bits are included viaCONFIG_KEXEC_COREdependency.
Quoted 7 lines
Fixes 91506f7e5d21 ("arm64/kexec: refactor for kernel/Kconfig.kexec")Cc [email protected] # 6.6+: f8ff234: kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMPCc [email protected] # 6.6+Signed-off-by Ignat Korchagin <[email protected]>--- kernel/Kconfig.kexec | 1 - 1 file changed, 1 deletion(-)
This is a good catch, thanks.
Quoted 16 lines
kernel/Kconfig.kexec +0
-1@@ -96,7 +96,6 @@ config KEXEC_JUMP config CRASH_DUMP bool "kernel crash dumps" depends on ARCH_SUPPORTS_CRASH_DUMP - depends on ARCH_SUPPORTS_KEXEC select CRASH_CORE select KEXEC_CORE helpSignature · 1 line
2.39.2