Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30402512rwd; Thu, 6 Jul 2023 05:33:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGUNxXeZcCmqWrj0GrvByLIB6s5/dQnbhfTqnEUgUZ0gi5ecyj1JGwFRKiEbj6WHXvvl8S X-Received: by 2002:a05:6a20:bf27:b0:122:e62d:dd0a with SMTP id gc39-20020a056a20bf2700b00122e62ddd0amr1641790pzb.26.1688646781963; Thu, 06 Jul 2023 05:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688646781; cv=none; d=google.com; s=arc-20160816; b=lyWCrV03y4L5m7xp3AfTyPJ7pC0xZfZH4sP36L7a7RvXZ/brZ1+UFWj58OC3RDpVf3 iZCtGiVQwBXZut2I/Z4H6YyN9WSMKDRYnA1HDDLIDanRutHIiCkaHLB6d7s/oUYL8uHs ENs+ow9VsFjht9ihIwF8Wkjjd4jZyv9OmRE2C4ZrwpjaZck0h/4JNQ3kVBdy4RViujHC aFMRRKvYLZlOvd9a64AwjRAHOJWvdqYrBB6ByPxvtsfQG8/NyvUFUjBBlwp6oWCDoRlV OBjI7EOHxXS6KGogAA8vAWXrGQoLhApZNM34TRwk/I7v18dMgzlmCqaVQPVYk1Q2enUG iJVw== 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=pmsCsD6NfrkTosVBZWjph1ykYGb9O3Dg+fhXVNC3Rvk=; fh=BegdGF/VHO/8dej6CtklzATK+bc0llfmhiLTbEFVOM4=; b=YjyKx3sBykvmwhp8Uk59bu90HmBtfr/o8RaZ46pVFd+yhydFk6Qkw6Ef2q7a85ufBO ng26Bdjq8FCvUkXj9okjlzuBZ4NaTpi1wis2lnWWgHQ6db+qDRgqWSGi3AqIWIHslq3v 2qCF72H648o+PdQAns+YzrcfbldRwx5ImfNT8kDc1+nMvgo4Rlge3B8TDDq/+wpV6tpj KaQhqI8kZ13utlE2icoywNN/lRCwJFuSJKroMb4GLDfgOABH4uGaZBmUcAJhzhd9iZ6G JEq+wDyA5rjYK3SIGuMthCXl3Osax6MxR4UfAfyf22OZeJ88Y7fM0zMQYMrVgp+4jEuh pQpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=DYU9YRbr; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TfDw4vxX; 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 g13-20020a056a001a0d00b0066882f939e4si1377240pfv.169.2023.07.06.05.32.49; Thu, 06 Jul 2023 05:33:01 -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=DYU9YRbr; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TfDw4vxX; 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 S232769AbjGFMTE (ORCPT + 99 others); Thu, 6 Jul 2023 08:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232746AbjGFMTB (ORCPT ); Thu, 6 Jul 2023 08:19:01 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 698B31BC9; Thu, 6 Jul 2023 05:19:00 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E8A865C02FA; Thu, 6 Jul 2023 08:18:58 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 06 Jul 2023 08:18:58 -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=1688645938; x=1688732338; bh=pm sCsD6NfrkTosVBZWjph1ykYGb9O3Dg+fhXVNC3Rvk=; b=DYU9YRbrNhTzBJuXfZ xZ+Y1O2XI7KfQRyTQF1V8a0rVq8MYc2l4H0B6U1/rBwlwbNvVvTCBUCgruY6Pxoc VaYF1h3LDB2oPT+5yxaP3YTkLrgAaErAuxO/cxKMd7pHGKSppM0I++Q5lIWr9nzw bxdZIxAaU+xs/SLqpbCdozn2UEGm5TT6M5c3WNNmobtsyNNvBu6KcsHLTywYQsSR HtmKZFhQxqax14K0B8DsN6GQIZQck5yQSMFP6o4GM2GDC2jn0q3rPBVQqtylth+I ISX60SEJu5ruEE8cuZmgIMGJq3+lbX3zaRBPrORf/LsaMI4hGMUkAx+lAYjUt2zg o7Ng== 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=1688645938; x=1688732338; bh=pmsCsD6NfrkTo sVBZWjph1ykYGb9O3Dg+fhXVNC3Rvk=; b=TfDw4vxXnxU9vNA6hgCsyajS/OCts wQszxsaApShKlVvMRQdDbyNtIWQ+FkjIpzybYwnCBdjxcaVoWSCXr3brSE996vlG 1PKuiTvK/Eri8Cf5hnKLtqQy7v1D4Lrf+WDqzYrF2UBnOYiJw7iDiRnBmDhmYUyP yR48T+Z9lKy0yu8WGApPh8AMbRFKyjIagsFjtaFjxi31mrREHRRtg9G+fJ35WLER RTm5PTA/LfOkjDr0eolviLd3yvayhNR0dgWpj/KjK8FNFM6KUmlR6EChEssKMFxK vPabKnTuSWQ0naxSVR4eWja+X3+iE1xWMOlFN7AHnoLKi74y/DdDnk2ug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelgdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3EF87B60086; Thu, 6 Jul 2023 08:18:57 -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: In-Reply-To: <20230705142004.3605799-2-eric.devolder@oracle.com> References: <20230705142004.3605799-1-eric.devolder@oracle.com> <20230705142004.3605799-2-eric.devolder@oracle.com> Date: Thu, 06 Jul 2023 14:18:36 +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 01/13] kexec: consolidate kexec and crash options into 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: > + > +config CRASH_DUMP > + bool "kernel crash dumps" > + depends on ARCH_SUPPORTS_CRASH_DUMP > + select CRASH_CORE > + select KEXEC Today's linux-next now runs into a warning on arm64 and presumably others, with the same problem as on arm earlier: WARNING: unmet direct dependencies detected for KEXEC Depends on [n]: ARCH_SUPPORTS_KEXEC [=n] Selected by [y]: - CRASH_DUMP [=y] && ARCH_SUPPORTS_CRASH_DUMP [=y] I think the easiest way to make this reliable would be this fixup: diff --git a/kernel/Kconfig.kexec b/kernel/Kconfig.kexec index d82a7ce59c051..e58ca6128d6ee 100644 --- a/kernel/Kconfig.kexec +++ b/kernel/Kconfig.kexec @@ -91,6 +91,7 @@ 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 help Arnd