From: Pawel R. <paw...@in...> - 2022-12-22 15:13:09
|
changeset b06289220ef8 in /hg/p/tboot/code details: http://hg.code.sf.net/p/tboot/code/code?cmd=changeset;node=b06289220ef8 description: Extend low memory range reserved for logs Some platforms with higher core count had the issue of logs overflowing the memory range reserved for them, and thus overwriting themselves, leaving just a bit of last lines of logs to be later read. Before range was 32KB, now it is 200KB which HOPEFULLY won't need further extensions WARNING: This patch causes logs to be unreadable with older versions of txt-stat. If you're using TBOOT with this patch, please swap your txt-stat for the one built with this patch too. diffstat: include/config.h | 2 +- include/tboot.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diffs (24 lines): diff -r 5780c959ab11 -r b06289220ef8 include/config.h --- a/include/config.h Wed Oct 05 14:23:58 2022 +0200 +++ b/include/config.h Mon Dec 12 11:31:41 2022 +0100 @@ -56,7 +56,7 @@ /* address/size for memory-resident serial log (when enabled) */ #define TBOOT_SERIAL_LOG_ADDR TBOOT_LOWMEM_START -#define TBOOT_SERIAL_LOG_SIZE 0x08000 +#define TBOOT_SERIAL_LOG_SIZE 0x32000 /* address/size for modified e820 table */ #define TBOOT_E820_COPY_ADDR (TBOOT_SERIAL_LOG_ADDR + \ diff -r 5780c959ab11 -r b06289220ef8 include/tboot.h --- a/include/tboot.h Wed Oct 05 14:23:58 2022 +0200 +++ b/include/tboot.h Mon Dec 12 11:31:41 2022 +0100 @@ -131,7 +131,7 @@ #define ZIP_COUNT_MAX 10 typedef struct { uuid_t uuid; - uint16_t max_size; + uint32_t max_size; uint16_t curr_pos; uint16_t zip_pos[ZIP_COUNT_MAX]; uint16_t zip_size[ZIP_COUNT_MAX]; |