Newer
Older
AMI-Aptio-BIOS-Reversed / MePolicyInitPei / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Init

MePolicyInitPei

Field Value
Index 0376
Module MePolicyInitPei
PE Size 12,000 bytes
Phase PEI (Pre-EFI Initialization)
Sections .text / .rdata / .data / .reloc
Arch IA-32 (0x014C)
SHA256 c1915dea8c0748752fd02c4c8fef7e7ac9a3fccabda5

Overview

MePolicyInitPei initializes and installs the Management Engine (ME) and SPS (Server Platform Services) policy PPIs during the PEI phase. It detects the ME type (on-board vs. discrete), reads ME variable data from HOBs, applies default policy values, and installs the resulting ME and SPS policy PPIs for use by subsequent PEIMs and the DXE phase. The module also supports dumping and verification of policy contents for debugging.

Key Functions

  • MePolicyInitPeiEntryPoint -- Main entry point; allocates policy buffers, initializes defaults, installs PPIs
  • InstallMePolicyPpi -- Installs the ME policy PPI
  • InstallSpsPolicyPpi -- Installs the SPS policy PPI
  • InitMePolicyDefaults -- Sets default ME configuration values
  • DetectMeType -- Determines whether ME is on-board or discrete
  • UpdateMePolicyFromMeVariable / UpdateSpsPolicyFromMeVariable -- Applies variable overrides to policies
  • GetMeVariableData / GetMeFs1FromHob -- Retrieves ME firmware data from HOBs
  • DumpMeConfigPolicy / DumpMePolicyPpi -- Debug output of policy contents
  • AutoConfigDeviceSetting -- Automatic device configuration based on ME type

Dependencies

  • MdePkg (BaseMemoryLib, BaseLib)
  • PEI Services (HOB traversal, PPI installation, PCD access)
  • PCI Express configuration space access (PCH)
  • ME firmware HOB interface

Platform

Intel Purley platform, Lenovo HR650X server.