Skip to content

tpm: Add new vTPM device driver for PPC64

Ashley Lai linuxppc-dev lkml 3 versions – In review

Get series with b4
b4 am 1344986638.4430.22.camel@footlong

Versions newest first · linked by author and title

  1. v3 Latest3 patches 8 repliesIn review
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Replaced TPM_NO_EVENT_LOG macro with stubs
- Removed tpm_noeventlog.c file
- Called of_node_put() before return in tpm_of.c

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drivers/char/tpm: Add new device driver to support IBM vTPMdrivers/char/tpm/Kconfig drivers/char/tpm/Makefile drivers/char/tpm/tpm.h +2 more+842 -00 replies
1/3drivers/char/tpm: Add new device driver to support IBM vTPMdrivers/char/tpm/Kconfig drivers/char/tpm/Makefile drivers/char/tpm/tpm.h +2 more+836 -013 replies
2/3PPC64: Add support for instantiating SML from Open Firmwarearch/powerpc/kernel/prom_init.c+62 -00 replies
3/3drivers/char/tpm: Add securityfs support for event logdrivers/char/tpm/Makefile drivers/char/tpm/tpm.h drivers/char/tpm/tpm_eventlog.h +1 more+93 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/3] tpm: Add new vTPM device driver for PPC64

Change log V3:
- Replaced TPM_NO_EVENT_LOG macro with stubs
- Removed tpm_noeventlog.c file
- Called of_node_put() before return in tpm_of.c

Change log V2:
- Removed unnecessary tpm_bios_log_setup and tpm_bios_log_teardown functions in tpm_eventlog.h (patch 3/3).
- Added more descriptions on vTPM (patch 1/3).

These patches add support for IBM vTPM for PPC64. This new device driver works on firmware that supports vTPM (firmware release 740 or higher).

Tested on Power7+ system with firmware level ZM770_001.

Applied to Kent Yoder tree at:
https://github.com/shpedoikal/linux/tree/v3.6-rc1-tpmdd-staging

Ashley Lai (3):
drivers/char/tpm: Add new device driver to support IBM vTPM
PPC64: Add support for instantiating SML from Open Firmware drivers/char/tpm: Add securityfs support for event log

 arch/powerpc/kernel/prom_init.c |   62 ++++
 drivers/char/tpm/Kconfig        |    8 +
 drivers/char/tpm/Makefile       |    6 +
 drivers/char/tpm/tpm.h          |   13 +-
 drivers/char/tpm/tpm_eventlog.h |   15 +
 drivers/char/tpm/tpm_ibmvtpm.c  |  749 +++++++++++++++++++++++++++++++++++++++
 drivers/char/tpm/tpm_ibmvtpm.h  |   83 +++++
 drivers/char/tpm/tpm_of.c       |   73 ++++
 8 files changed, 997 insertions(+), 12 deletions(-)
 create mode 100644 drivers/char/tpm/tpm_ibmvtpm.c
 create mode 100644 drivers/char/tpm/tpm_ibmvtpm.h
 create mode 100644 drivers/char/tpm/tpm_of.c