Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1182518ybx; Fri, 1 Nov 2019 18:11:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnR45Vb7NmuEn0/LTJUqEuM3t5z4ul/UlXnSRWrKD6zwxcHSrhlDOUKpUJWxvkp4maedom X-Received: by 2002:a05:6402:1107:: with SMTP id u7mr16082328edv.163.1572657083107; Fri, 01 Nov 2019 18:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572657083; cv=none; d=google.com; s=arc-20160816; b=jKFnseaVehYOtK0wXj5DnssIf67EAMrGrGyhRSxI37Zz/1TgHckuPPcxr+rDRM/CeO Rd50bZvXMDOvsAiRYRcqWgQj37+dKBtaKEIhnI+pwYBNiy/0m3KdjKSuBbg4BG0X/ULP Vq5KyxZY9jhmTh70swtb9KbE5DUeoGjAjdi4edZpSZDXK4PD796EDMz6txmSYbANvhAb MvG9RqBZerJBDTDzKHWxMHLY9uYgepNxZxTrpQcqACa3FMtaU2bhUBVbnR/wzd6phexU LCXGD5fbGL/MUYS5SwVmFkyBuwI0n1jWVRp7lxmzO+n8o8fkLBrXR3pFJjaUgpDhhHLr JVLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=l7KQ0hMK0q2lU7vW/DT7BMNIzGBaNDHX7UYuOkOBQN8=; b=qS2SEA26djqA8Blfmz8sjXQDlVhMxl8cqe7a0hEV4aEkG5L7vGLiDwsVSH4413iV5Q bp0sb8VjoxcBTHwCIrdLZo9Y8UTi5SCOaalV1jDXq1JU/9xqASEfsHecoY+7KxQXz7Ei vQbyFIuqYYN+52v0n0rTO0pEokFwrSz0utGw039vWxBCoioxySzhFK61XXX4rE/6pUPf 8zYumay3X24jreh/iMwrA8aBZFKVoNBGHdYe3+d+03YotPifqrmkbIy38gMvuOegtpxI 814aKHcxhWS0vFdp4MCDNLqUZYPTpjFFtKzJ0Yn00uZtT4FHfgvaKwD4KDYZpBEYSBwK VYZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="MQQz/Hcx"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si1944604edm.231.2019.11.01.18.11.00; Fri, 01 Nov 2019 18:11:23 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="MQQz/Hcx"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727893AbfKBBJf (ORCPT + 99 others); Fri, 1 Nov 2019 21:09:35 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39657 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727798AbfKBBJe (ORCPT ); Fri, 1 Nov 2019 21:09:34 -0400 Received: by mail-qt1-f193.google.com with SMTP id t8so15401254qtc.6 for ; Fri, 01 Nov 2019 18:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l7KQ0hMK0q2lU7vW/DT7BMNIzGBaNDHX7UYuOkOBQN8=; b=MQQz/HcxtjYg0GJMoDgO8m0eO8SEuAOMIoUmabtgIuW2Z/pVaeTAgrJ2g1ivBNl/JQ ClhyxB/cloisuZOuPmYH86/8/WWtCKl+UE08TVRklyA3psgtuyuHTthwdojhzB3gNZR3 6IxuNO0Sv0hVUri9TKwpVg0TX1HsFr3OzC3EL8EMcH60ZmtYq+zm+9NrU8K350QYxvl5 JBBpeA4Y6wYpS8uFEPLZYlbTn4oTmkVVqmzlu5pjYsFPbBrRbyHVOZquo2t2l46hbaV2 c24KuRTSuFf0oucby+tjY7ccDXLw8tBBuKfi3tLLEI0bAZ1ukNXHTqL8OgmaU9YJLAg/ Ex9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l7KQ0hMK0q2lU7vW/DT7BMNIzGBaNDHX7UYuOkOBQN8=; b=UDcP706mvIEel5apahwUMYZgvkO5/ECl5ad9L/R+hLB/1deEIUhMKoy8XXD/qOn+ge ISqByX+TVFaYtRKJ0vZHiu3J+1uX64SdJmDcWg5dkvvadTvbhLs9urXHmg/YsFsEKFxl +fjxx/jhj9RrRudl+AjLXQKb/3jyM5lT3Sf0wE2jW1cHcRlpGqEelLNvGKDr35tq13qR JNDb+ouEgjZBzjH0HR1WhM6A9PD6LnM7LdS2l3rREgKjxIzHTlIAhRETvdObMXM/Feds Ru6jCiwgmTQQx+oOEMpMP+toJTzJ5CcA/h4HKurjbOa3iTvGPSlVoshFALgdKwRhC75e j+eQ== X-Gm-Message-State: APjAAAWmVikIhDz9wjzlzUgJ4V3NdnS3ONE1vNKMSEbue/W6TkRc9DQb Vu2FCwdLPdMthRM3TS/Gjw== X-Received: by 2002:ac8:92a:: with SMTP id t39mr2521882qth.170.1572656973880; Fri, 01 Nov 2019 18:09:33 -0700 (PDT) Received: from gabell.cable.rcn.com (209-6-122-159.s2973.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [209.6.122.159]) by smtp.gmail.com with ESMTPSA id i66sm4234340qkb.105.2019.11.01.18.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 18:09:33 -0700 (PDT) From: Masayoshi Mizuma To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Baoquan He Cc: Masayoshi Mizuma , Masayoshi Mizuma , linux-kernel@vger.kernel.org Subject: [PATCH v4 2/4] x86/boot: Add max_addr field in struct boot_params Date: Fri, 1 Nov 2019 21:09:09 -0400 Message-Id: <20191102010911.21460-3-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191102010911.21460-1-msys.mizuma@gmail.com> References: <20191102010911.21460-1-msys.mizuma@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reviewed-by: Baoquan He 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(-) 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 db1e24e56..855d30f64 100644 --- a/arch/x86/include/uapi/asm/bootparam.h +++ b/arch/x86/include/uapi/asm/bootparam.h @@ -165,7 +165,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.20.1