[SLOF] [PATCH v3 0/2] Implement 2 missing TPM related firmware API calls

Stefan Berger stefanb at linux.vnet.ibm.com
Tue Oct 29 23:49:32 AEDT 2024


From: Stefan Berger <stefanb at linux.ibm.com>

This series implements 2 missing TPM related firmware API calls. One is to
get the maximum TPM command size and the other one allows passing a TPM
command through to the TPM. These calls will be used by ppc64-enablement of
the following grub series where grub calls similar API calls in the x86
firmware:

https://lore.kernel.org/grub-devel/qurvz3ceq5fwbbq6c3u6xpmbsjbxnvoqg2tyqq47rdfaemwbl2@mgqwgv5ik445/T/#t 

Regards,
   Stefan

v3:
  - Corrected passthrough function parameter 'bufsize' to 'cmd_size'
  - Check length indicated inside buffer against cmd_size parameter

v2:
  - Added explanation what the API calls will be used for
  - Improved commit messages

Stefan Berger (2):
  tpm: Implement firmware API call get-maximum-cmd-size
  tpm: Implement firmware API call pass-through-to-tpm

 board-qemu/slof/vio-vtpm-cdriver.fs | 19 ++++++++++++++++++
 lib/libtpm/tcgbios.c                | 30 +++++++++++++++++++++++++++++
 lib/libtpm/tcgbios.h                |  2 ++
 lib/libtpm/tpm.code                 | 21 ++++++++++++++++++++
 lib/libtpm/tpm.in                   |  2 ++
 5 files changed, 74 insertions(+)

-- 
2.25.1



More information about the SLOF mailing list