On Fri, 10 Jan 2025 at 14:57, Raymond Mao <raymond....@linaro.org> wrote: > > Get tpm event log from bloblist instead of FDT when bloblist is > enabled and valid from previous boot stage. > > As a fallback, when no event log from previous stage is observed > and no user buffer is passed, malloc a default buffer to initialize > the event log. > > Signed-off-by: Raymond Mao <raymond....@linaro.org> > --- > Changes in v2 > - Remove patch dependency. > - Remove the fallback to FDT when BLOBLIST is selected. > Changes in v3 > - Malloc an 8KB buffer when user eventlog buffer does not exist. > Changes in v4 > - Replace the default eventlog size with TPM2_EVENT_LOG_SIZE. > > lib/tpm_tcg2.c | 55 +++++++++++++++++++++++++++++++++----------------- > 1 file changed, 36 insertions(+), 19 deletions(-) >
Reviewed-by: Simon Glass <s...@chromium.org>