[PATCH] acpi: Recognize Pluton TPM
Mario Limonciello
mario.limonciello at amd.com
Tue Sep 19 18:51:51 UTC 2023
Pluton TPM uses start method 0xd and is supported by the TPM CRB driver.
This shouldn't cause a test failure.
```
tpm2: TPM2's Start Method must be between one to eleven, got 0xd
```
Link: https://github.com/torvalds/linux/blob/v6.5/include/acpi/actbl3.h#L446
Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
---
src/acpi/tpm2/tpm2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/acpi/tpm2/tpm2.c b/src/acpi/tpm2/tpm2.c
index 02147d18..8d9cc9f1 100644
--- a/src/acpi/tpm2/tpm2.c
+++ b/src/acpi/tpm2/tpm2.c
@@ -51,11 +51,11 @@ static int tpm2_test1(fwts_framework *fw)
fwts_acpi_reserved_zero("TPM2", "Reserved", tpm2->reserved, &passed);
- if (tpm2->start_method < 1 || tpm2->start_method >= 12) {
+ if (tpm2->start_method < 1 || tpm2->start_method >= 14) {
passed = false;
fwts_failed(fw, LOG_LEVEL_HIGH,
"TPM2BadStartMethod",
- "TPM2's Start Method must be between one to eleven, got 0x%" PRIx16,
+ "TPM2's Start Method must be between 0x1 and 0xd, got 0x%" PRIx16,
tpm2->start_method);
}
--
2.34.1
More information about the fwts-devel
mailing list