edk2/MdeModulePkg
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
..
Application MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Bus MdeModulePkg/UsbBusDxe: Fix UsbPortReset might run into recursive loop 2026-07-31 10:54:54 +00:00
Core MdeModulePkg: MemoryBins: make GoogleTest page-granularity aware 2026-07-31 15:16:47 +00:00
Include MdeModulePkg/GptLib: Extract shareable GPT parser into a library 2026-07-20 21:50:57 +00:00
Library MdeModulePkg: Fix missing NULL tests 2026-07-30 19:10:07 +00:00
Logo MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Test MdeModulePkg: Host Test: Adding AArch64 target 2026-07-31 15:16:47 +00:00
Universal MdeModulePkg/HiiDatabaseDxe: Fix potential intrinsic error 2026-07-31 01:16:29 +00:00
MdeModulePkg.ci.yaml Global: Set MarkdownLintCheck plugin to AuditOnly 2026-07-29 12:32:09 +00:00
MdeModulePkg.dec MdeModulePkg: Bump the default SMBIOS version to 3.8 2026-07-21 00:02:39 +00:00
MdeModulePkg.dsc MdeModulePkg/GptLib: Extract shareable GPT parser into a library 2026-07-20 21:50:57 +00:00
MdeModulePkg.uni MdeModulePkg: Add platform limit for size in Resizable BAR 2026-02-25 03:40:14 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00