Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1230107ybm; Wed, 22 May 2019 20:17:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/8HBIgUBORM4Lw4VY/32gPem6e5KQ19wE+4GinGswfg5afoXFw+IFvLbdkHFpxMeMR+HM X-Received: by 2002:aa7:8d50:: with SMTP id s16mr38787216pfe.96.1558581446461; Wed, 22 May 2019 20:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558581446; cv=none; d=google.com; s=arc-20160816; b=ApF8kU8LZOa4T7+av9h4w3sgd2/XvvEj1kcWTdYJ2iAMwXddHjnXaqh+2y94s8zf3m K1DIYFtfeFneLAP60Wpnj59clD7F3iFjwJmw1TemrIyrULeJ6nMoJENnW0vSzr5oUS8U /KJweAC3qtM6M16saWvlXXdsOY9rxjVe1Mgv1q6GRMsNCC0sOoXuOt+SfteyfvTnsc9T p/ensNpMs7Ck1b+fpixpJb8euwbodPxQqMruUHowh1pESxckLmYgs9rSiL3ypuu0qOwV 1Yl6CYMTN88y/PrlX2tyJmJHx2wqWjblt5RkZjgx9n53MiamCdAdlt3FZeSYazPren1g 9e6A== 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=QEDqsw6n6liSgU36oNp+eSTUbYvTfudf/lhT+KD72CY=; b=xcx7L9frhwpaBPYe6M7ZVyjAT8y1cP6JQjR8m8wh1GEhu9eJnwfQALKeA+tbUn5IJM zQbUokqU1DFhTDl5Mi5ZYCdjbePka6rrzc8bmM/J04SDMkUncDWtSWDLF7Qshv0zLnxr fDBJMbzuwZWHqAiGWCTWggAVbDvqQMkviqVrLpbSf/okCnUle7eZkYCDtgc7q3pvmk2a k8czK3kA9lQ83FXxUOos1UZdoSIECGJMxYjn0Kg4gFl2mtS/pkdipcnpAj5tG9Eje5ih QpTYbJcfHe5DNF6bV/MisHRSqPOb21x7PBzHd6sogFEwESC5wZKzLXO+RffyjtdgSONY GEtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si29366148pfe.111.2019.05.22.20.17.10; Wed, 22 May 2019 20:17:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729588AbfEWDP6 (ORCPT + 99 others); Wed, 22 May 2019 23:15:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728734AbfEWDP5 (ORCPT ); Wed, 22 May 2019 23:15:57 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 55C983092650; Thu, 23 May 2019 03:15:52 +0000 (UTC) Received: from localhost (ovpn-12-100.pek2.redhat.com [10.72.12.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF0AB19C4F; Thu, 23 May 2019 03:15:48 +0000 (UTC) Date: Thu, 23 May 2019 11:15:41 +0800 From: Baoquan He To: Dave Young Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, bp@alien8.de, hpa@zytor.com, kirill.shutemov@linux.intel.com, x86@kernel.org Subject: Re: [PATCH v4 3/3] x86/kdump/64: Change the upper limit of crashkernel reservation Message-ID: <20190523031541.GD3805@MiWiFi-R3L-srv> References: <20190509013644.1246-1-bhe@redhat.com> <20190509013644.1246-4-bhe@redhat.com> <20190522031133.GA31269@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190522031133.GA31269@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 23 May 2019 03:15:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/22/19 at 11:11am, Dave Young wrote: > > /* > > - * Keep the crash kernel below this limit. On 32 bits earlier kernels > > - * would limit the kernel to the low 512 MiB due to mapping restrictions. > > + * Keep the crash kernel below this limit. > > + * > > + * On 32 bits earlier kernels would limit the kernel to the low > > + * 512 MiB due to mapping restrictions. > > + * > > + * On 64bit, old kexec-tools need to be under 896MiB. The later > > + * supports to put kernel above 4G, up to system RAM top. Here > > Above two lines are not reflected in code because we have removed > the 896M limitation, it would be better to drop the two lines to > avoid confusion. Missed these comments at bottom of mail. Yes, will remove these two lines. > > > + * kdump kernel need be restricted to be under 64TB, which is > > + * the upper limit of system RAM in 4-level paing mode. Since > > + * the kdump jumping could be from 5-level to 4-level, the jumping > > + * will fail if kernel is put above 64TB, and there's no way to > > + * detect the paging mode of the kernel which will be loaded for > > + * dumping during the 1st kernel bootup. > > */ > > #ifdef CONFIG_X86_32 > > # define CRASH_ADDR_LOW_MAX SZ_512M > > # define CRASH_ADDR_HIGH_MAX SZ_512M > > #else > > # define CRASH_ADDR_LOW_MAX SZ_4G > > -# define CRASH_ADDR_HIGH_MAX MAXMEM > > +# define CRASH_ADDR_HIGH_MAX (64UL << 40) > > Maybe add a new macro in sizes.h like SZ_64T I am fine, will add and use it here. Thanks.