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)
Tue, Nov 5, 4:10 PM
Unknown Object (File)
Mon, Oct 28, 11:54 AM
Unknown Object (File)
Sun, Oct 27, 7:44 AM
Unknown Object (File)
Fri, Oct 25, 9:31 PM
Unknown Object (File)
Oct 19 2024, 8:11 AM
Unknown Object (File)
Oct 2 2024, 1:18 PM
Unknown Object (File)
Oct 1 2024, 1:23 PM
Unknown Object (File)
Sep 30 2024, 7:16 PM
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 Not Applicable
Unit
Tests Not Applicable

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.