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

MemRas, 0173, 983 KB, DXE

Memory RAS (Reliability, Availability, Serviceability) driver implementing system address-to-physical address translation for error handling and memory sparing. Manages a complete address translation pipeline (SAD/SAD -> TAD -> Channel -> RIR -> Rank), patrol scrubbing, rank sparing state machine, memory migration, and S3 boot script save. Hooks platform RAS policy, CPU CSR access, and MCE events.

Key Functions: TranslateSAD (System Address Decoder routing), TranslateRIR (Rank Interleave Register), ReverseAddressTranslate (physical -> system address), SpareRank/SpareCopy (rank sparing state machine), HandlePatrolCompleteEventForNode (patrol scrub orchestration), GetFailedDimmErrorInfo (error logging), S3BootScriptSave, DisableMemoryMigration/SetupMemoryMigration.

Protocols/Dependencies: MEM_RAS_PROTOCOL (produces), Platform RAS Policy Protocol, CPU CSR Access Protocol, SMM Communication Protocol, IPMI/Error Reporting Library, OemRasLib, Platform RAS Init Library, Variable Protocol.

Platform: Intel Purley (Skylake-SP) / HR650X server, PurleySktPkg/Dxe/MemRas/MemRas