Page MenuHomeFreeBSD

tpm20: Release transport state after command failures
ClosedPublic

Authored by kbowling on Fri, Aug 28, 1:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 19, 12:06 PM
Unknown Object (File)
Thu, Sep 17, 3:47 PM
Unknown Object (File)
Thu, Sep 17, 12:58 PM
Unknown Object (File)
Wed, Sep 16, 4:09 AM
Unknown Object (File)
Wed, Sep 16, 12:05 AM
Unknown Object (File)
Tue, Sep 15, 11:08 PM
Unknown Object (File)
Mon, Sep 14, 1:24 PM
Unknown Object (File)
Sun, Sep 13, 1:46 PM
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

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