]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c
SecurityPkg OpalPassword: Add solution without SMM device code
authorStar Zeng <star.zeng@intel.com>
Sun, 11 Feb 2018 03:00:44 +0000 (11:00 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 8 Mar 2018 13:33:50 +0000 (21:33 +0800)
commit112e584ba0619695b7da3bb87604b3385ac2cb6d
tree47de64109184af94e79e1e242f8e67a636fc8ec4
parentd62cb7bb0c27f62373a9fb03680339f80c8fe1b3
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 <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
20 files changed:
SecurityPkg/SecurityPkg.dsc
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]