All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5 V2] tpm: timeouts revamp
@ 2018-03-06  9:24 ` Tomas Winkler
  0 siblings, 0 replies; 32+ messages in thread
From: Tomas Winkler @ 2018-03-06  9:24 UTC (permalink / raw)
  To: Jarkko Sakkinen, Jason Gunthorpe
  Cc: Alexander Usyskin, linux-integrity, linux-security-module,
	linux-kernel, Tomas Winkler

This series cleans up tpm timeouts setting and handling.

First motivation was to fix failures coming from too short timeouts
for commands that creates keys.
Key generation may take significant time depending on the underlying
hardware. Rather than increasing default timeout a new constant is
added, to not stall too long on regular commands failures.

Second is to define timeouts for new tpm2 commands
defined in TCG 1.36 spec.

Tomas Winkler (5):
  tpm: sort objects in the Makefile
  tpm: factor out tpm 1.2 duration calculation to tpm1-cmd.c
  tpm2: add longer timeouts for creation commands.
  tpm2: add new tpm2 commands according to TCG 1.36
  tmp: factor out tpm_get_timeouts

V2: 1. Makefile go back tpm-y construct.
    2. Add more info to longer timouts patch
    3. Rebase other patches
    4. Remove patch not connected to timouts from the series.

 drivers/char/tpm/Makefile            |  16 +-
 drivers/char/tpm/st33zp24/st33zp24.c |   2 +-
 drivers/char/tpm/tpm-interface.c     | 408 +---------------------------------
 drivers/char/tpm/tpm.h               |  74 ++++---
 drivers/char/tpm/tpm1-cmd.c          | 416 +++++++++++++++++++++++++++++++++++
 drivers/char/tpm/tpm2-cmd.c          | 220 ++++++++----------
 drivers/char/tpm/tpm_i2c_nuvoton.c   |  10 +-
 drivers/char/tpm/tpm_tis_core.c      |   2 +-
 drivers/char/tpm/xen-tpmfront.c      |   2 +-
 9 files changed, 582 insertions(+), 568 deletions(-)
 create mode 100644 drivers/char/tpm/tpm1-cmd.c

-- 
2.14.3

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2018-04-08 20:04 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06  9:24 [PATCH 0/5 V2] tpm: timeouts revamp Tomas Winkler
2018-03-06  9:24 ` Tomas Winkler
2018-03-06  9:24 ` [PATCH 1/5 V2] tpm: sort objects in the Makefile Tomas Winkler
2018-03-06  9:24   ` Tomas Winkler
2018-03-06  9:25 ` [PATCH 2/5 V2] tpm: factor out tpm 1.2 duration calculation to tpm1-cmd.c Tomas Winkler
2018-03-06  9:25   ` Tomas Winkler
2018-03-06  9:25 ` [PATCH 3/5 V2] tpm2: add longer timeouts for creation commands Tomas Winkler
2018-03-06  9:25   ` Tomas Winkler
2018-03-06 12:23   ` Jarkko Sakkinen
2018-03-06 12:23     ` Jarkko Sakkinen
2018-03-06 15:19     ` Winkler, Tomas
2018-03-06 15:19       ` Winkler, Tomas
2018-03-06 15:19       ` Winkler, Tomas
2018-03-10 11:21       ` Jarkko Sakkinen
2018-03-10 11:21         ` Jarkko Sakkinen
2018-03-06  9:25 ` [PATCH 4/5 V2] tpm2: add new tpm2 commands according to TCG 1.36 Tomas Winkler
2018-03-06  9:25   ` Tomas Winkler
2018-03-06  9:25 ` [PATCH 5/5 V2] tmp: factor out tpm_get_timeouts Tomas Winkler
2018-03-06  9:25   ` Tomas Winkler
2018-03-06 12:17 ` [PATCH 0/5 V2] tpm: timeouts revamp Jarkko Sakkinen
2018-03-06 12:17   ` Jarkko Sakkinen
2018-03-06 12:39   ` Javier Martinez Canillas
2018-03-06 12:39     ` Javier Martinez Canillas
2018-03-06 14:02     ` Jarkko Sakkinen
2018-03-06 14:02       ` Jarkko Sakkinen
2018-03-06 15:05       ` Winkler, Tomas
2018-03-06 15:05         ` Winkler, Tomas
2018-04-08 20:04       ` Ken Goldman
2018-03-06 15:01     ` Winkler, Tomas
2018-03-06 15:01       ` Winkler, Tomas
2018-04-08 20:01   ` Ken Goldman
2018-04-08 20:01     ` Ken Goldman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.