Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp6240rdb; Wed, 29 Nov 2023 17:42:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFafh9y/K6O+UspD0aciGzAsWXZ2k7JFR3G/UJ2+8jsEf2ijjrenqCcrt0LZpC5//DRF/4k X-Received: by 2002:a05:6a00:b49:b0:6cb:7025:9930 with SMTP id p9-20020a056a000b4900b006cb70259930mr22719888pfo.8.1701308526111; Wed, 29 Nov 2023 17:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701308526; cv=none; d=google.com; s=arc-20160816; b=QL0s+pv3CiV6gw2nRoJcuosPd0qeP1OZSVA7kFyqtqo2l3t0DISjB9YW5z91fazj7g zf64U45/nY5YPIGtC2O4Lfprdorllsrh/5FzCn4RW/wYYYqtFWd56AOsa0VWBNudxa2V QNptReeqPltqOd6EN1iUHI9qzrRx1Jf0uwVMrdNTi7nkd+fly5nliAyk3Nt1EgtT4wEK vwApyanjjA2o/aMHPzZMKJ2pFwVIhvM8rogIBLo0vREUkDhnSGZx0Kv2+w7oqh/n0/qG B0zZOtCq0yzTZjyma1jeL54dAr6moyL+xQ2BAntDfz0pjpaowDceEpPj6my3xxAgrcPA HVmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=A+mAc5bUWQHIfKcRKPqP2W6po7z2iVLf+97SiNfRjUQ=; fh=B2OuyxcdlMjg+efu6BtABsr6YZVyHy5ZzOdCFe+rDEI=; b=jJEo6t65xf2DZxGK/P96krKbLUJ29ZqgLDzaemxKl9SrVlPNgvP7ouhST1vdQBTLXQ AnXZVdukYmbgJm1m6Dx2OK2j7nxwfroVrJE8+YoB7jZK32zCiAunQvkORSAMwR1sEEPy KOWIEEoAUzvcNuEezneGF8Iz3jMWijNSA20Ps5oLuNpH4TZi7wNfKBEMWIFHHhOHcfRQ gt4j9ccR2EJUWjd1bqY8PzqUdu3cKCR88f9CVjoixYMXqDlvyg0XkOLcO8PKUXNNdN9o lN1q2GeQ8jK3kQxkLrv5Zjr1WPrK02/vC9cUVOr1hXS3Od2Shnzp2o2DqkB9tv63w3yd 0LXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D2iM4iNV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id cm7-20020a056a00338700b006cda62fbef5si79875pfb.346.2023.11.29.17.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 17:42:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D2iM4iNV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2DCA98077FEC; Wed, 29 Nov 2023 17:41:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231565AbjK3BlP (ORCPT + 99 others); Wed, 29 Nov 2023 20:41:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbjK3BlN (ORCPT ); Wed, 29 Nov 2023 20:41:13 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F68495 for ; Wed, 29 Nov 2023 17:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701308478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A+mAc5bUWQHIfKcRKPqP2W6po7z2iVLf+97SiNfRjUQ=; b=D2iM4iNVuq9+AjEa++FkIofH5+QmayMn/cMIOXMTh3D7T95aL+GVTcp35iHPPhmbgXpRWI IT9Bowr+seSAReXe9OFlc2toN45Sf80DKAnYFtA7T/W4ld+BTGuotd2moQ8enmudqJbQyM X+v+jfHaUKp35usdr2l6//zpO7haJ8o= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-483-tegoFPWqOWuDru5oX104Rg-1; Wed, 29 Nov 2023 20:41:16 -0500 X-MC-Unique: tegoFPWqOWuDru5oX104Rg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3ACCF29AA3BF; Thu, 30 Nov 2023 01:41:16 +0000 (UTC) Received: from localhost (unknown [10.72.113.96]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 881A6112130B; Thu, 30 Nov 2023 01:41:15 +0000 (UTC) Date: Thu, 30 Nov 2023 09:41:12 +0800 From: Baoquan He To: Ignat Korchagin Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, eric_devolder@yahoo.com, agordeev@linux.ibm.com, kernel-team@cloudflare.com, stable@vger.kernel.org Subject: Re: [PATCH] kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP Message-ID: References: <20231129220409.55006-1-ignat@cloudflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129220409.55006-1-ignat@cloudflare.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 17:41:30 -0800 (PST) On 11/29/23 at 10:04pm, Ignat Korchagin wrote: > 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. > > Fixes: 91506f7e5d21 ("arm64/kexec: refactor for kernel/Kconfig.kexec") > Cc: stable@vger.kernel.org # 6.6+: f8ff234: kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP > Cc: stable@vger.kernel.org # 6.6+ > Signed-off-by: Ignat Korchagin > --- > kernel/Kconfig.kexec | 1 - > 1 file changed, 1 deletion(-) This is a good catch, thanks. Acked-by: Baoquan He > > diff --git a/kernel/Kconfig.kexec b/kernel/Kconfig.kexec > index fc38f1ae3a30..946dffa048b7 100644 > --- a/kernel/Kconfig.kexec > +++ b/kernel/Kconfig.kexec > @@ -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 > -- > 2.39.2 >