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

PlatformErrorHandler

Index: 0217 | Size: 44,388 bytes (177,536 body) | Phase: DXE/SMM

Overview

SMM platform error handler for the Intel Purley platform, responsible for RAS (Reliability, Availability, Serviceability) error management. Initializes EMCA (Enhanced Machine Check Architecture) platform hooks, populates RAS topology structures (SMBIOS Type 16/17), configures FPGA error handling policies from UEFI setup variables, registers SMM software dispatch callbacks for error notification, and manages per-socket error tracking via linked callbacks.

Key Functions

  • ModuleEntryPoint -- DXE/SMM dual-mode entry, calls library constructors then main init
  • sub_3550 -- Main initialization: reads RAS topology from HOB, reads Setup variables, registers SMM SW dispatch handlers
  • sub_3970 -- Core logic: reads RAS topology, applies error policy from setup, initializes EMCA platform hooks
  • sub_3810/sub_3844 -- Callback dispatch: iterates registered notification callbacks for error event delivery
  • sub_36B8 -- RegisterErrorNotificationCallback: priority-sorted linked list registration
  • sub_35C8 -- RegisterErrorSource: linked list registration

Protocols/Dependencies

  • EMCA Platform Protocol ({F4CCBFB7-...}), SMM MC Bank Protocol
  • SMM IPMI Transport Protocol, SMM Variable Protocol
  • SMM SW Dispatch2 Protocol, FPGA Configuration HOB

Platform

Intel Purley (Skylake-SP Xeon), HR650X
Source: PurleyPlatPkg/Ras/Smm/ErrHandling/PlatformErrorHandler/