mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
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 <eric.schikschneit@novatechautomation.com>
This commit is contained in:
parent
71f2564b17
commit
a22a4fbe43
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user