From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 EA3511A1DFE for ; Fri, 9 Sep 2016 03:48:47 -0700 (PDT) Received: by mail-wm0-x229.google.com with SMTP id w12so25637283wmf.0 for ; Fri, 09 Sep 2016 03:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=DJbYmzbsEsLm7lASdG2u2EJIxsVeb0hAgDUvYEVErFo=; b=VPjppkVBz/FPkLLg35gGYsGlZtu+EJSDIKspQHUZVYTHm2lGUmiD3vpm0yZuoDRf6e ARApomKm5WpWiQLOVdfwWq8fqSk06ttT73J1H6dBrLKXp2/Q7BA1meZu4DnzHCUFXAqF I0kQubjpEX9NMUwcgG3Z4gsGP/A03PP/6zvOg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DJbYmzbsEsLm7lASdG2u2EJIxsVeb0hAgDUvYEVErFo=; b=iG3OOixBtsTjj+csGQYS434wBhIWwuhcpf5wNE9eOpKuGmWue1fRfqSkp8WLztFC8e 3zyB1FLNd5UjP9Z5z3eCcKzNzPo1PMIhp5cp1Sgmc1EVjVXy1p/hjzjJaAABS0HFDz0n /CJf2vf6/xfbLyQMfIKZ0WIy+/x+fnGi64+U+Hev2HTthLw4xL7K5yp9ajM+k6JtrDBF bciTrkhCgoPiYvFoZM2m71mzR2GC9UMp9PPWfhBP3KAUYEhbIeEW5GL49mJJu8isiqSq FSLF4/xZb+rGBHk33tLV3fvQAQATf8NlmMMZkqBVFCrN4uwH4/e2i45lDEQTtvyJ4Tfw EkIw== X-Gm-Message-State: AE9vXwObz2Q4FhfIajMgOQfHeyxJlH+VnxVZkNLuVf/b7UGfcPxaApEwcvwx64geJj0cUFiM X-Received: by 10.28.46.204 with SMTP id u195mr2156804wmu.57.1473418126291; Fri, 09 Sep 2016 03:48:46 -0700 (PDT) Received: from localhost.localdomain ([105.190.180.180]) by smtp.gmail.com with ESMTPSA id z4sm2716580wmg.19.2016.09.09.03.48.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Sep 2016 03:48:45 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, eugene@hp.com Cc: heyi.guo@linaro.org, Ard Biesheuvel Date: Fri, 9 Sep 2016 11:48:36 +0100 Message-Id: <1473418120-31410-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v2 0/4] ArmPkg/ArmMmuLib: fixes and cleanups 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: , X-List-Received-Date: Fri, 09 Sep 2016 10:48:48 -0000 Patch #1 replaces the needlessly complex routine to determine the number of translation levels and the size and alignment of the root table based on the T0SZ setting. Patch #2 fixes the fix for allocating page aligned pages, which is a truism and as such does not require any special care to begin with. Patch #3 switches to a suitably aligned pool allocation for the root table if its size is much smaller than a page. Patch #4 makes the size of the VA space in the VM registers equal to the GCD memory map size. Ard Biesheuvel (4): ArmPkg/ArmMmuLib: deobfuscate GetRootTranslationTableInfo () ArmPkg/ArmMmuLib: remove bogus alignment of page allocations ArmPkg/ArmMmuLib: use a pool allocation for the root table ArmPkg/ArmMmuLib: base page table VA size on GCD memory map size ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 82 +++++++------------- ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf | 4 + ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf | 4 + 3 files changed, 38 insertions(+), 52 deletions(-) -- 2.7.4