Pull request for tpm-030822

Ilias Apalodimas ilias.apalodimas at linaro.org
Fri Aug 5 08:11:51 CEST 2022


Hi Tom,

The following changes since commit 707b17f64e71fad1615ea25082f2e928f712e366:

  MAINTAINERS: Change POWERPC MPC85XX maintainer to Marek Behún (2022-08-01 10:08:43 -0400)

are available in the Git repository at:

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

for you to fetch changes up to de70619dd3db08e4a1ac881801d3fab979408fd3:

  test: rng: Add a UT testcase for the rng command (2022-08-02 23:50:02 +0300)

CI: https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/13023

Please pull

Thanks
/Ilias

----------------------------------------------------------------
TPM devices generally have a builtin RNG. When booting via EFI the 
Linux kernel relies on EFI_RNG_PROTOCOL for enabling KASLR.

Adjust the driver model and expose functions to retrieve a random number.
With the above changes the EFI subsystem can install the EFI_RNG_PROTOCOL
even if the target hardware only has a TPM, but no other RNG.

----------------------------------------------------------------
Ilias Apalodimas (1):
      efi_loader: initialize the RNG protocol after the TCC2

Simon Glass (1):
      tpm: Export the TPM-version functions

Sughosh Ganu (6):
      tpm: rng: Add driver model interface for TPM RNG device
      tpm: Add the RNG child device
      cmd: rng: Add support for selecting RNG device
      cmd: rng: Use a statically allocated array for random bytes
      doc: rng: Add documentation for the rng command
      test: rng: Add a UT testcase for the rng command

 cmd/Kconfig                |  1 +
 cmd/rng.c                  | 42 +++++++++++++-------
 doc/usage/cmd/rng.rst      | 26 ++++++++++++
 doc/usage/index.rst        |  1 +
 drivers/rng/Kconfig        |  9 +++++
 drivers/rng/Makefile       |  1 +
 drivers/rng/tpm_rng.c      | 23 +++++++++++
 drivers/tpm/tpm-uclass.c   | 40 ++++++++++++++++---
 include/tpm_api.h          | 10 +++++
 lib/Kconfig                |  1 +
 lib/efi_loader/efi_setup.c | 14 +++----
 lib/tpm_api.c              | 98 +++++++++++++++++++++-------------------------
 test/dm/rng.c              | 29 ++++++++++++++
 13 files changed, 213 insertions(+), 82 deletions(-)
 create mode 100644 doc/usage/cmd/rng.rst
 create mode 100644 drivers/rng/tpm_rng.c


More information about the U-Boot mailing list