From patchwork Fri Mar 3 15:11:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 94844 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp280171qgd; Fri, 3 Mar 2017 07:11:42 -0800 (PST) X-Received: by 10.99.139.196 with SMTP id j187mr3968592pge.105.1488553902184; Fri, 03 Mar 2017 07:11:42 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 2si10892864pfd.116.2017.03.03.07.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 07:11:42 -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; 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 9C82482215; Fri, 3 Mar 2017 07:11:41 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (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 08BB78220E for ; Fri, 3 Mar 2017 07:11:41 -0800 (PST) Received: by mail-wr0-x231.google.com with SMTP id u48so75720808wrc.0 for ; Fri, 03 Mar 2017 07:11:40 -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; bh=pPZCLKMWKKaVj8pmbRWA9fCj5oWfLsktUGnUT1LWJv4=; b=WUUwdfPFM9R5iEIxdoFdgp99J9SM4CTNEICzCaXM2zxLPrXHBGgysg52pWjO1aM83+ 6hMd/CsFSkAIcjC4AduCYYQwALuYArJD01puvho3jhS4LXzoz7J0fhv55qcriH1qvpIq 8kP8FKiquvwscgMuByJ4GN9aa38VsslfKpebA= 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; bh=pPZCLKMWKKaVj8pmbRWA9fCj5oWfLsktUGnUT1LWJv4=; b=fc7MkUfTenUKEK9TS5Y0d7mBjSXkC0eAdPVWEsHsnUSk+LfuXrQec90ZkfhEdo0oZ1 YssVAs9EX/n+5FsCxPt3UbhaEoCWx5ZrMMLroY2zjNPq5WhvkUkozUFRz4siBvCwhrHD zemp2iui9iKD+khcG1TE96gp+gtgZ3SxKLuwbwr3D6vdR0NpmafjFg1c4ER6TYGnd4qF aslKNtFzVl54Fh4RM0PMOF5egLtM6u9gHF87UtKlwyiWdX5AG3TZpZo/SAX9vt/7WqGx 61IOcjZ4ZfJD/WtDruy7KGW8KGLu8ovrRJ0lt+24HACfcdIx7IvXi6nv8IHfIUxO9dY3 ge6Q== X-Gm-Message-State: AMke39l66n8Zen04sTS25F74ej2fwAgjFNeQxAmzaZZ8/Si2n7K0JQJVQ/fMo+YDdw9vgjHy X-Received: by 10.223.141.148 with SMTP id o20mr3216131wrb.75.1488553899604; Fri, 03 Mar 2017 07:11:39 -0800 (PST) Received: from localhost.localdomain ([105.147.1.203]) by smtp.gmail.com with ESMTPSA id w207sm3428523wmw.1.2017.03.03.07.11.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Mar 2017 07:11:38 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, liming.gao@intel.com, michael.d.kinney@intel.com Date: Fri, 3 Mar 2017 15:11:30 +0000 Message-Id: <1488553894-3520-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH v4 0/4] MdePkg, MdeModulePkg: Enforce page allocation granularity X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jiewen.yao@intel.com, star.zeng@intel.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This is now a 4-piece series, so that the allocation granularity used by PEI core, which is defined per-architecture in the UEFI spec, is not defined locally but centrally for all modules in all phases. Ard Biesheuvel (4): MdePkg/ProcessorBind: add defines for page allocation granularity MdeModulePkg/DxeCore: switch to MdePkg allocation granularity macros MdeModulePkg/PiSmmCore: switch to MdePkg allocation granularity macros MdeModulePkg/PeiCore: honour minimal runtime allocation granularity MdeModulePkg/Core/Dxe/DxeMain.h | 25 ------------- MdeModulePkg/Core/Dxe/Mem/Page.c | 22 +++++------ MdeModulePkg/Core/Dxe/Mem/Pool.c | 8 ++-- MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | 2 +- MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 4 +- MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 8 ++-- MdeModulePkg/Core/Pei/Memory/MemoryServices.c | 39 +++++++++++++++++++- MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c | 6 +-- MdeModulePkg/Core/PiSmmCore/Page.c | 4 +- MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 6 --- MdePkg/Include/AArch64/ProcessorBind.h | 6 +++ MdePkg/Include/Arm/ProcessorBind.h | 6 +++ MdePkg/Include/Ebc/ProcessorBind.h | 6 +++ MdePkg/Include/Ia32/ProcessorBind.h | 6 +++ MdePkg/Include/Ipf/ProcessorBind.h | 6 +++ MdePkg/Include/X64/ProcessorBind.h | 6 +++ 16 files changed, 100 insertions(+), 60 deletions(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Liming Gao