Skip to content

[Feature]: Add support for using a pre-DXE defined memory bin region #1175

@makubacki

Description

@makubacki

Feature Overview

Commit tianocore/edk2@af6e0e7 added support to the edk2 DXE Core for using a fixed memory region for all Memory Type Information bin allocations.

If the HOB list contains a Resource Descriptor HOB with an Owner GUID of gEfiMemoryTypeInformationGuid and it is marked as tested system memory, the memory region will be used as the preferred location for the bins. If the Resource Descriptor HOB is not present, the current behavior is retained where DXE allocates the bins based on the sizes reported in the gEfiMemoryTypeInformationGuid GUID HOB.

Solution Overview

Ensure consistency with the edk2 solution to provide a pathway for PEI managed bin allocations and to simplify memory bin management for platforms.

Note that 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.

Alternatives Considered

No response

Urgency

Low

Are you going to implement the feature request?

Someone else needs to implement the feature

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions