audk/MdeModulePkg/Core
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
..
Dxe MdeModulePkg/DxeCore: Call BeforeExitBootServices event group only once 2024-12-06 08:33:53 +08:00
DxeIplPeim MdeModulePkg/DxeIplPeim: Free scratch buffer after FV extraction 2024-12-06 10:17:16 +00:00
Pei MdeModulePkg: Replace right bit shift operator with RShiftU64 2024-10-17 13:32:42 +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