Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2403202pxb; Sat, 30 Jan 2021 01:17:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAJUDR9dWOG5rZ/25DPvosKPTegBQq//dtzV1Mb1isPR/i3oh8DxF30+cqxeJW6tS4Zg3h X-Received: by 2002:a05:6402:27d1:: with SMTP id c17mr9323868ede.109.1611998243747; Sat, 30 Jan 2021 01:17:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611998243; cv=none; d=google.com; s=arc-20160816; b=B9VQ4uwBiR0XhQwQ7VT4ivrneCtiBo/+rqNplzqZZvUOk1bTlR0nwtD+NHGkyXUSbO LVdHRFuZKFz4ynFU31gIvdX3g7ur2Xd+u0KwdiH+inGnMuRa8bYWComNJmYGhAQG/0vR irotJRh7D30UWzl/uSb4cERiOsiOFO1PfZFDPBzZ/bIxXkbtZSdGU+5ihas5Dsuf0/aL nNKQCxaBtNXPnxKWsoFmn+iMSquUmgW2fFgCtXwd2C0sT1sIOLYlHU7K6ZATcZnx8yaQ 0ULQyehIv1D7it0Hw0Js+wuzpM1/cbEXGCDmdXVIhjPhdRQ9rbYwqYC46UbnRieYtvKX PXUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r3rd3C95HXDX4fIuZV03J0B0z2RKYQ8sV0DbPX37a/4=; b=Rc3Q/dZuQxjdAMPnI36XkFKEXcebBvj1qvS2iEBBY/tnsfzwd05v+s17UhiBvyPenI HoY3pwBgoA5beDt2yHYWXZq2Ao6Z23GE4eRpB0npYQww2P8iRI4W45NnGVd90ntoHAeJ xwL3AKfo6c8Z7gKoYegK60N2HM7+eG6VBF9h7ZKvm6ezE9Ut4In+kZKZuIC4dhePn4tm l5GXfVaK76M4fNqdcO3LvHnMiZD3sJE+fY67rlmtPaa3R3MH68PWLtrhteS5g3muy9IR I5t1dm9GFnn+Of5y7EQfUnP8U5RnxqdxDWtq3Ltp1wXP6OBMDkURSGl/4FO4AeA046qY rX2g== 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 e6si7909984edz.98.2021.01.30.01.16.59; Sat, 30 Jan 2021 01:17:23 -0800 (PST) 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 S230256AbhA3JQU (ORCPT + 99 others); Sat, 30 Jan 2021 04:16:20 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:11950 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231928AbhA3JNB (ORCPT ); Sat, 30 Jan 2021 04:13:01 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DSQFc4ZH3zjFJ2; Sat, 30 Jan 2021 15:05:08 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Sat, 30 Jan 2021 15:06:02 +0800 From: Chen Zhou To: , , , , , , , , , , , CC: , , , , , , , , , , , , , John Donnelly Subject: [PATCH v14 02/11] x86: kdump: make the lower bound of crash kernel reservation consistent Date: Sat, 30 Jan 2021 15:10:16 +0800 Message-ID: <20210130071025.65258-3-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210130071025.65258-1-chenzhou10@huawei.com> References: <20210130071025.65258-1-chenzhou10@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The lower bounds of crash kernel reservation and crash kernel low reservation are different, use the consistent value CRASH_ALIGN. Suggested-by: Dave Young Signed-off-by: Chen Zhou Tested-by: John Donnelly --- arch/x86/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index da769845597d..27470479e4a3 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -439,7 +439,8 @@ static int __init reserve_crashkernel_low(void) return 0; } - low_base = memblock_phys_alloc_range(low_size, CRASH_ALIGN, 0, CRASH_ADDR_LOW_MAX); + low_base = memblock_phys_alloc_range(low_size, CRASH_ALIGN, CRASH_ALIGN, + CRASH_ADDR_LOW_MAX); if (!low_base) { pr_err("Cannot reserve %ldMB crashkernel low memory, please try smaller size.\n", (unsigned long)(low_size >> 20)); -- 2.20.1