[GIT PULL] TPM DEVICE DRIVER: tpmdd-next-6.10-rc2

From: Jarkko Sakkinen
Date: Tue May 28 2024 - 06:29:09 EST


The following changes since commit 2bfcfd584ff5ccc8bb7acde19b42570414bf880b:

Merge tag 'pmdomain-v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm (2024-05-27 08:18:31 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tags/tpmdd-next-6.10-rc2

for you to fetch changes up to d3e43a8fa43effdbb62c7edc206df7ac67772205:

tpm: Enable TCG_TPM2_HMAC by default only for X86_64 (2024-05-28 13:14:29 +0300)

----------------------------------------------------------------
Hi,

This PR fixes two unaddressed review comments for the HMAC encryption
patch set. They are cosmetic but we are better off, if such unnecessary
glitches do not exist in the release.

The priority part of this PR is enabling the HMAC encryption by default
only on x86-64 because that is the only sufficiently tested arch.

Finally, there is a bug fix for SPI transfer buffer allocation, which
did not take into account the SPI header size.

BR, Jarkko

----------------------------------------------------------------
Jarkko Sakkinen (3):
tpm: Open code tpm_buf_parameters()
tpm: Rename TPM2_OA_TMPL to TPM2_OA_NULL_KEY and make it local
tpm: Enable TCG_TPM2_HMAC by default only for X86_64

Matthew R. Ochs (1):
tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer

drivers/char/tpm/Kconfig | 2 +-
drivers/char/tpm/tpm-buf.c | 26 --------------------------
drivers/char/tpm/tpm2-cmd.c | 10 +++++++++-
drivers/char/tpm/tpm2-sessions.c | 21 +++++++++++++++++++--
drivers/char/tpm/tpm_tis_spi_main.c | 3 ++-
include/linux/tpm.h | 17 -----------------
6 files changed, 31 insertions(+), 48 deletions(-)