diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-10-18 16:14:24 -0600 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-10-19 14:40:09 +0000 |
commit | 3b9be63bd32daff1083f38b409beab71f2655b4f (patch) | |
tree | c0f110a648c0b20a3eff0fa886581b63bfcc25ed /src/arch | |
parent | 3c1c90bf6107f34cf35e66dc92762ba02799e9ff (diff) |
arch/x86: Increase MAX_SMBIOS_SIZE
With the recent addition of SMBIOS table 20, the cbmem area on
google/brya0 overflows and
ERROR: Increase SMBIOS size
SMBIOS tables: 2128 bytes.
is seen in the logs.
Therefore, double the size of the SMBIOS area from 2 KiB to 4 KiB to
accomodate more tables as needed. This happens during ramstage so 2k
is not a big deal at this point.
Change-Id: I43aa6a88d176e783cc9a4441b35b8d608c4101cd
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58432
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/tables.c b/src/arch/x86/tables.c index 492674c5a9..09ec0eaaa3 100644 --- a/src/arch/x86/tables.c +++ b/src/arch/x86/tables.c @@ -143,7 +143,7 @@ static unsigned long write_smbios_table(unsigned long rom_table_end) { unsigned long high_table_pointer; -#define MAX_SMBIOS_SIZE 2048 +#define MAX_SMBIOS_SIZE (4 * KiB) high_table_pointer = (unsigned long)cbmem_add(CBMEM_ID_SMBIOS, MAX_SMBIOS_SIZE); |