summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schikschneit <[email protected]>2025-07-24 11:31:56 -0500
committerTom Rini <[email protected]>2026-02-03 12:51:31 -0600
commita22a4fbe437b85a5b7f4b601dbd0e273e95fca4e (patch)
tree18a683d9fba176c5045d6e6c7385127f442625b2
parent71f2564b178f3986dc89cdaa4558f0caa74fd88c (diff)
x86: Fix TCPA bloblist size
Excessive default value causes crash on hardware: x86 baytrail E3845 It is unclear where the data is being populated being 'BLOBLISTT_TCPA_LOG' is not found elsewhere in the u-boot tree. This leads to confusion about how much space for TPM log is actually needed. This was tested on hardware using TPMv1. Signed-off-by: Eric Schikschneit <[email protected]>
-rw-r--r--arch/x86/lib/acpi_table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
index 6bd7ad799bf..c86bfa3dd1f 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -144,7 +144,7 @@ int acpi_write_tcpa(struct acpi_ctx *ctx, const struct acpi_writer *entry)
struct acpi_table_header *header;
struct acpi_tcpa *tcpa;
u32 current;
- int size = 0x10000; /* Use this as the default size */
+ int size = 1500; /* Use this as the default size */
void *log;
int ret;
@@ -165,7 +165,6 @@ int acpi_write_tcpa(struct acpi_ctx *ctx, const struct acpi_writer *entry)
ret = bloblist_ensure_size_ret(BLOBLISTT_TCPA_LOG, &size, &log);
if (ret)
return log_msg_ret("blob", ret);
-
tcpa->platform_class = 0;
tcpa->laml = size;
tcpa->lasa = nomap_to_sysmem(log);