Bug 246707 - ThinkPad T480 TPM 2.0 (STM7304) hangs on suspend
Summary: ThinkPad T480 TPM 2.0 (STM7304) hangs on suspend
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-24 22:14 UTC by Jose Luis Duran
Modified: 2020-05-24 22:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Luis Duran 2020-05-24 22:14:14 UTC
The TPM 2.0 device found in a ThinkPad T480 (STM7304) can be accessed by
adding its ACPI CID (MSFT0101) to tpm_acpi.c, and using security/tpm2-tools.

    # kldload tpm

    tpm0: <Trusted Platform Module> iomem 0xfed40000-0xfed44fff on acpi0
    tpm: device 0x0000104a rev 0x4e

    # tpm2_pcrread ...

However, this breaks suspend/resume, as noted by OpenBSD
(https://github.com/openbsd/src/commit/07392f17439228a8812f4b0b49ec6b4069679e41#diff-05e5ef1120d39f765ed58829b0d99848).