Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp135148rdb; Sun, 28 Jan 2024 17:58:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXydUPx27RIhm9uLkakjvSyIwJNQW2QjVF7xRjWADdb0PV3UCbgDiv78jXV19szyl0Bn3y X-Received: by 2002:a2e:9658:0:b0:2cf:35d8:31ee with SMTP id z24-20020a2e9658000000b002cf35d831eemr2489669ljh.16.1706493494348; Sun, 28 Jan 2024 17:58:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706493494; cv=pass; d=google.com; s=arc-20160816; b=KB8DUCkORys+nQdE+8aYlTh9ivb1vuaUFHG6QwR85ilhIH+5Op85SdQPnb4xmo8+CR rzOntk9K/brBKLcBEDTLxe3YgoDgI1I9KXDdaNhenGiLt7w6DcgM0Q7ni92r+XxOeDfE SN/1tNqIVa70EASmeQnapxmsftadl/rdbxEJ7bxsV/Ma3VXV/YceBV+SbaDNpYZRfHqn EOGFNvdgjBd3fd37FCt+weN1oE4n4RakR+ZK072TPIQ1bY8fq+XB84NGI3FirgYRywZ2 unZVF16neT2oMM8zE9uLJiLcVPhDWIhmdqZe2zyEodBWZba1Kn+e0jZVUs6uIX9yD4H7 cM3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=t5X+7+XPWD/yMamo09E+vqa8mLL0GiWmMXKBvuKtVnc=; fh=ptCc5BMSVt9WGohdHIzjSNEZsGvjuws2uZ1bDkNsc6k=; b=MFU5ZeIjk6KaX2fb9PGfvIlvk3RVRrj7NkxoDcapRzHg0mdLqXPZjqyoxc4zgetUeT M/dTUoU6rbhAAKl5Id+AVuP5lOxtZylC1jhF6mjpIGbXdnypTIWRqauqRZTPykiBKkR6 4Oi4VxVwhtu4WLWE1Wk4w3Ngczn9fFqwCOsHbiW0e2gCsKkBIX6JEv9jc9rIwPMIjRs+ V29i3mJJQWBLJ2D6D9UI4aONZXzLYpVk0UH8sY2qCV0Fa8AX6ipI3+VAXvVyRsLlPnEe TgS9opTXDWV5wTtcdHr3ir7yoljzIp5/y1nM4FyEb54IzoiSd57o+Nldn6NY4pmdbfvP p56A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IzA23y4T; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id el15-20020a056402360f00b0055d3c70e498si2798832edb.177.2024.01.28.17.58.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 17:58:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IzA23y4T; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0CBB11F22A11 for ; Mon, 29 Jan 2024 01:58:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82A74DF69; Mon, 29 Jan 2024 01:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IzA23y4T" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1342FDDA3 for ; Mon, 29 Jan 2024 01:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706493484; cv=none; b=mH27hEv1mDiUrKq4r8BQaFX6QoKNg58rovtcvanJQkz7FibDVV1GEIn/dq9TieKSHHLI7ijYFoA4WHuZELgBpDnCcyyVpPW5kJkgMP94/xNSID+ot9YjkxTGF138qCdx1o4B7G3JfVUqj2G3Tw6vX/PZ8ERIDcWpKsmZs3HDYWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706493484; c=relaxed/simple; bh=0mhzEdT5ZWQobZjqIOBxffQqKPXOl3ltg0R2BB5HqAA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PgfHQQV2SMSTqmBTGkzyHujl2S2pbSa/EjmlmpPo/yfU1mSKCJ4vSu+UF3PW14aV1WVh0pEJORiwATA48W2nB5gTb9/9DrBxKa5IPIWCKA/ITJv5oulHt0VzGBRkLgavtnIPIj7/NOVrYIRpe1PxTSKv+hvoXVdgiXAAIQcda7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=IzA23y4T; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706493481; 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=t5X+7+XPWD/yMamo09E+vqa8mLL0GiWmMXKBvuKtVnc=; b=IzA23y4Tz5q/2twcvRcZ6rSuKqTpjt8FQzx10jiLDHBVHiglezmFWT3YfLAc7AW1uUJmEj kXNjKD3V+Sgjv1SnyFGZrCx6IfoUlmSAi/XFgEwrGhQUTAqhxWXTxKqVoKAkWeXNblmNoR M1wMmsMZLQJbfsnWQbU/Zhwzb/jtMDM= 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-320-9WvTuAhnPa6eorfNUQwX4g-1; Sun, 28 Jan 2024 20:57:58 -0500 X-MC-Unique: 9WvTuAhnPa6eorfNUQwX4g-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 255BC1C05AF0; Mon, 29 Jan 2024 01:57:57 +0000 (UTC) Received: from localhost (unknown [10.72.116.15]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 085BB492BE2; Mon, 29 Jan 2024 01:57:55 +0000 (UTC) Date: Mon, 29 Jan 2024 09:57:50 +0800 From: Baoquan He To: Klara Modin Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, akpm@linux-foundation.org, ebiederm@xmission.com, hbathini@linux.ibm.com, piliu@redhat.com, viro@zeniv.linux.org.uk Subject: Re: [PATCH linux-next v3 01/14] kexec: split crashkernel reservation code out from crash_core.c Message-ID: References: <20240124051254.67105-1-bhe@redhat.com> <20240124051254.67105-2-bhe@redhat.com> <0b14826b-9373-4458-919d-1da2a62d4226@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b14826b-9373-4458-919d-1da2a62d4226@gmail.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 On 01/28/24 at 02:28am, Klara Modin wrote: > Hi, > > On 2024-01-24 06:12, Baoquan He wrote: > > And also add config item CRASH_RESERVE to control its enabling of the > > codes. And update config items which has relationship with crashkernel > > reservation. > > > > And also change ifdeffery from CONFIG_CRASH_CORE to CONFIG_CRASH_RESERVE > > when those scopes are only crashkernel reservation related. > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 502986237cb6..a9243e0948a3 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -2106,7 +2106,7 @@ config ARCH_SUPPORTS_CRASH_HOTPLUG > > def_bool y > > config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION > > - def_bool CRASH_CORE > > + def_bool CRASH_RESEERVE > > config PHYSICAL_START > > hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP) > > CRASH_RESEERVE is probably a typo and should be CRASH_RESERVE (with the > former ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION isn't defined in my .config > and `crashkernel=...` parameter has no effect). You are right, thanks a lot. Will fix that.