All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] char: tpm: Adjust cr50_i2c locking mechanism
@ 2022-11-03 14:54 Jan Dabros
  2022-11-03 14:54 ` [PATCH v2 1/3] char: tpm: Protect tpm_pm_suspend with locks Jan Dabros
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Jan Dabros @ 2022-11-03 14:54 UTC (permalink / raw)
  To: linux-integrity, jarkko, peterhuewe, jgg, gregkh, arnd
  Cc: rrangel, timvp, apronin, mw, upstream, jsd

This patchset aims to add support for a platforms with cr50(tpm) i2c
chip shared across two CPUs. We need to provide a mechanism, which will
allow to synchronize accesses on a TPM-transaction boundaries.

First commit in a patchset is a generic fix for an issue encountered
during suspend stress test.

Next two patches are modifying cr50 to use generic callbacks for
locality management and then leverage this solution to apply i2c bus
locking on a TPM-operation level.

v1->v2:
* Get back with tpm_cr50_check_locality to return 0 instead of locality
* Return from functions which get (locality < 0)

Jan Dabros (3):
  char: tpm: Protect tpm_pm_suspend with locks
  char: tpm: cr50: Use generic request/relinquish locality ops
  char: tpm: cr50: Move i2c locking to request/relinquish locality ops

 drivers/char/tpm/tpm-interface.c    |   5 +-
 drivers/char/tpm/tpm_tis_i2c_cr50.c | 126 ++++++++++++++++++----------
 2 files changed, 85 insertions(+), 46 deletions(-)

-- 
2.38.1.273.g43a17bfeac-goog


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

end of thread, other threads:[~2022-11-28 19:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 14:54 [PATCH v2 0/3] char: tpm: Adjust cr50_i2c locking mechanism Jan Dabros
2022-11-03 14:54 ` [PATCH v2 1/3] char: tpm: Protect tpm_pm_suspend with locks Jan Dabros
2022-11-06 19:48   ` Jarkko Sakkinen
2022-11-07  8:45     ` Jan Dąbroś
2022-11-07 16:35       ` Jarkko Sakkinen
2022-11-28 17:04         ` Jason A. Donenfeld
2022-11-28 17:07           ` Jason A. Donenfeld
2022-11-28 19:46             ` Vlastimil Babka
2022-11-28 19:55               ` Jason A. Donenfeld
2022-11-28 17:11           ` Vlastimil Babka
2022-11-03 14:54 ` [PATCH v2 2/3] char: tpm: cr50: Use generic request/relinquish locality ops Jan Dabros
2022-11-07  9:20   ` Jarkko Sakkinen
2022-11-07  9:41     ` Jan Dąbroś
2022-11-18 14:09   ` Guenter Roeck
2022-11-03 14:54 ` [PATCH v2 3/3] char: tpm: cr50: Move i2c locking to " Jan Dabros
2022-11-07  9:22   ` Jarkko Sakkinen
2022-11-07  9:47     ` Jan Dąbroś
2022-11-07 16:35       ` Jarkko Sakkinen

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.