Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4576856ybc; Fri, 15 Nov 2019 06:53:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzFylrBMcKLcxQYbv2O12CbDgeAz0ULYhLJ767uVuSAbC1puq/Vrnfv3iy0NV/iwYmSb3by X-Received: by 2002:a17:906:1f44:: with SMTP id d4mr1487024ejk.16.1573829624105; Fri, 15 Nov 2019 06:53:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573829624; cv=none; d=google.com; s=arc-20160816; b=0tazQk4u8fQdktACHW8uXzgp4OH2mk3c7U9A+O8huzsJZXPQk0LNY9cW5+87c/PDW0 GVWKhYf+BfsNJnfkWme0UtioGcn+f54Cvz6QftYW6tDfkD94k8Qpk7jRQtVzPrse7IC3 ic1U+ibuBIsTMsOhnKUCWhAS4lM4eMndnwYyTzLtOBIG0wBauHPi2G7/QVfSNYj8pS9U LTKJHeW040X+b7x+EbVEGR1XmXWw0kX2D3Z9eVVcIq3Ez75pMpcFS4RcfODWvr/6RULy NQ9olTIPnMb6Za3SL+Cc6rTUJhztLnK6BPbNQ8Ifu7ejhnnxQVbV1nv2vJvM8EJ+b84h lLWA== 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=lJzGk9L/f6bPyPgYlAcUVdIxyQcpeRxruAGEz+vTV7Y=; b=Pt/mBcqIqMvg3kdNF6dmGrV7wnKpAgL4wy7h0obRsQVlA+nzUqZg3lihoDXMngKR/o Chx10qNlkt5JCySi1/vRtkjMjhGi9I9uUURKnGgwr4OPaAkSi0xOM9jOnFKRTC8bYqup T5yUPHGYfau1f8y36StRKoPvhO+qXX1u01BBp9PB2QNkYTI4sUm0EAd5AJNKn+5niMZ9 rlWbiMWmenQCLjeBIgdV7IRdbc6q1LVcN6P+5IQ/zkxJWDeh2AlbDGlLudAGQt1Xi8F1 zu3HKI+lODug2ppSUkOwEeeCjAhvaZvReWLfofJQ86woNKXr00auOC7yCu+7mU5D0wjw u4dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kio4pezu; 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 l16si5739742ejc.171.2019.11.15.06.53.18; Fri, 15 Nov 2019 06:53:44 -0800 (PST) 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=Kio4pezu; 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 S1727629AbfKOOuQ (ORCPT + 99 others); Fri, 15 Nov 2019 09:50:16 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42857 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbfKOOuP (ORCPT ); Fri, 15 Nov 2019 09:50:15 -0500 Received: by mail-qt1-f195.google.com with SMTP id t20so11039780qtn.9 for ; Fri, 15 Nov 2019 06:50:14 -0800 (PST) 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=lJzGk9L/f6bPyPgYlAcUVdIxyQcpeRxruAGEz+vTV7Y=; b=Kio4pezu6ImCeG2mPNJ6cPi+B1BcudVnJhiprS6CAi5A8YzlqUWhO792FzvS8MrFal ksgM8cf9zP5ST2BhbT4/d7PIWE6RbQRpispbVKb810Sbg7p5CACIX8WL0/NUAp2l5KwD eUbMRsbDDVBIAoB/st4X7XDPXYVR4ryycYoUmgNHqqiPzRUyOl/LyCxzgRa7vW5PhQEJ 8ssNa2FI9WSz69+DGdMlTNviAUEcrTzOUSsn4Tr+hhPcQT3aSpvB8NIlVnBpRba6te5m /z0+1ZDOV6MtL9wqaelZUJ+Bv9cLhvEst0qMN9ixi5UBb96emno5nZBco/4MSb3uCTQZ SI6g== 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=lJzGk9L/f6bPyPgYlAcUVdIxyQcpeRxruAGEz+vTV7Y=; b=D7slwXLlSU3hylbQCCQaIFVXoTltz1IRtJoxR0bT/ugmUMA4xWxGCMd5+BEDNmXfGt R3Wig3dI+S6jLRYqX+lEATuT89tttbT3TC3PLCz2SSMkW9MhsxtllDo3iTBYYdgCcqnL LUNVrgwtIPQKgCuQ9re6CV+lwp4UYY23uYsyArJGwooRuKGskl1vTMXyyRYNbbPct3h8 TEreHLKcq1Q9MKYB4RoVmxdDNJ6X9woh4uqiHtYVLcR0jrJ2eFkLnx4cvMGuxSDelHOh cppvivI39OA5XNooG9qidsdBYKD+W1AJltpztqzOU3R2S3NmBtI29u56wzIRX7P7zKkj U2kQ== X-Gm-Message-State: APjAAAWWruu9YgelsFypcUY0cn9mp6TbaghNgNNrca51d3FI8oB5Oe4h knxoXKTOrok6AZjOC4Uf2A== X-Received: by 2002:ac8:1b85:: with SMTP id z5mr14017615qtj.308.1573829414000; Fri, 15 Nov 2019 06:50:14 -0800 (PST) Received: from gabell.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id l124sm4329317qkf.122.2019.11.15.06.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 06:50:13 -0800 (PST) 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 v5 2/4] x86/boot: Add max_addr field in struct boot_params Date: Fri, 15 Nov 2019 09:49:15 -0500 Message-Id: <20191115144917.28469-3-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191115144917.28469-1-msys.mizuma@gmail.com> References: <20191115144917.28469-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 f088f5881666..cc3938d68481 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 c895df5482c5..6efad338bba9 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.20.1