Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1879153pxk; Tue, 1 Sep 2020 09:52:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2UIDI/g4M3cYqXzxL+93c3v3vyeCM/7YfFBRnBZMUHLyjbfYrGqNOzDpTPPNnczdx4O1d X-Received: by 2002:aa7:c394:: with SMTP id k20mr2296478edq.279.1598979163852; Tue, 01 Sep 2020 09:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598979163; cv=none; d=google.com; s=arc-20160816; b=wy3iQrPoqV2i4Ds5TN5aZmNpjWaSPFhap5CgZGwP8L/7UR6wGg9x/BfLYMgm64GZVZ fic0Ki0QuFQ5Hr1fCWjU2nQSMpoCaXIzlQ/1ZMuGDdRxSuVpCtuwz+6ZX1w9yGzC0hGc 3OnrebHodjqTUmYXhTBbSUdNzgsd7fsa/e2MLFFsYrgh9wyJZfG7fwtsQKFdiAcu82Xn pwUv2KnleKGavyDYAUjJ7awBFElaybjqk0t/oRTe9ntPmWlfVZg1TXNsp15rWTvFks/o OfLGaqYsAvfOecmsANjeXDgAAn/lf2trrQrQBwSpLZx26nw89g+oQK4Y/ZyJs3sT4sV4 iXOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cMRRXsedKXrxmWTPkUUkjbMsPD10nX0/lTIR2JNBST4=; b=YXKucVYEEKnbwF5QvrjLQFGe/tqFTAWk+rPk89AWhzFu/CMGnaPZ83xu0X2k41Bzjj jjJwZTJW0DG6ElokZlNWkrUSi2RAeQb20djicbU9jTWZ5ZlTeNaYayqQpDBhPoh/Hdn7 vlWE0QJ+LJkNTWissncKiQmq/RnOk6bUMZB5KOcj+397eQWPcZ3rjTGlbH/dFkMTwcTy cCyqUJhBom5N6IxaYrp/bel7KF0flL+Fl8UnsGpDeRLIkmbFY7bHrgXj3gMpfQGy62c+ p3Mgw8rqEEfiHoDiQeZ63DftugQBMudHpiFIHsv/h3ymYGSQjiLvYJEgw5ip4Z3/kiiZ m9Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr5si982250ejb.549.2020.09.01.09.52.19; Tue, 01 Sep 2020 09:52:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730282AbgIAQuf (ORCPT + 99 others); Tue, 1 Sep 2020 12:50:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:57592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732283AbgIAQuS (ORCPT ); Tue, 1 Sep 2020 12:50:18 -0400 Received: from gaia (unknown [46.69.195.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BDC7C2067C; Tue, 1 Sep 2020 16:50:04 +0000 (UTC) Date: Tue, 1 Sep 2020 17:50:02 +0100 From: Catalin Marinas To: Ingo Molnar Cc: Chen Zhou , will@kernel.org, james.morse@arm.com, tglx@linutronix.de, mingo@redhat.com, dyoung@redhat.com, bhe@redhat.com, corbet@lwn.net, John.P.donnelly@oracle.com, prabhakar.pkin@gmail.com, bhsharma@redhat.com, horms@verge.net.au, robh+dt@kernel.org, arnd@arndb.de, nsaenzjulienne@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-doc@vger.kernel.org, guohanjun@huawei.com, xiexiuqi@huawei.com, huawei.libin@huawei.com, wangkefeng.wang@huawei.com Subject: Re: [PATCH v11 2/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c Message-ID: <20200901165001.GJ5561@gaia> References: <20200801130856.86625-1-chenzhou10@huawei.com> <20200801130856.86625-3-chenzhou10@huawei.com> <20200806133627.GB2077191@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200806133627.GB2077191@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 06, 2020 at 03:36:27PM +0200, Ingo Molnar wrote: > > * Chen Zhou wrote: > > > In preparation for supporting reserve_crashkernel_low in arm64 as > > x86_64 does, move reserve_crashkernel_low() into kernel/crash_core.c. > > > > BTW, move x86_64 CRASH_ALIGN to 2M suggested by Dave. CONFIG_PHYSICAL_ALIGN > > can be selected from 2M to 16M, move to the same as arm64. > > > > Signed-off-by: Chen Zhou > > --- > > arch/x86/include/asm/kexec.h | 24 ++++++++++ > > arch/x86/kernel/setup.c | 86 +++--------------------------------- > > include/linux/crash_core.h | 3 ++ > > include/linux/kexec.h | 2 - > > kernel/crash_core.c | 74 +++++++++++++++++++++++++++++++ > > kernel/kexec_core.c | 17 ------- > > 6 files changed, 107 insertions(+), 99 deletions(-) > > Since the changes are centered around arm64, I suppose the arm64 tree > will carry this patchset? > > Assuming that this is a 100% invariant moving of code that doesn't > regress on x86: > > Acked-by: Ingo Molnar Thanks Ingo. The only difference I see is that CRASH_ALIGN has been reduced to 2M here from 16M for x86. Would this break configs that have PHYSICAL_ALIGN > 2M? -- Catalin