Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1871913pxx; Sat, 31 Oct 2020 00:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7mV0vZ9rxM0Of8V1+kU9eGDSL2vzzF+aJe916fT9mgKDHh6zq19L+LTLntFTARSZP+ny6 X-Received: by 2002:a50:ab0e:: with SMTP id s14mr268041edc.172.1604130066256; Sat, 31 Oct 2020 00:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604130066; cv=none; d=google.com; s=arc-20160816; b=Rv4IYvbMn1VLc4B9Ia1AEdVDEEe2H0eIbsr8SzzaCeXDfrmRC9CmjlsgaL3Kh84QFO 9Au2r1c4i5B/qdo+QhzcqvDcncrGgpd4FOMUYwp3lH9ZZA62BMzr98mZCIvf5XhvAcov MglBzrXGaXHs77NVdXC0SYtnOxA9EvWewqPxHIW/CdH5Ansd1oo1BiCOWRK/HLS04nbj +DYv+EjIMg49KiTiHRuKW/S0vxLb1ZV3qY1PJrcRBBnwn9m1FFHeYgTg5NrwSVfbHmka KFMRKjQUB5J23lH3cxQyCjLupE5p1o2nuNdaQUt6h3MWwGY8OfJrk0vyi8JaXKQvoNIE mx7w== 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=k/e6cg3KHNR6UGg+wOlEU8MKZNOUy8f/mZyKGIohJVU=; b=kSCNvdaQ27RS/zGS/jrV82V5wH7ZK1HRc5/llctM0QyCp9lz2WIKpdNj7eoKz65BFL vy9BAJFWqeyp03W2avjva3wfCdW0rLJj50t9qqNF6yc2pu51kqRWvoP6NMjm4SqQUfD0 9Ncek1BL8IaAxLEuQiQWMElLXaQoC1k2yLXY4UPruqXhH91MBjlu/Kujq6/Z0cCoDEoP aHEXww9+wuYjIc0t8FIKUvapmt7FymbLRedTZ7vE5Db+EHs5WurATRH0QOlPBqBMiBPb V2iPwLNxhkuMQAava8lg265qVYXTNxJfEEzoZ1kI6n1jy/RAZNs44Txue84T+Nqr39Zh bXAg== 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 o16si5632217eja.345.2020.10.31.00.40.43; Sat, 31 Oct 2020 00:41:06 -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 S1726413AbgJaHjO (ORCPT + 99 others); Sat, 31 Oct 2020 03:39:14 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:7385 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbgJaHjN (ORCPT ); Sat, 31 Oct 2020 03:39:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CNWJt5rWBz714p; Sat, 31 Oct 2020 15:39:10 +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.487.0; Sat, 31 Oct 2020 15:38:59 +0800 From: Chen Zhou To: , , , , , , , , , CC: , , , , , , , , , , , , , , John Donnelly Subject: [PATCH v13 2/8] x86: kdump: make the lower bound of crash kernel reservation consistent Date: Sat, 31 Oct 2020 15:44:31 +0800 Message-ID: <20201031074437.168008-3-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201031074437.168008-1-chenzhou10@huawei.com> References: <20201031074437.168008-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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index bf373422dc8a..d1599449a001 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -444,7 +444,7 @@ 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