Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167557246
D57841.id180685.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
718 B
Referenced Files
None
Subscribers
None
D57841.id180685.diff
View Options
Index: dev/tpm/tpm_tis_core.c
===================================================================
--- dev/tpm/tpm_tis_core.c
+++ dev/tpm/tpm_tis_core.c
@@ -474,6 +474,16 @@
"Failed to read response\n");
return (EIO);
}
+
+ /*
+ * Per TIS 1.3 section 5.6.12, write commandReady after reading the
+ * response so the TPM can free the ReadFIFO and other internal
+ * resources. The next tpmtis_go_ready() provides the second
+ * write the spec mentions, and waits for the state transition,
+ * so no wait is needed here.
+ */
+ TPM_WRITE_4(sc->dev, TPM_STS, TPM_STS_CMD_RDY);
+ TPM_WRITE_BARRIER(sc->dev, TPM_STS, 4);
tpmtis_relinquish_locality(sc);
priv->offset = 0;
priv->len = bytes_available;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 4:12 PM (1 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37152048
Default Alt Text
D57841.id180685.diff (718 B)
Attached To
Mode
D57841: tpm: fix tpmtis support for ST33KTPM2X32CKE3
Attached
Detach File
Event Timeline
Log In to Comment