mbox series

Pull request for tpm-for_tom-13062023

Message ID 20230613080253.624151-1-ilias.apalodimas@linaro.org
State New
Headers show
Series Pull request for tpm-for_tom-13062023 | expand

Pull-request

https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-for_tom-13062023

Message

Ilias Apalodimas June 13, 2023, 8:02 a.m. UTC
Hi Tom,

The following changes since commit 260d4962e06c0a7d2713523c131416a3f70d7f2c:

  Merge tag v2023.07-rc4 into next (2023-06-12 14:55:33 -0400)

are available in the Git repository at:

  https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-for_tom-13062023

for you to fetch changes up to 011f015540d788227a1a2d16dd6245120827bdec:

  test/py: Account PCR updates properly during testing (2023-06-13 08:51:07 +0300)

The CI https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/16574
showed no issues

----------------------------------------------------------------
In order to initialize a tpm device we usually need the following
command sequence
- tpm init
- tpm startup TPM2_SU_CLEAR
- tpm2 self_test full

A few months ago we added a tpm_autostart() function which wraps
that in a single function and always initializes the tpm correctly.
We can now provide a command line for that function and simplify
our CLI.
----------------------------------------------------------------
Ilias Apalodimas (3):
      tpm: Add 'tpm autostart' shell command
      test/py: replace 'tpm2 init, startup, selftest' sequences
      test/py: Account PCR updates properly during testing

 cmd/tpm-common.c           | 16 ++++++++++++++++
 cmd/tpm-user-utils.h       |  1 +
 cmd/tpm-v1.c               |  6 +++++-
 cmd/tpm-v2.c               |  6 ++++++
 test/py/tests/test_tpm2.py | 19 ++++++++-----------
 5 files changed, 36 insertions(+), 12 deletions(-)

Comments

Tom Rini June 13, 2023, 7:41 p.m. UTC | #1
On Tue, Jun 13, 2023 at 11:02:53AM +0300, Ilias Apalodimas wrote:

> Hi Tom,
> 
> The following changes since commit 260d4962e06c0a7d2713523c131416a3f70d7f2c:
> 
>   Merge tag v2023.07-rc4 into next (2023-06-12 14:55:33 -0400)
> 
> are available in the Git repository at:
> 
>   https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/tpm-for_tom-13062023
> 
> for you to fetch changes up to 011f015540d788227a1a2d16dd6245120827bdec:
> 
>   test/py: Account PCR updates properly during testing (2023-06-13 08:51:07 +0300)
> 
> The CI https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/16574
> showed no issues
> 

Applied to u-boot/next, thanks!