edk2/MdeModulePkg/Core/Dxe
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
..
Dispatcher MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DxeMain MdeModulePkg/Core/Dxe: Initialize GCD before RT memory allocations 2024-01-30 18:30:02 +00:00
Event MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FwVol MdeModulePkg/Core/Dxe: Fix memory leak issue in FwVol.c 2023-09-11 02:17:51 +00:00
FwVolBlock MdeModulePkg/Core/Dxe: Fix memory leak issue in FwVolBlock.c 2023-09-11 02:17:51 +00:00
Gcd MdeModulePkg: Gcd: Only Update gMemoryMap Attributes if Correct GCD Type 2024-08-29 12:30:12 +00:00
Hand MdeModulePkg: Optimize CoreConnectSingleController 2024-02-06 17:54:53 +00:00
Image MdeModulePkg: Dxe: add LOONGARCH64 to mMachineTypeInfo 2024-02-02 01:52:58 +00:00
Library MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Mem MdeModulePkg: Remove EFI_MEMORY_* Defines 2024-07-26 03:08:20 +00:00
Misc MdeModulePkg: MAT Set RO/XP on Code/Data Sections Outside Image Memory 2024-08-29 08:47:26 +00:00
SectionExtraction MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DxeCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeMain.h MdeModulePkg/Core/Dxe: Set MemoryTypeInfo bin range from HOB 2024-01-30 18:30:02 +00:00
DxeMain.inf MdeModulePkg: Move Some DXE MAT Logic to ImagePropertiesRecordLib 2023-11-27 18:55:18 +00:00