edk2/MdeModulePkg/Core
Jeff Brasen ca8de19382 MdeModulePkg: MemoryBins: make GoogleTest page-granularity aware
MemoryBinGoogleTest.PopulatesFromValidHob asserted fixed page counts for
each memory type.  PopulateMemoryTypeInformation, however, rounds the
runtime memory types (EfiReservedMemoryType, EfiACPIMemoryNVS,
EfiRuntimeServicesCode, EfiRuntimeServicesData) up to
RUNTIME_PAGE_ALLOCATION_GRANULARITY.  That granularity equals EFI_PAGE_SIZE
on IA32/X64, so the hard-coded values happened to match, but it is 64 KiB
on AArch64, where the same inputs round up to different page counts and the
test failed.

Compute the expected page counts with the same granularity rounding the
production code uses, so the test passes on all host architectures instead
of only x86.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
2026-07-31 15:16:47 +00:00
..
Dxe MdeModulePkg: MemoryBins: make GoogleTest page-granularity aware 2026-07-31 15:16:47 +00:00
DxeIplPeim MdeModulePkg: DxeIpl IA32: Use 256 IDT Entries 2026-03-07 03:58:40 +00:00
Pei MdeModulePkg: PeiCore: Add Memory Bin Support to Post-Mem PEI 2026-06-24 15:53:58 +00:00
PiSmmCore MdeModulePkg: Remove duplicate procotols guid in INF files 2026-04-29 11:18:10 +02:00
PrivateInclude MdeModulePkg: Dxe Core: Split Memory Bin Logic Into Separate File 2026-06-24 15:53:58 +00:00
RuntimeDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
MemoryBins.md MdeModulePkg: MemoryBins: Add GoogleTest and README 2026-06-24 15:53:58 +00:00