mbox series

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

Message ID 20241029124934.3167208-1-stefanb@linux.vnet.ibm.com
Headers show
Series Implement 2 missing TPM related firmware API calls | expand

Message

Stefan Berger Oct. 29, 2024, 12:49 p.m. UTC
From: Stefan Berger <stefanb@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(+)