Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: c5e702e45ad4e71e1bfc710c9db0826c1c893b18
      
https://github.com/tianocore/edk2/commit/c5e702e45ad4e71e1bfc710c9db0826c1c893b18
  Author: Michael D Kinney <[email protected]>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
    M MdeModulePkg/Core/Dxe/Image/Image.c

  Log Message:
  -----------
  MdeModulePkg/Core/Dxe: Initialize GCD before RT memory allocations

Update the DxeMain initialization order to initialize GCD
services before any runtime allocations are performed.  This
is required to prevent runtime data fragmentation when the
UEFI System Table and UEFI Runtime Service Table are allocated
before both the memory and GCD services are initialized.

Cc: Liming Gao <[email protected]>
Cc: Aaron Li <[email protected]>
Cc: Liu Yun <[email protected]>
Cc: Andrew Fish <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Signed-off-by: Michael D Kinney <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>


  Commit: af6e0e728f652f496a6fb1e659617c9662f774ac
      
https://github.com/tianocore/edk2/commit/af6e0e728f652f496a6fb1e659617c9662f774ac
  Author: Michael D Kinney <[email protected]>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M MdeModulePkg/Core/Dxe/DxeMain.h
    M MdeModulePkg/Core/Dxe/Gcd/Gcd.c
    M MdeModulePkg/Core/Dxe/Mem/Page.c
    M MdeModulePkg/Include/Guid/MemoryTypeInformation.h

  Log Message:
  -----------
  MdeModulePkg/Core/Dxe: Set MemoryTypeInfo bin range from HOB

Provide an optional method for PEI to declare a specific address
range to use for the Memory Type Information bins. The current
algorithm uses heuristics that tends to place the Memory Type
Information bins in the same location, but memory configuration
changes across boots or algorithm changes across a firmware
updates could potentially change the Memory Type Information bin
location. If the bin locations move across an S4 save/resume
cycle, then the S4 resume may fail. Enabling this feature
increases the number of scenarios that an S4 resume operation
may succeed.

If the HOB List contains a Resource Descriptor HOB that
describes tested system memory and has an Owner GUID of
gEfiMemoryTypeInformationGuid, then use the address range
described by the Resource Descriptor HOB as the preferred
location of the Memory Type Information bins. If this HOB is
not detected, then the current behavior is preserved.

The HOB with an Owner GUID of gEfiMemoryTypeInformationGuid
is ignored for the following conditions:
* The HOB with an Owner GUID of gEfiMemoryTypeInformationGuid
  is smaller than the Memory Type Information bins.
* The HOB list contains more than one Resource Descriptor HOB
  with an owner GUID of gEfiMemoryTypeInformationGuid.
* The Resource Descriptor HOB with an Owner GUID of
  gEfiMemoryTypeInformationGuid is the same Resource Descriptor
  HOB that that describes the PHIT memory range.

Cc: Liming Gao <[email protected]>
Cc: Aaron Li <[email protected]>
Cc: Liu Yun <[email protected]>
Cc: Andrew Fish <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Signed-off-by: Michael D Kinney <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/909a9a5ae4b8...af6e0e728f65


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to