audk/MdeModulePkg/Core
Oliver Smith-Denny 01735bbe4a MdeModulePkg: Gcd: Only Update gMemoryMap Attributes if Correct GCD Type
Currently whenever gDS->SetMemorySpaceCapabilities() is called, it
attempts to set the corresponding attributes in the gMemoryMap
descriptor. However, gMemoryMap only contains entries from GCD types
EfiGcdMemoryTypeSystemMemory and EfiGcdMemoryTypeMoreReliable, so
for all other types a failure is reported in the code. This is a
failure that is expected, so it does not provide value and can
lead to real failures being ignored.

This patch updates the gDS->SetMemorySpaceCapabilities() code to
only call into updating gMemoryMap if the GCD type is SystemMemory
or MoreReliable, to avoid spurious errors being reported. This
also avoids the expensive operation of searching through gMemoryMap
for entries we know we will fail to find.

Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
2024-08-29 12:30:12 +00:00
..
Dxe MdeModulePkg: Gcd: Only Update gMemoryMap Attributes if Correct GCD Type 2024-08-29 12:30:12 +00:00
DxeIplPeim MdeModulePkg/Core/DxeIplPeim: Enhance Code in DxeIplFindDxeCore Function 2024-07-17 05:46:12 +00:00
Pei MdeModulePkg: Optimize PEI Core Migration Algorithm 2024-07-30 13:51:41 +00:00
PiSmmCore MdeModulePkg/SmiHandlerProfileInfo: Include profile SMI in profile 2024-07-18 19:22:36 +00:00
RuntimeDxe MdeModulePkg: Align RuntimeDxe function headers with UEFI return values 2024-02-09 22:16:32 +00:00