Page MenuHomeFreeBSD

tpm: crb: factor out idle/ready state transitions
ClosedPublic

Authored by kevans on Nov 11 2025, 1:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 31, 4:11 AM
Unknown Object (File)
Tue, Dec 30, 11:13 PM
Unknown Object (File)
Mon, Dec 29, 8:00 AM
Unknown Object (File)
Thu, Dec 25, 4:45 PM
Unknown Object (File)
Dec 12 2025, 2:19 PM
Unknown Object (File)
Nov 23 2025, 12:01 PM
Unknown Object (File)
Nov 23 2025, 5:56 AM
Unknown Object (File)
Nov 20 2025, 5:19 PM
Subscribers
None

Details

Summary

Some TPM implementations have a different start method that requires
an additional notification for some state changes; for instance, the
"Pluton" start method. Just factor these transitions out for now, and
the coming commits will introduce points that the start method can hook
in at.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans created this revision.

This patch didn't make my Juniper EX4000 catch-fire-and-burn.

sys/dev/tpm/tpm_crb.c
310

Why -1 and not just 0 given you compare "> 0"? 0 as a wait makes more sense to me.

387–388

Any idea why this line is show as a diff?

kevans added inline comments.
sys/dev/tpm/tpm_crb.c
310

I started with -1 and decided that 0 made more sense as I was cleaning up (below was originally timeout >= 0), forgot to clean this up- whoops.

387–388

Unclear... hexdump of the diff doesn't show anything of interest, and git-diff also renders it as a difference.

kevans marked 2 inline comments as done.

-1 -> 0

This revision is now accepted and ready to land.Nov 14 2025, 6:11 PM