SecurityPkg OpalPassword: Add solution without SMM device code
authorStar Zeng <>
Sun, 11 Feb 2018 03:00:44 +0000 (11:00 +0800)
committerStar Zeng <>
Thu, 8 Mar 2018 13:33:50 +0000 (21:33 +0800)
SecurityPkg OpalPassword: Add solution without SMM device code

After IOMMU is enabled in S3, original solution with SMM device
code (OpalPasswordSmm) to unlock OPAL device for S3 will not work
as the DMA operation will be aborted without granted DMA buffer.
Instead, this solution is to add OpalPasswordPei to eliminate
SMM device code, and OPAL setup UI produced by OpalPasswordDxe
will be updated to send requests (set password, update password,
and etc), and then the requests will be processed in next boot
before SmmReadyToLock, password and device info will be saved to
lock box used by OpalPasswordPei to unlock OPAL device for S3.

Cc: Jiewen Yao <>
Cc: Eric Dong <>
Cc: Chao Zhang <>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <>
Reviewed-by: Jiewen Yao <>
20 files changed:
SecurityPkg/Tcg/Opal/OpalPassword/ComponentName.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalAhciMode.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalAhciMode.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiCallbacks.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormStrings.uni [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalNvmeMode.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalNvmeMode.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalNvmeReg.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordCommon.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordForm.vfr [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.h [new file with mode: 0644]
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.inf [new file with mode: 0644]