Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1034679ybe; Thu, 5 Sep 2019 09:20:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3+0P+e1msjACkCI1lqGjcXq/uBG3qa5fcjVnYdndwIS8Dp2WU/0ycyTRmRzWP+zBpcq+J X-Received: by 2002:a17:90a:c404:: with SMTP id i4mr4719348pjt.81.1567700402578; Thu, 05 Sep 2019 09:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567700402; cv=none; d=google.com; s=arc-20160816; b=H+/VJSPY3FFaAnTDVoLi6C0DuwH8Vd5RL86ekNciZatJxjx3IYSEBpMfg3L7mL1Ypj YdL9lhrTUdtTUhy+1ZMuqiN78X73c93O/GttdjynG2PIxu82dmd3LeAOuYlfszK5Fw5v 0aSVwEKpIu4r+oH648/O6L/zURMZrnyC3XSqbrD2SBJLuy5I7+25hCj3qTEOdQxWJ9Wy EBoo1nK/zRTmdAIa4jqTBwQ9pvz1uWkDXf286JzMIwE6QtY3LEQCPnKK45eRpDxhV2M+ kAZ+GIfdweOBZXj5hCJNun6iqqG9RyTCAgSQqdwRyZjuSQTAU5WM3Xv7DUY1msQ8E533 OBxQ== 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=CUynOYNYEpv5qWvHvhh2eyBwRblFDujDibZnpknzRq0=; b=SDGRGPFTIEoccypFSaoRbGR2p5NJIB3dn4hIoog8PHPNK4GjDSJr5z2+Ntc/CwBPPH +LPz+KwxRFGK7aGR4I7Zl0cJpaDWCq7DL5CS/CPa/taQrbiOZ81H3cJZXBfsT1F6k7gn TXL2JEwRoNI0IPDMPORZ7yLIPGLwUwHDAow6SSE/hSi2U+qkgWVn/VVQ3grK+5h4hJTi Q8469mQDOCE/orlGCdYVGYvgEWke3t4t1LenRjIy7E+jAcL6Jhe8edu5vZsLKDE9mqlR 6Mgft/2UBjfWEXbS2ztr61TXgPPvURjTOFQuF/VYC6opglx/VsS3HCC5wVxcX6APOaPd DiZw== 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 o131si2131621pgo.445.2019.09.05.09.19.46; Thu, 05 Sep 2019 09:20:02 -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 S1730883AbfIENnL (ORCPT + 99 others); Thu, 5 Sep 2019 09:43:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48991 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbfIENnK (ORCPT ); Thu, 5 Sep 2019 09:43:10 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F0B430603AD; Thu, 5 Sep 2019 13:43:10 +0000 (UTC) Received: from localhost (ovpn-12-28.pek2.redhat.com [10.72.12.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74F2A6017E; Thu, 5 Sep 2019 13:43:08 +0000 (UTC) Date: Thu, 5 Sep 2019 21:43:00 +0800 From: Baoquan He To: Masayoshi Mizuma Cc: Borislav Petkov , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Masayoshi Mizuma , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/5] x86/boot: Add max_addr field in struct boot_params Message-ID: <20190905134300.GB20805@MiWiFi-R3L-srv> References: <20190830214707.1201-1-msys.mizuma@gmail.com> <20190830214707.1201-3-msys.mizuma@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830214707.1201-3-msys.mizuma@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 05 Sep 2019 13:43:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/30/19 at 05:47pm, Masayoshi Mizuma wrote: > From: Masayoshi Mizuma > > Add max_addr field in struct boot_params. max_addr shows the > maximum memory address to be reachable by memory hot-add. > max_addr is set by parsing ACPI SRAT. > > Signed-off-by: Masayoshi Mizuma > --- > Documentation/x86/zero-page.rst | 4 ++++ > arch/x86/include/uapi/asm/bootparam.h | 2 +- > 2 files changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Baoquan He Thanks Baoquan > > diff --git a/Documentation/x86/zero-page.rst b/Documentation/x86/zero-page.rst > index f088f5881..cc3938d68 100644 > --- a/Documentation/x86/zero-page.rst > +++ b/Documentation/x86/zero-page.rst > @@ -19,6 +19,7 @@ Offset/Size Proto Name Meaning > 058/008 ALL tboot_addr Physical address of tboot shared page > 060/010 ALL ist_info Intel SpeedStep (IST) BIOS support information > (struct ist_info) > +078/010 ALL max_addr The possible maximum physical memory address [1]_ > 080/010 ALL hd0_info hd0 disk parameter, OBSOLETE!! > 090/010 ALL hd1_info hd1 disk parameter, OBSOLETE!! > 0A0/010 ALL sys_desc_table System description table (struct sys_desc_table), > @@ -43,3 +44,6 @@ Offset/Size Proto Name Meaning > (array of struct e820_entry) > D00/1EC ALL eddbuf EDD data (array of struct edd_info) > =========== ===== ======================= ================================================= > + > +.. [1] max_addr shows the maximum memory address to be reachable by memory > + hot-add. max_addr is set by parsing ACPI SRAT. > diff --git a/arch/x86/include/uapi/asm/bootparam.h b/arch/x86/include/uapi/asm/bootparam.h > index c895df548..6efad338b 100644 > --- a/arch/x86/include/uapi/asm/bootparam.h > +++ b/arch/x86/include/uapi/asm/bootparam.h > @@ -158,7 +158,7 @@ struct boot_params { > __u64 tboot_addr; /* 0x058 */ > struct ist_info ist_info; /* 0x060 */ > __u64 acpi_rsdp_addr; /* 0x070 */ > - __u8 _pad3[8]; /* 0x078 */ > + __u64 max_addr; /* 0x078 */ > __u8 hd0_info[16]; /* obsolete! */ /* 0x080 */ > __u8 hd1_info[16]; /* obsolete! */ /* 0x090 */ > struct sys_desc_table sys_desc_table; /* obsolete! */ /* 0x0a0 */ > -- > 2.18.1 >