audk/MdeModulePkg/Core/DxeIplPeim
Phil Noh e508c6c08a MdeModulePkg/DxeIplPeim: Free scratch buffer after FV extraction
The scratch buffer (EfiBootServicesData) is assigned to extract DXE FVs
that are compressed. The matching decompression library returns the buffer
size as below. The buffer is no longer used after completing extraction.
Need to free the buffer to optimize memory allocation and usage.

BaseUefiDecompressLib : sizeof (SCRATCH_DATA)
LzmaCustomDecompressLib : SCRATCH_BUFFER_REQUEST_SIZE (64KB)
BrotliCustomDecompressLib : From EncodeData header (usually, xxMB checked)

In case of Brotli decompression, it is found that a big chunk of memory is
required, based on EncodeData header. (e.g. a 4MB compressed FV reports
about 39MB scratch size)

Signed-off-by: Phil Noh <Phil.Noh@amd.com>
2024-12-06 10:17:16 +00:00
..
Ia32 MedModulePkg/DxeIplPeim: Fix pagetable protection region in 5 level paging 2024-11-17 20:52:10 +00:00
X64 MedModulePkg/DxeIplPeim: Fix pagetable protection region in 5 level paging 2024-11-17 20:52:10 +00:00
DxeHandoff.c MdeModulePkg/DxeIpl: Use memory attribute PPI to remap the stack NX 2023-06-26 09:11:53 +00:00
DxeIpl.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeIpl.inf MdeModulePkg/DxeIpl ARM AARCH64: Switch to generic handoff code 2023-06-26 09:11:53 +00:00
DxeIpl.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeIplExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeLoad.c MdeModulePkg/DxeIplPeim: Free scratch buffer after FV extraction 2024-12-06 10:17:16 +00:00