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

PchInitSmm

Index

0183

Size

B184h (45,444 bytes)

Phase

DXE SMM (System Management Mode driver)

Source Package

PurleySktPkg/SouthClusterLbg/PchInit/Smm

Overview

PchInitSmm is the PCH (Platform Controller Hub) SMM initialization driver for the Lewisburg (LBG) PCH on the Purley platform. It handles SMM-side initialization of PCH subsystems including PCIe root ports, BIOS write protection, eSPI, LPC, and power management. This driver registers SMI handlers for PCH events and manages S3 resume state restoration for PCH registers.

Key Functions

  • ModuleEntryPoint (0x4F4): Entry point; initializes PCH SMM context and registers SMI dispatch handlers.
  • sub_5A8: Main PCH SMM initialization; configures PCH hardware blocks and restores register state on S3 resume.
  • sub_101C: PCIe SMM initialization handler for PCH-attached root ports.
  • sub_3A70 (14 callees): Boot script save operations for S3 resume path.
  • sub_319C: BIOS Write Protect (BWP) SMM handler management.
  • sub_2C18: PCH cycle decoding configuration in SMM context.

Source Files Referenced

  • PchInitSmm.c (main entry)
  • PchPort61hSmm.c (Port 61h handling)
  • PchBiosWriteProtect.c (BWP management)
  • PchPcieSmm.c (PCIe SMM)
  • PeiDxeSmmPchPciExpressHelpersLib (PCIe config helpers)
  • PeiDxeSmmPchInfoLib (PCH identification)
  • PeiDxeSmmPchCycleDecodingLib (cycle decoding)

Platform

Intel Purley with Lewisburg PCH (HR650X server platform)