Michal Suchanek and Greg Kroah-Hartman
7ea1913daa
tpm: tis: Double the timeout B to 4s
...
[ Upstream commit 2f661f71fd ]
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 de9e33df77 ("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 >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-05-22 14:12:12 +02:00
..
2024-12-09 10:32:02 +01:00
2025-01-02 10:31:59 +01:00
2024-12-19 18:11:29 +01:00
2024-10-22 15:46:19 +02:00
2024-12-14 19:59:46 +01:00
2024-10-22 15:46:35 +02:00
2025-02-08 09:51:57 +01:00
2025-02-17 09:40:08 +01:00
2024-12-14 20:00:00 +01:00
2025-05-09 09:43:58 +02:00
2025-02-08 09:51:54 +01:00
2024-09-12 11:11:32 +02:00
2025-04-10 14:37:36 +02:00
2024-09-08 07:54:43 +02:00
2025-03-07 16:45:36 +01:00
2025-02-08 09:52:37 +01:00
2024-09-12 11:11:40 +02:00
2024-11-14 13:19:38 +01:00
2025-04-25 10:45:45 +02:00
2025-02-17 09:40:03 +01:00
2024-10-04 16:29:59 +02:00
2024-08-14 13:59:02 +02:00
2025-02-21 13:57:09 +01:00
2024-12-09 10:32:56 +01:00
2025-05-09 09:43:54 +02:00
2024-09-12 11:11:34 +02:00
2025-05-09 09:43:54 +02:00
2025-02-08 09:52:26 +01:00
2025-02-21 13:57:17 +01:00
2025-01-09 13:31:53 +01:00
2024-08-14 13:58:56 +02:00
2025-03-13 12:58:27 +01:00
2024-12-09 10:32:46 +01:00
2024-12-09 10:32:46 +01:00
2024-11-08 16:28:20 +01:00
2024-12-19 18:11:36 +01:00
2025-04-10 14:37:36 +02:00
2025-04-10 14:37:32 +02:00
2025-05-18 08:24:11 +02:00
2025-05-09 09:43:53 +02:00
2024-08-29 17:33:14 +02:00
2024-11-22 15:38:35 +01:00
2024-11-08 16:28:24 +01:00
2024-09-04 13:28:24 +02:00
2024-12-14 20:00:16 +01:00
2025-02-21 13:57:17 +01:00
2025-05-02 07:50:41 +02:00
2024-12-14 19:59:58 +01:00
2024-08-29 17:33:31 +02:00
2024-10-04 16:29:37 +02:00
2024-12-14 20:00:05 +01:00
2024-10-10 11:58:00 +02:00
2025-05-09 09:43:54 +02:00
2025-03-22 12:50:44 -07:00
2024-09-08 07:54:44 +02:00
2025-04-10 14:37:29 +02:00
2025-04-25 10:45:12 +02:00
2024-12-09 10:31:48 +01:00
2025-01-23 17:21:17 +01:00
2024-11-08 16:28:27 +01:00
2025-03-13 12:58:38 +01:00
2024-09-08 07:54:43 +02:00
2024-12-27 13:58:54 +01:00
2024-10-10 11:58:01 +02:00
2025-03-22 12:50:37 -07:00
2025-02-08 09:51:58 +01:00
2025-01-09 13:32:02 +01:00
2024-12-09 10:32:59 +01:00
2024-10-17 15:24:26 +02:00
2025-04-10 14:37:26 +02:00
2025-03-22 12:50:45 -07:00
2024-12-27 13:58:55 +01:00
2024-11-08 16:28:19 +01:00
2024-10-17 15:24:13 +02:00
2024-12-09 10:31:50 +01:00
2025-02-08 09:52:27 +01:00
2025-02-17 09:40:16 +01:00
2024-12-14 20:00:12 +01:00
2024-12-09 10:32:45 +01:00
2025-01-09 13:31:40 +01:00
2024-11-01 01:58:25 +01:00
2024-10-17 15:24:10 +02:00
2025-01-17 13:36:26 +01:00
2025-01-17 13:36:26 +01:00
2024-11-22 15:38:37 +01:00
2024-12-09 10:32:59 +01:00
2025-05-18 08:24:11 +02:00
2025-02-08 09:52:02 +01:00
2025-01-09 13:31:41 +01:00
2025-05-18 08:24:05 +02:00
2024-10-17 15:24:29 +02:00
2024-12-09 10:32:12 +01:00
2024-10-17 15:24:23 +02:00
2025-04-25 10:45:46 +02:00
2025-01-17 13:36:09 +01:00
2025-03-22 12:50:43 -07:00
2024-09-18 19:24:04 +02:00
2025-02-27 04:10:47 -08:00
2024-12-09 10:31:56 +01:00
2025-02-08 09:51:51 +01:00
2024-12-09 10:32:59 +01:00
2024-12-09 10:32:59 +01:00
2024-10-17 15:24:22 +02:00
2024-12-14 20:00:14 +01:00
2025-02-08 09:51:44 +01:00
2025-04-25 10:45:31 +02:00
2025-04-10 14:37:26 +02:00
2025-01-23 17:21:14 +01:00
2025-02-08 09:52:38 +01:00
2025-03-28 21:59:55 +01:00
2024-08-14 13:58:47 +02:00
2024-09-18 19:24:03 +02:00
2025-01-23 17:21:12 +01:00
2025-04-10 14:37:36 +02:00
2025-03-07 16:45:47 +01:00
2025-04-25 10:45:06 +02:00
2025-01-09 13:31:41 +01:00
2024-10-04 16:29:38 +02:00
2024-12-14 19:59:50 +01:00
2025-03-13 12:58:27 +01:00
2024-08-11 12:47:16 +02:00
2025-02-01 18:37:51 +01:00
2025-01-09 13:32:05 +01:00
2024-12-09 10:31:51 +01:00
2025-02-27 04:10:45 -08:00
2025-05-09 09:43:57 +02:00
2025-02-27 04:10:50 -08:00
2024-08-29 17:33:23 +02:00
2024-12-09 10:32:10 +01:00
2024-11-22 15:38:32 +01:00
2025-01-09 13:31:41 +01:00
2024-12-19 18:11:37 +01:00
2024-10-10 11:58:08 +02:00
2024-11-01 01:58:20 +01:00
2024-10-17 15:24:23 +02:00
2024-11-08 16:28:16 +01:00
2024-11-14 13:19:37 +01:00
2025-05-22 14:12:12 +02:00
2025-04-10 14:37:41 +02:00
2025-01-09 13:31:55 +01:00
2025-04-10 14:37:41 +02:00
2025-05-18 08:24:09 +02:00
2024-11-08 16:28:26 +01:00
2024-10-10 11:57:36 +02:00
2024-11-14 13:19:39 +01:00
2024-12-09 10:33:06 +01:00
2024-10-10 11:57:17 +02:00
2025-01-02 10:32:00 +01:00
2024-12-27 13:58:57 +01:00
2024-10-04 16:30:02 +02:00