tpm: add send_recv() op and use it in tpm_ftpm_tee driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tpm: add send_recv() op in tpm_class_opsdrivers/ include/ | +9 | 4 replies | |
| 2/2 | tpm/tpm_ftpm_tee: use send_recv() opdrivers/ drivers/ | +21 | 8 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jens Wiklander | Sumit Garg |
|---|---|---|
| 1/2 | ||
| 2/2 | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] tpm: add send_recv() op and use it in tpm_ftpm_tee driver
This series is a follow-up to the discussion we had about whether or not to add send_recv() op in tpm_class_ops[1].
Some devices do not support interrupts and provide a single operation to send the command and receive the response on the same buffer. In order to simplify these drivers and avoid temporary buffers to be used between the .send() and .recv() callbacks, introduce a new callback send_recv(). This was suggested by Jason Gunthorpe while reviewing the new SVSM vTPM driver, but the same callback can be used also for the fTPM driver to simplify it a bit (second patch of this series).
The RFC version of this series also contained changes to the SVSM vTPM driver (still under review). Those changes will be integrated directly into that series if we decide to merge this.
Changelog
- RFC -> v1
RFC: https://lore.kernel.org/linux-integrity/[email protected]/
- added Jens' T-b on ftpm driver
- removed last patch since [2] is not yet merged and will require a new version
[1] https://lore.kernel.org/linux-integrity/[email protected]/
[2] https://lore.kernel.org/linux-integrity/[email protected]/
Stefano Garzarella (2):
tpm: add send_recv() op in tpm_class_ops
tpm/tpm_ftpm_tee: use send_recv() op
drivers/char/tpm/tpm_ftpm_tee.h | 4 -- include/linux/tpm.h | 2 + drivers/char/tpm/tpm-interface.c | 7 +++ drivers/char/tpm/tpm_ftpm_tee.c | 86 ++++++++------------------------ 4 files changed, 30 insertions(+), 69 deletions(-)
11,841 lines not shown · raw message
Part of this message is not shown here. View the raw message.