[PATCH v2 0/2] tpm: Add TPM2_GetTestResult command support

Ilias Apalodimas ilias.apalodimas at linaro.org
Thu Aug 10 11:10:43 CEST 2023


Hi Julia, 

On Wed, Aug 02, 2023 at 10:35:19AM +0200, Julia Daxenberger wrote:
> Add TPM2_GetTestResult command support and change the command file and the
> help accordingly. Add Python tests and sandbox driver functionality.
> 
> Currently, the tpm2_self_test function is implemented and can be called
> directly. The get_test_result function enables interested parties to
> retrieve the test result provided by the self test.
> 

Some of the TPM tests fail with these patches applied [0].  Can you please
take a look and fix those?

[0] https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/17277

Thanks
/Ilias

> ---
> Changes in v2:
> - Apply style changes suggested by Ilias Apalodimas
> <ilias.apalodimas at linaro.org>
> - Move test cases reliant on restart_uboot() to seperate patch in
> response to Simon Glass <sjg at chromium.org>
> - Change test result data to be read directly from the response
> - Fix minor style issues
> 
> Julia Daxenberger (2):
> tpm: Add TPM2_GetTestResult command support
> tpm: Add error scenarios to get_test_result test
> 
>  cmd/tpm-v2.c                   | 60 +++++++++++++++++++++
>  drivers/tpm/tpm2_tis_sandbox.c | 51 +++++++++++++++++-
>  include/tpm-v2.h               | 23 ++++++++
>  lib/tpm-v2.c                   | 97 ++++++++++++++++++++++++++++++++++
>  test/py/tests/test_tpm2.py     | 50 ++++++++++++++++
>  5 files changed, 280 insertions(+), 1 deletion(-)
> 


More information about the U-Boot mailing list