HomeFreeBSD

tpm: Fix entropy harvesting logic

Description

tpm: Fix entropy harvesting logic

Use a taskqueue instead of a callout.
Callout functions mustn't sleep, where as the TPM driver
uses a sx lock in order to serialize accesses to the device.
Since the entropy harvesting feature is not enabled by default,
this commit should not bring any functional changes to the GENERIC
kernel.

Approved by: mw(mentor)
Sponsored by: Stormshield
Obtained from: Semihalf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36412

(cherry picked from commit e23ad9c4ba2d2fd235fc3dc988ca422ef4e7ca3b)

Details

Provenance
kdAuthored on Sep 2 2022, 11:07 AM
Differential Revision
D36412: tpm: Fix entropy harvesting logic
Parents
rG14761188db44: iwn(4): Correct a typo in a kernel error message
Branches
Unknown
Tags
Unknown