edk2/MdeModulePkg/Core/Dxe/Mem
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
..
GoogleTest MdeModulePkg: MemoryBins: make GoogleTest page-granularity aware 2026-07-31 15:16:47 +00:00
HeapGuard.c MdeModulePkg: Don't Allow Guard Pages to Cross Bin Boundaries 2026-04-23 02:42:12 +00:00
HeapGuard.h MdeModulePkg: Don't Allow Guard Pages to Cross Bin Boundaries 2026-04-23 02:42:12 +00:00
Imem.h MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
MemData.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryBin.c MdeModulePkg: Dxe Core: Split Memory Bin Logic Into Separate File 2026-06-24 15:53:58 +00:00
MemoryProfileRecord.c MdeModulePkg: Fix missing NULL tests. 2025-11-22 18:58:47 +00:00
Page.c MdeModulePkg: Dxe Core: Correct gMemoryTypeInformation Definition 2026-07-09 12:46:51 +00:00
Pool.c MdeModulePkg: Fix missing NULL tests. 2025-11-22 18:58:47 +00:00