1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 12:55:08 +00:00
Michal Suchanek 2f661f71fd tpm: tis: Double the timeout B to 4s
With some Infineon chips the timeouts in tpm_tis_send_data (both B and
C) can reach up to about 2250 ms.

Timeout C is retried since
commit de9e33df7762 ("tpm, tpm_tis: Workaround failed command reception on Infineon devices")

Timeout B still needs to be extended.

The problem is most commonly encountered with context related operation
such as load context/save context. These are issued directly by the
kernel, and there is no retry logic for them.

When a filesystem is set up to use the TPM for unlocking the boot fails,
and restarting the userspace service is ineffective. This is likely
because ignoring a load context/save context result puts the real TPM
state and the TPM state expected by the kernel out of sync.

Chips known to be affected:
tpm_tis IFX1522:00: 2.0 TPM (device-id 0x1D, rev-id 54)
Description: SLB9672
Firmware Revision: 15.22

tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x1B, rev-id 22)
Firmware Revision: 7.83

tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x1A, rev-id 16)
Firmware Revision: 5.63

Link: https://lore.kernel.org/linux-integrity/Z5pI07m0Muapyu9w@kitsune.suse.cz/
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
2025-05-15 04:49:15 +03:00
..
2025-04-03 21:35:32 +02:00
2025-04-01 11:02:03 -07:00
2025-04-03 15:31:14 -07:00
2025-03-29 11:12:28 -07:00
2025-04-02 18:23:31 -07:00
2025-04-02 20:04:43 -07:00
2025-03-26 18:08:55 -07:00
2025-04-25 11:34:39 -07:00
2025-03-30 13:45:28 -07:00
2025-04-02 07:06:59 -06:00
2025-04-01 11:02:03 -07:00
2025-03-30 12:43:03 -07:00
2025-03-27 13:27:08 -07:00
2025-04-01 18:03:46 -07:00
2025-03-27 09:46:53 -07:00
2025-03-28 12:37:13 -07:00
2025-03-30 12:43:03 -07:00
2025-04-15 11:32:34 +02:00
2025-04-02 17:06:31 -07:00
2025-03-26 18:08:55 -07:00
2025-03-29 11:23:16 -07:00
2025-03-28 19:36:53 -07:00
2025-03-27 13:14:46 -05:00
2025-03-30 12:43:03 -07:00
2025-05-15 04:49:15 +03:00
2025-04-18 10:05:49 -04:00
2025-03-26 18:08:55 -07:00