From patchwork Mon Nov 26 22:37:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152087 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp465694ljp; Mon, 26 Nov 2018 14:38:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/XuwQVMOKr+OWiE8XEw+ztQGXXKLrieMoetwY6bWTQcbJpQtihqyw2gulty16tLdFd9P9jn X-Received: by 2002:a17:902:76ca:: with SMTP id j10mr28854713plt.144.1543271928799; Mon, 26 Nov 2018 14:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271928; cv=none; d=google.com; s=arc-20160816; b=ldIDM3szOXNSwQAo7rIj1TeL4ZF/3ERHTG/H/XPKrgNv7kL6Am3fCQGtCo25mIznEX jwVtwDEoqILhnv5zkBYZiMLaBfXG3s0MByHJC+gW79SHQ+s5QlAzBIrFPAGW9COC+W2K h02DQkKOrivgY/9KVvkhXtaONO/qN2qyLMLMyNLMOEomP3ZleTTJV8QMAtqwqgb7f323 BjkE5VRkSKpo9sk0w1nLg2NcX2OqZ9LaGhnVgEyxHHZYGOOdTMM8bUAJbkNVdp5ctZCa hxnQ3nIUNzJqkeWUTWO6F+M/kyI6u7ZBH3BhTmtwpQ4Xbx5lrgpSMwErzjXfQmDxEabL nE6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=2yrJb1ywv28RrJZEDPoQaSpRKlS8Qtu1Ouo0u1wzUJ0=; b=hdslpWWO546GPMf/eUDj4iv8n+BsaDgvW522OyHV/rS/wwMpMqkDcyKg2uwNKasnJ2 3wBKGvRJDFJGkRMq4Lyz7MBnYIQGhrLi2puafAbL1sq/cdDOHzIxc5iR/intbX6hcSj1 h8wRMNrsbioO9ZtzgkSfS66LywaAb2fB1e99piastnurU5OZKNltOHOQ4teipEJ204gt 3JyMu7JrqarlMZphqGIWaPH3WlNUpMPgTuW7lc6ALAA1tLP4LwSVT3kzs1/YmtsiDsPM vk+TmymFT5By4pJ1MLf1BbHL/+xLJOLPuA91Q2fH6q05gxhKUgJRm+s6H/p56YJlWf2P HR/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MZY3mh93; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id q20si1637073pgl.268.2018.11.26.14.38.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 14:38:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MZY3mh93; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7DA032194D3AE; Mon, 26 Nov 2018 14:38:39 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::444; helo=mail-wr1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D153521195BCB for ; Mon, 26 Nov 2018 14:38:37 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id c14so15021148wrr.0 for ; Mon, 26 Nov 2018 14:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=URUyurxf667iFbDXbP2kN6XPe58zIYvx3JM7hp6HbeI=; b=MZY3mh93/+rHlojdNFVMDSnxn4SXQY8bflxz9wQk8ZsbblE2RrAl5ndBdj5mIcSMDk djSS9Poy9Sdc8wvjLRSvpnNl94zKvS9HMz9Fg/kX0RRmHOxuA4XvCJsi7SLC/LfI4Yly D2pLsSePDxbF7VXp4fxS8YtwCwYNK9qi6eYpE= 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:mime-version:content-transfer-encoding; bh=URUyurxf667iFbDXbP2kN6XPe58zIYvx3JM7hp6HbeI=; b=aOTmorXKyEKMarmIRFZKA9sGAAcLJgbg8mp88SqrUJveuHBRCZ3/NjHRHh6IFT5v9k enRcBznl+UuyC8QqbO3jrhFfBFx3sGj9rJWLRYLYKw86+JjqngBgviOPyd1qs6uVnM0h tYx3LQ0UgooS+ZeJaK3RBynsGh6KfmlYB28DG01ZkOcE4U+JeMtzZGF1Z1CP7fGaGT2s 1lxK/DcJlprxCYM3hQKEFkySYwMnGG+/IhFC1ruIIYO6RYo2CALrZCJQ1/jlCgnyi8We oSc9HpY62QwOEtnzfNr9ixPAxDzwYHgD9W/+ICX1DxnLk4u/oLsiXcJEXZtmwa9RikHx sGDg== X-Gm-Message-State: AA+aEWakXSvUqx7fP21W00xGBRqR3OJArg6iRDH0UEIOrvGUvTDRtP5v VvKlOBF3XyBzg4Mw9P1EFmvO3bvThcw= X-Received: by 2002:adf:be8d:: with SMTP id i13mr26078150wrh.235.1543271916078; Mon, 26 Nov 2018 14:38:36 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:8571:4c23:4f5c:5eb7]) by smtp.gmail.com with ESMTPSA id v5sm2641916wrn.71.2018.11.26.14.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 14:38:35 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 26 Nov 2018 23:37:55 +0100 Message-Id: <20181126223801.17121-8-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181126223801.17121-1-ard.biesheuvel@linaro.org> References: <20181126223801.17121-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH v2 07/13] BeagleBoardPkg/PrePi: base GCD memory space size on CPU's PA range X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jones , Laszlo Ersek , Eric Auger Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Derive the size of the GCD memory space map directly from the CPU's information registers rather than from the PcdPrePiCpuMemorySize PCD, which will be removed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- BeagleBoardPkg/PrePi/PeiUniCore.inf | 1 - BeagleBoardPkg/PrePi/PrePi.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/BeagleBoardPkg/PrePi/PeiUniCore.inf b/BeagleBoardPkg/PrePi/PeiUniCore.inf index 3d72bc5b46e1..53c71d8eafc2 100644 --- a/BeagleBoardPkg/PrePi/PeiUniCore.inf +++ b/BeagleBoardPkg/PrePi/PeiUniCore.inf @@ -86,7 +86,6 @@ [FixedPcd] gArmPlatformTokenSpaceGuid.PcdCoreCount - gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory diff --git a/BeagleBoardPkg/PrePi/PrePi.c b/BeagleBoardPkg/PrePi/PrePi.c index 46f63f40c46e..bc9b0c80b84c 100644 --- a/BeagleBoardPkg/PrePi/PrePi.c +++ b/BeagleBoardPkg/PrePi/PrePi.c @@ -110,7 +110,7 @@ PrePiMain ( BuildStackHob (StacksBase, StacksSize); //TODO: Call CpuPei as a library - BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize)); + BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize)); // Store timer value logged at the beginning of firmware image execution Performance.ResetEnd = GetTimeInNanoSecond (StartTimeStamp);