Luca Boccassi 9a725391f1 commands/efi/tpm: Call get_active_pcr_banks() only with TCG2 1.1 or newer
The call was added in the 1.1 revision of the spec, 1.0 does
not have it, and there are some machines out there with a TPM2
and a UEFI firmware that only supports version 1.0, so the
call fails in those cases. Check the reported version before
calling get_active_pcr_banks().

See Table 4 in section 6.2 of the TCG EFI Protocol Specification:

  https://trustedcomputinggroup.org/wp-content/uploads/EFI-Protocol-Specification-rev13-160330final.pdf

Fixes: f326c5c47 (commands/bli: Set LoaderTpm2ActivePcrBanks runtime variable)

Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Reviewed-by: Andrew Hamilton <adhamilt@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-10-11 15:36:54 +02:00
..
2013-12-21 03:03:31 +01:00
2022-03-14 15:44:26 +01:00
2022-03-14 15:44:26 +01:00
2015-01-24 20:52:02 +01:00
2022-03-14 15:44:26 +01:00
2022-03-14 15:44:26 +01:00
2022-03-14 15:44:26 +01:00
2015-12-15 10:25:34 +03:00
2022-03-14 15:44:26 +01:00
2023-07-03 14:10:01 +02:00
2025-05-06 17:14:04 +02:00
2012-02-12 15:25:25 +01:00