Page MenuHomeFreeBSD

Use TPM2 ACPI table to distinguish CRB and TIS.
ClosedPublic

Authored by takawata on Jan 24 2019, 2:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 8:42 PM
Unknown Object (File)
Fri, Mar 22, 8:32 PM
Unknown Object (File)
Fri, Mar 22, 8:32 PM
Unknown Object (File)
Fri, Mar 22, 8:32 PM
Unknown Object (File)
Mon, Mar 11, 5:58 AM
Unknown Object (File)
Fri, Mar 8, 11:54 PM
Unknown Object (File)
Mon, Mar 4, 9:53 AM
Unknown Object (File)
Feb 18 2024, 1:10 AM
Subscribers

Details

Summary

TPM 2.0 device has some different method in same CID MSFT0101.
These method is distinguished by TPM2.0 header per TCG ACPI Specification 2.0.
Accessing actual device in probe is not work for me
and try to attach CRB though my device is TIS.

This patch solve this.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22111
Build 21333: arc lint + arc unit

Event Timeline

Oops,I have mistake to remove device_set_desc() call.

Looks good to me. By the way could you tell me which TPM chip didn't work with the previous version of probe?

This revision is now accepted and ready to land.Jan 25 2019, 12:08 PM

The dmesg is as follows:
tpmcrb0: <Trusted Platform Module 2.0, CRB mode> iomem 0xfed40000-0xfed44fff on acpi0
device_attach: tpmcrb0 attach returned 6
tpmtis0: <Trusted Platform Module 2.0, FIFO mode> iomem 0xfed40000-0xfed44fff on acpi0

And the device is

tpmtis0 pnpinfo _HID=STM7304 _UID=0 at handle=\_SB_.TPM_
    I/O memory addresses:
        0xfed40000-0xfed44fff
This revision was automatically updated to reflect the committed changes.