tpm: Add support for event log pointer found in TPM2 ACPI table
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 6 Jul 2020 23:58:07 +0000 (19:58 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 24 Jul 2020 06:29:21 +0000 (09:29 +0300)
commit85467f63a05c43364ba0b90d0c05bb89191543fa
tree5c8db1a982a73577303437b4f91e0bb5959de9db
parent18306111e65bb99b6ec676d51728bbfe85fdacae
tpm: Add support for event log pointer found in TPM2 ACPI table

In case a TPM2 is attached, search for a TPM2 ACPI table when trying
to get the event log from ACPI. If one is found, use it to get the
start and length of the log area. This allows non-UEFI systems, such
as SeaBIOS, to pass an event log when using a TPM2.

Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/eventlog/acpi.c