https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295103

--- Comment #2 from Benoit SANSONI <[email protected]> ---
Hi, 

After investigation, I found out that the driver tpmtis does not support the
TPM2 ST33KTPM2X32CKE3.
I used also the last update of the tpmtis driver in the current main stream.
I got the same result.

I used the freebsd 14.2 for my tests.

To fix the problem I add this lines at the end of tpmtis_transmit and before
the relinquish of the locality:

+       /* Add this line to support ST33KTPM2X32CKE3 */
+       WR4(sc, TPM_STS, TPM_STS_CMD_RDY);
+       bus_barrier(sc->mem_res, TPM_STS, 4, BUS_SPACE_BARRIER_WRITE);
        tpmtis_relinquish_locality(sc);

With this modification, the tpm driver can report proper value, and the
go_ready return good status regularly.
TSS service is working well and tpm2_* commands are working too.

It can be easily port to main stream code.

Thanks
Benoit

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to