Files
src/sys/dev
Kyle Evans 38a4995eb5 tpm20: fix suspend/resume and entropy harvesting
There were a few problem here:
  - TPM2_Shutdown results in a response that we need to either process
    or ignore, otherwise any tpm20_write or tpm20_harvest call will
    trivially hang on an `sc->pending_data_length != 0`
  - We should have a matching TPM2_Startup upon resume to restore any
    state that should have persisted
  - We must drain the harvest task before we suspend to avoid problems
    there

This commit is sufficient to avoid breaking suspend/resume.

PR:		291067
Fixes:	a2d5ed9442 ("Introduce driver for TPM 2.0 in CRB and [...]")
Fixes:	4ee7d3b011 ("Allow using TPM as entropy source.")
Co-authored-by:	markj (D53835)
Tested by:	garga
Differential Revision:	https://reviews.freebsd.org/D55074
2026-02-04 21:35:10 -06:00
..
2024-09-05 17:35:40 +02:00
2025-11-26 23:19:26 -07:00
2025-07-27 15:17:51 +02:00
2026-01-12 11:04:56 -05:00
2024-06-16 16:37:25 -04:00
2026-01-13 19:14:49 -08:00
2024-09-04 14:28:28 +00:00
2025-11-13 12:37:19 -08:00
2026-01-20 11:25:31 +01:00
2025-08-03 10:11:05 +10:00
2024-01-12 15:56:00 -05:00
2025-06-11 17:39:02 +01:00
2025-06-11 17:39:02 +01:00
2025-06-09 23:32:11 +01:00
2025-08-13 14:14:00 +03:00
2025-06-14 12:17:49 +00:00
2024-01-10 19:20:26 +01:00
2025-06-11 17:39:02 +01:00
2023-11-26 22:23:30 -07:00
2025-05-06 13:54:18 +02:00
2025-06-11 17:39:02 +01:00
2026-01-12 00:58:11 +00:00
2025-06-11 17:39:02 +01:00
2023-12-28 13:31:56 -05:00
2026-01-12 00:58:11 +00:00
2025-10-24 13:19:51 -04:00
2025-12-23 07:00:38 +00:00
2026-01-13 16:03:14 +02:00
2025-07-05 11:35:53 +03:00
2025-03-27 13:47:37 +00:00
2025-11-26 23:19:26 -07:00
2025-08-13 14:14:00 +03:00
2025-10-18 22:54:02 -07:00
2026-01-15 14:13:50 +00:00
2024-01-10 19:20:31 +01:00
2025-11-17 13:26:30 -05:00
2025-08-13 14:14:00 +03:00
2025-12-09 15:02:33 -05:00
2024-01-10 19:20:34 +01:00
2025-02-02 09:35:51 -07:00
2025-06-11 17:39:02 +01:00
2025-10-27 10:33:50 -04:00
2025-06-11 17:39:02 +01:00
2024-01-10 19:20:26 +01:00
2025-08-13 14:14:00 +03:00
2025-08-13 14:14:00 +03:00
2025-11-26 23:19:26 -07:00
2025-11-26 23:19:26 -07:00
2025-06-11 17:39:02 +01:00
2025-11-07 15:23:42 -08:00
2026-01-09 13:17:12 -07:00
2024-11-04 20:31:16 -05:00
2026-01-12 14:38:39 +01:00
2024-02-05 15:45:32 -08:00
2025-12-16 00:23:35 +01:00
2026-01-31 11:42:10 +01:00
2024-06-16 16:37:26 -04:00
2025-05-23 15:49:50 +08:00
2025-12-16 09:25:58 +00:00