]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg: reduce preallocation of boot services data pages
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 22 Sep 2015 15:50:30 +0000 (15:50 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 22 Sep 2015 15:50:30 +0000 (15:50 +0000)
Commit SVN r18503 ("MdeModulePkg DxeCore: Take the range in resource
HOB for PHIT as higher priority") changed the GCD init logic to take
the sum of the region sizes in gMemoryTypeInformation[] into account
when estimating the minimal amount of memory needed to boot the system.

Unfortunately, as an unintended side effect, this change results in boot
failures of ArmVirtQemu when running with QEMU's default memory size of
128 MB. The reason is that the sum of the gMemoryTypeInformation region
sizes plus the size of the inital PEI region exceeds 128 MB. Since we do
not actually need to preallocate 20,000 pages' worth of BootServicesData
memory, reduce this figure to the more reasonable 12,000.

Reported-by: Mark Rutland <mark.rutland@arm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18533 6f19259b-4bc3-4df7-8a09-765794883524

ArmVirtPkg/ArmVirt.dsc.inc

index bc308f52713096f14c0bfc1bac144c40c5b9b02b..0e7a1098a380e634763fcf0e88259db3c5b8018c 100644 (file)
   gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150\r
   gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000\r
 !endif\r
-  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000\r
+  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000\r
   gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20\r
   gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0\r
 \r