Page MenuHomeFreeBSD

tpm20: Release transport state after command failures
AcceptedPublic

Authored by kbowling on Fri, Aug 28, 1:14 AM.
Tags
None
Referenced Files
F169352994: D59243.id185298.diff
Tue, Sep 1, 7:14 AM
Unknown Object (File)
Mon, Aug 31, 7:30 AM
Unknown Object (File)
Sat, Aug 29, 3:20 PM
Unknown Object (File)
Sat, Aug 29, 7:36 AM
Unknown Object (File)
Fri, Aug 28, 1:19 PM
Unknown Object (File)
Fri, Aug 28, 12:42 PM
Unknown Object (File)
Fri, Aug 28, 5:17 AM
Subscribers

Details

Summary
Once a transport acquires locality, several TIS and CRB error paths
return without relinquishing it.  They can also leave a partial FIFO
transaction or an active CRB command for the next operation to inherit.

Route post-locality exits through common cleanup.  Reset the TIS command
state on every attempt.  For CRB, cancel an active failed command when
necessary, request the idle state, and relinquish locality even when the
state transition itself fails.

Successful command handling is unchanged apart from sharing the same
cleanup path.

MFC after:      2 weeks

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped