OvmfPkg: detect TPM 1.2 in Tcg2ConfigPei
Complement commit 6cf1880fb5
("OvmfPkg: add customized Tcg2ConfigPei
clone", 2018-03-09) by detecting TPM 1.2 devices.
Since Tpm12RequestUseTpm() returns success on any TPM interface,
(including FIFO & CRB which are TPM 2.0), try to send a GetTicks TPM
1.2 command to probe the version. In case of failure, fallback on TPM
2.0 path.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-Id: <20200226152433.1295789-3-marcandre.lureau@redhat.com>
Tested-by: Simon Hardy <simon.hardy@itdev.co.uk>
This commit is contained in:
committed by
mergify[bot]
parent
07952a962a
commit
8923699291
@@ -32,11 +32,14 @@
|
||||
PeimEntryPoint
|
||||
DebugLib
|
||||
PeiServicesLib
|
||||
Tpm12CommandLib
|
||||
Tpm12DeviceLib
|
||||
Tpm2DeviceLib
|
||||
|
||||
[Guids]
|
||||
gEfiTpmDeviceSelectedGuid ## PRODUCES ## GUID # Used as a PPI GUID
|
||||
gEfiTpmDeviceInstanceTpm20DtpmGuid ## SOMETIMES_CONSUMES
|
||||
gEfiTpmDeviceInstanceTpm12Guid ## SOMETIMES_CONSUMES
|
||||
|
||||
[Ppis]
|
||||
gPeiTpmInitializationDonePpiGuid ## SOMETIMES_PRODUCES
|
||||
|
Reference in New Issue
Block a user