Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29225814rwd; Wed, 5 Jul 2023 08:52:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnyRQxQ/qAvIQKeVMD+ExNNlje2o7EbmLuDqOOmt70UzNDJm4XqsIqcSXHq8p3bxURGE+I X-Received: by 2002:a05:6358:f50:b0:127:f2fb:d103 with SMTP id c16-20020a0563580f5000b00127f2fbd103mr13809721rwj.16.1688572352019; Wed, 05 Jul 2023 08:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688572351; cv=none; d=google.com; s=arc-20160816; b=SgU1fktFHTEGDB5MtVCI2hRShToZ+NF9yFQ1SobYkuSb0KacGeqCwCkx1m007yvMo1 zOc0Y4N8B2XzXbZW7/wCw8DSOSTwMR20n69JUeJtDu5lsITDv04IVuipf+y684z32uGi wQdBnwIWjhlrqEndyYz7FF4E7DGmC3lD8/uJXzqtbaYW3nzJFD9D38MNk2Y74aqZNii9 wL11zuU4Syx7VqjMCuHPZyxtRp+QvPSmy8bzveuKle6iBJfgvmB7BrJp7XUuX52NiNFj AYPBmhoyLRBr4i2yzkXoTpU+ur3fypWqcbgawx9HK6xYxaxQmh+cqjUbb2hPx1dDSxnQ qASw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=xAWlrtmWIGFsGqKku/ln8wTfTlYDAGy8buXk/3wv9RE=; fh=e4XLokltlrnhyZFhwi903qurhcjqXZ330gBeA+u/lCU=; b=L29/S1mwtwnxIPpgYKxquhi0gjwTacR3lPPi68x6tr9mO4CR68Cq1oaPYU1FOE36VE 38e6ad+WA8V62q2VlWNdSA6/CkN3wuuTHjWPTaBb7vZrzjbK8Si5GBxWybymMUWTf1+J ckfHssJgJKNXBTKXq4KDyrhpKecLVI3tfHMSSoaFwxfTcoIqxwbNPvVF4KsXnDRUHW7S KHc4WjNxT7zutc6vjfu1H/3eBSr4fvRwH2Hlx+k92mv44bJn72Uv2a34Pf10sABLvVOz WG/CKgIuuI08H8eh4MrIA7e7HIoU3/oCsQfv3gzl9q+BvTz5OzjFimpbU2fYfc3k+Hp0 voWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=FTtjRrEg; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kPkHZ58R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y71-20020a638a4a000000b0055bc22d13d7si4700451pgd.692.2023.07.05.08.52.18; Wed, 05 Jul 2023 08:52:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=FTtjRrEg; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kPkHZ58R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232659AbjGEPGZ (ORCPT + 99 others); Wed, 5 Jul 2023 11:06:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232491AbjGEPGX (ORCPT ); Wed, 5 Jul 2023 11:06:23 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE2931713; Wed, 5 Jul 2023 08:06:19 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6CB115C013C; Wed, 5 Jul 2023 11:06:16 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 05 Jul 2023 11:06:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1688569576; x=1688655976; bh=xA WlrtmWIGFsGqKku/ln8wTfTlYDAGy8buXk/3wv9RE=; b=FTtjRrEg80eMcp7J+7 3pwJsRjPZHaHP4zHSl9PNr0RPHqzpOkF2+29rVqbkseVJbIp0wxkTnB92nkIGYII eNt5hEQ1yp7VGmfJCvtDCyerq+AkGIH19p4Y1+zMWVCvKeJiFYetMKd6e65NDhUD YfvWM+t7WRsIVrwBQr5Kf53UY5FkDK2exygAQh2vQU8e1mcA33m48MC/I071t89U Odq7kVORGEuaSyg8QGgRRqEq+V9b1wJvgL9cBFtk/haMesDly/9DkqtmKlj3uzrb FY9mztVl5tNyQ0k2553B9aCI2R+0utNnGgi60M9TtYo+SMe+nyQUw5lugJCqjqnz qRaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688569576; x=1688655976; bh=xAWlrtmWIGFsG qKku/ln8wTfTlYDAGy8buXk/3wv9RE=; b=kPkHZ58RBmAts6EgoaOIgxUfDxh68 jJQ0LGXwTg7TWkIjLnIeM4EBuXQ9I0L63V9b4S4+yPc8OUnzhFOv1RjSkUZUamVc jRqzdcxVDGiJV5kJnU3BsdnAeecB9JOOPyQoKgSz+rskkjzucVjn4Ax4rSIUm1bG B1R8J15zSESE+SvUAHE6p6eQDud0/SqRctjV+GIVwhyDdAsy/i+JTaGqsGg/pUFQ BNACpXhn8Qp2o2+XKbj3/h/pF0KjHxkYJWCoc9XRzZxoK9FnxxWsqp/uTuBQ97bf H/gSGbxNmwJGMflid0MLss9DjZrf8KdckV7tKlBnRCqRmxuVxy2T2An2Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejgdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BFA19B6008D; Wed, 5 Jul 2023 11:06:13 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0 Mime-Version: 1.0 Message-Id: <09f70de6-9409-4fa4-b9ea-831078d914e7@app.fastmail.com> In-Reply-To: <20230705142004.3605799-4-eric.devolder@oracle.com> References: <20230705142004.3605799-1-eric.devolder@oracle.com> <20230705142004.3605799-4-eric.devolder@oracle.com> Date: Wed, 05 Jul 2023 17:05:53 +0200 From: "Arnd Bergmann" To: "Eric DeVolder" , "Russell King" , "Catalin Marinas" , "Will Deacon" , "Huacai Chen" , "Geert Uytterhoeven" , "Thomas Bogendoerfer" , "James E . J . Bottomley" , "Helge Deller" , "Yoshinori Sato" , "Rich Felker" , "John Paul Adrian Glaubitz" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: "WANG Xuerui" , "Michael Ellerman" , "Nicholas Piggin" , "Christophe Leroy" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Heiko Carstens" , gor@linux.ibm.com, "Alexander Gordeev" , borntraeger@linux.ibm.com, "Sven Schnelle" , "H. Peter Anvin" , "Kees Cook" , "Paul E. McKenney" , "Peter Zijlstra" , "Frederic Weisbecker" , "Andrew Morton" , "Ard Biesheuvel" , "Sami Tolvanen" , "Juerg Haefliger" , "Russell King" , "Linus Walleij" , "Sebastian Reichel" , "Mike Rapoport" , "Kirill A. Shutemov" , "Anshuman Khandual" , "Zi Yan" , "Masahiro Yamada" , "Nick Desaulniers" , "Masami Hiramatsu" , "Miguel Ojeda" , "Zhen Lei" , "Xin Li" , "Tejun Heo" , "Greg Kroah-Hartman" , tsi@tuyoix.net, "Baoquan He" , hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, "Boris Ostrovsky" , "Konrad Rzeszutek Wilk" Subject: Re: [PATCH v4 03/13] arm/kexec: refactor for kernel/Kconfig.kexec Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 5, 2023, at 16:19, Eric DeVolder wrote: > The kexec and crash kernel options are provided in the common > kernel/Kconfig.kexec. Utilize the common options and provide > the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the > equivalent set of KEXEC and CRASH options. > > Signed-off-by: Eric DeVolder > +config ARCH_SUPPORTS_KEXEC > + def_bool (!SMP || PM_SLEEP_SMP) && MMU > > config ATAGS_PROC > bool "Export atags in procfs" > @@ -1668,17 +1656,8 @@ config ATAGS_PROC > Should the atags used to boot the kernel be exported in an "atags" > file in procfs. Useful with kexec. > > -config CRASH_DUMP > - bool "Build kdump crash kernel (EXPERIMENTAL)" > - help > - 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 > - > - For more details see Documentation/admin-guide/kdump/kdump.rst > +config ARCH_SUPPORTS_CRASH_DUMP > + def_bool y > I see this is now in linux-next, and it caused a few randconfig build issues, these never happened in the past: * The #ifdef CONFIG_KEXEC check in arch/arm/include/asm/kexec.h needs to be changed to CONFIG_KEXEC_CORE: include/linux/kexec.h:41:2: error: #error KEXEC_SOURCE_MEMORY_LIMIT not defined same thing on m68k * ARCH_SUPPORTS_CRASH_DUMP needs the same dependency as ARCH_SUPPORTS_KEXEC, otherwise we seem to run into an obscure assembler error building the kdump core on architectures that do not support kdump: /tmp/ccpYl6w9.s:1546: Error: selected processor does not support requested special purpose register -- `mrs r2,cpsr' * Most architectures build machine_kexec.o only when KEXEC is enabled, this also needs to be changed to KEXEC_CORE: --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile @@ -59,7 +59,7 @@ obj-$(CONFIG_FUNCTION_TRACER) += entry-ftrace.o obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o patch.o obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o patch.o obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o -obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o +obj-$(CONFIG_KEXEC_CORE) += machine_kexec.o relocate_kernel.o # Main staffs in KPROBES are in arch/arm/probes/ . obj-$(CONFIG_KPROBES) += patch.o insn.o obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o Arnd