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-22 16:06:05 +09:00
2025-05-09 10:34:50 -07:00
2025-05-15 04:49:15 +03:00
2025-04-03 12:21:44 -07:00
2025-04-02 18:03:34 -07:00
2025-05-05 08:07:24 -07:00
2025-04-11 17:32:38 -07:00
2025-05-09 14:06:34 -07:00
2025-05-11 10:29:29 -07:00
2025-05-02 08:57:00 -07:00
2025-03-26 19:57:34 -07:00
2025-03-29 14:33:13 -07:00
2025-04-26 13:02:36 -07:00
2025-05-08 11:56:12 +02:00
2025-04-02 20:27:18 -07:00
2025-05-09 10:34:50 -07:00
2025-03-29 11:23:16 -07:00
2025-05-08 08:29:13 -07:00
2025-03-28 19:36:53 -07:00
2025-04-01 12:47:11 -07:00
2025-04-02 18:09:17 -07:00
2025-04-08 19:30:58 +02:00
2025-03-29 17:18:50 -07:00
2025-05-02 11:14:58 -07:00
2025-04-04 09:06:32 -07:00
2025-05-02 16:33:50 -07:00
2025-05-10 09:08:19 -07:00
2025-05-06 12:59:12 -06:00
2025-04-18 10:05:49 -04:00