Masanori Ogino has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/13410 )
Change subject: mb/lenovo/x60: Enable TPM ......................................................................
Patch Set 10:
For reference, I use the following script to collect some data:
#!/bin/sh
# Extract the last component of coreboot version string. # ex1. coreboot-4.12-2704-g1ba86f685b -> g1ba86f685b # ex2. coreboot-4.12-2704-g1ba86f685b-wip -> wip tag=$(cbmem -1 | head | grep '^coreboot' | cut -d' ' -f1 | awk '{ cnt = split($0, arr, "-"); print arr[cnt] }') rev=$(uname -r) echo "Gathering information on ${tag} with Linux ${rev}..." echo
datadir="${HOME}/data/${tag}-${rev}" mkdir -p "${datadir}"
echo "ACPI:" acpidump > "${datadir}/acpidump.txt" cat /sys/firmware/acpi/tables/DSDT > "${datadir}/dsdt.dat" cat /sys/firmware/acpi/tables/SSDT > "${datadir}/ssdt.dat" echo
echo "dmesg before modprobe:" dmesg | grep -i tpm | tee "${datadir}/dmesg.log" echo
echo "modprobe tpm_tis force=1..." modprobe -r tpm_tis modprobe tpm_tis force=1 echo
echo "dmesg after modprobe:" dmesg | grep -i tpm | tee "${datadir}/dmesg.force.log" echo
if [ -d "/sys/class/tpm/tpm0" ]; then echo "tpm0 found on sysfs" echo echo "/sys/class/tpm/tpm0/caps:" cat /sys/class/tpm/tpm0/caps | tee "${datadir}/tpm.caps.log" echo echo "/sys/class/tpm/tpm0/durations:" cat /sys/class/tpm/tpm0/durations | tee "${datadir}/tpm.durations.log" echo echo "/sys/class/tpm/tpm0/timeouts:" cat /sys/class/tpm/tpm0/timeouts | tee "${datadir}/tpm.timeouts.log" else echo "tpm0 not found" fi
echo echo "done."