From patchwork Mon Nov 26 22:37:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152091 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp465905ljp; Mon, 26 Nov 2018 14:39:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/VmeiazqY1QDA1RPJ3/3V7uS9UfWKDlDPHMvFq1hMSJ0cxqaa21xDxheYQQzNmI+YsHLAZ8 X-Received: by 2002:a63:e84c:: with SMTP id a12mr26462445pgk.241.1543271942443; Mon, 26 Nov 2018 14:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271942; cv=none; d=google.com; s=arc-20160816; b=Lpu0EzC6xuSN2SnJloTuA2M5/w6VYQMy1xSRgXz1KPO26LhK19otWCd9jGjT16roII RX9jFjjKcroV5yoCCuZvjJdJbwuztawMb+uHnMlRIo7cwB7nmxYxfibGUqBjjXYHb5Y+ mKS4X1mczAokMdPsE8XIjjnVPZWxxd0tC4Jaoj0aDLVZ97E8gPFGstUuXR1XN3o1meeX QmFnwBqzQPzf4RBnzENUCgnKISJ6d6stWtbXwDEGqXDf80OwK7QbFJ3rXdPjsIP6eIVz s3/kAPgzHHrbq/LSyTZfh8v1ljyx3JA/uD5MWyiyOmwm40eGSfddpgXkIKaF7PUo1xcx fcxA== 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=TNOsVjDpQUpDXuYTjHcW8HPmgZ0W050N04Gzt5Ep+Qs=; b=pKuGSM9ZHTVZ+c78NPj09P3mG5NgqZpLMHsHihb/8zguWFj4/4N0+7wgFW4R9M2S+m Gxf52bhU+omxOXiyhJC4MCGsGMvSU7ILOeKjqgXWWueP2HFkPIfLsrEI1g/6WRf8ugnA KH14p6BSRxvVyLk6TBCzT7P9+nsbOIiJet1q0T56/H1Zn124I/yMp+m4IeSkb+DR0/Eu vnxKBWEcZeXvagKZwt9iJRu0XDNaEUknInJH4y9mbaXLxEIHPUVbRARvYhvAkhDZ4O07 Y4rOyZ3ueFxOOs/B8ViwQdwqVyH9gGrFGvWKGP9u/ptca9sFYxQCt+fUYJTNPM26oDZt VQdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U8ZmdlxP; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id o127si1847137pfo.251.2018.11.26.14.39.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 14:39:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U8ZmdlxP; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 4E5F5211944A7; Mon, 26 Nov 2018 14:38:44 -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 C35F4211944A7 for ; Mon, 26 Nov 2018 14:38:42 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id t3so20666375wrr.3 for ; Mon, 26 Nov 2018 14:38:42 -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=CV2IjsGCFbM79DiKtBeafG1Ak96/I/J0iqDkRTBuT6A=; b=U8ZmdlxPVSNLr7VcmNsMhCAZt5MriwEHWVE3yKCHB2TaGkG658Tisacq40M7Fyn9If N/N0hFQCnq9jBre8B2cbkxW/6lfFExqjz7ejpurKGrM0U09FDUhZbCsKNlSBgiWqgi3W VfgxFXmD8eLJok8vCPUpmMycQF5M+NbWRpJS4= 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=CV2IjsGCFbM79DiKtBeafG1Ak96/I/J0iqDkRTBuT6A=; b=phqCcKXGNuxbF++KRvVFb+TrgOL4ndWZO3uxS9BLUYl6ybQio60g/XaZIowilqBuhN yUddOMGAdBZaGAkNWNLzm+2LWlZC08VZzA1+Z8CNnq629R77MjLPoz9vnHuukh88nnya YpRojtU9mMHr61wcR/vkUd7r8GjmVdHV7H46cZXG68skbeJnOIHBFHMLBjGVeuoJMkhk XyH5M+uSd09OylDoTnq7QANzi08x3DxUvG8/nS+zBgmYn9Lww8cl/xKoGnGAb2l0XsCk 22kwd5acCgCCd2iB9wTWs9Bchg8Gdjv83ghusWnbr8VJl3X6HWNMF4VcigiT0dRG76Tn SahA== X-Gm-Message-State: AA+aEWZlkCL2o+bG1lZkDJ35vd9VRtTTJmU0UL5t977H01VZtCeCr3gC jtmXJyQAJPFNCKWv7SuwIzDmH04W5iE= X-Received: by 2002:a5d:6b81:: with SMTP id n1mr27270194wrx.149.1543271921094; Mon, 26 Nov 2018 14:38:41 -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.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 14:38:40 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 26 Nov 2018 23:37:59 +0100 Message-Id: <20181126223801.17121-12-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 11/13] ArmVirtPkg/QemuVirtMemInfoLib: ignore PcdPrePiCpuMemorySize 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" Now that the size of the GCD memory map is based directly on the CPU's capabilities, we no longer have a need for PcdPrePiCpuMemorySize and so it will be removed. So drop it from QemuVirtMemInfoLib as well. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf | 1 - ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf | 1 - ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf index f2c461e3b55a..5c5b841051ad 100644 --- a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf +++ b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf @@ -45,4 +45,3 @@ [Pcd] [FixedPcd] gArmTokenSpaceGuid.PcdFdSize - gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize diff --git a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf index f54fb51ee1d4..d12089760b22 100644 --- a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf +++ b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf @@ -49,4 +49,3 @@ [Pcd] [FixedPcd] gArmTokenSpaceGuid.PcdFdSize gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress - gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize diff --git a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c index a80454c4802e..815ca145b644 100644 --- a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c +++ b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c @@ -41,7 +41,6 @@ ArmVirtGetMemoryMap ( ) { ARM_MEMORY_REGION_DESCRIPTOR *VirtualMemoryTable; - UINT64 TopOfMemory; ASSERT (VirtualMemoryMap != NULL); @@ -75,11 +74,9 @@ ArmVirtGetMemoryMap ( VirtualMemoryTable[1].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE; // Peripheral space after DRAM - TopOfMemory = MIN (1ULL << FixedPcdGet8 (PcdPrePiCpuMemorySize), - TopOfAddressSpace); VirtualMemoryTable[2].PhysicalBase = VirtualMemoryTable[0].Length + VirtualMemoryTable[1].Length; VirtualMemoryTable[2].VirtualBase = VirtualMemoryTable[2].PhysicalBase; - VirtualMemoryTable[2].Length = TopOfMemory - + VirtualMemoryTable[2].Length = TopOfAddressSpace - VirtualMemoryTable[2].PhysicalBase; VirtualMemoryTable[2].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE;