Simon Newton has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32080 )
Change subject: mainboard/asus/p8h61-m_pro : Support TPM module ......................................................................
Patch Set 3:
Testing of TPM v2.0
Serial output lpc_tpm: Read reg 0xf00 returns 0x1a15d1 Found TPM SLB9665 TT 2.0 by Infineon lpc_tpm: Read reg 0x0 returns 0x81 lpc_tpm: Write reg 0x0 with 0x2 lpc_tpm: Read reg 0x0 returns 0xa1 lpc_tpm: Write reg 0x18 with 0x40 lpc_tpm: Read reg 0x18 returns 0x40 lpc_tpm: Read reg 0x18 returns 0x40 lpc_tpm: Read reg 0x19 returns 0x8 lpc_tpm: Write reg 0x18 with 0x80 lpc_tpm: Write reg 0x18 with 0x1 lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Write reg 0x18 with 0xc lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Read reg 0x18 returns 0x8 lpc_tpm: Read reg 0x18 returns 0x88 lpc_tpm: Read reg 0x18 returns 0x88 lpc_tpm: Read reg 0x19 returns 0x8 lpc_tpm: Write reg 0x18 with 0x1 lpc_tpm: Write reg 0x18 with 0x44 lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Read reg 0x18 returns 0x8 lpc_tpm: Read reg 0x18 returns 0x88 lpc_tpm: Read reg 0x18 returns 0x88 lpc_tpm: Read reg 0x19 returns 0x8 lpc_tpm: Write reg 0x18 with 0x0 lpc_tpm: Read reg 0x18 returns 0x8 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Write reg 0x18 with 0x20 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Read reg 0x18 returns 0x90 lpc_tpm: Read reg 0x19 returns 0x8 lpc_tpm: Read reg 0x24 returns 0x80 lpc_tpm: Read reg 0x24 returns 0x1 lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x24 returns 0xa lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x18 returns 0x90 lpc_tpm: Read reg 0x18 returns 0x90 lpc_tpm: Read reg 0x19 returns 0x2 lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x24 returns 0x0 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Write reg 0x18 with 0x40 lpc_tpm: Read reg 0x18 returns 0x80 lpc_tpm: Write reg 0x18 with 0x40 lpc_tpm: Read reg 0x18 returns 0x40 tlcl_send_startup: Startup return code is 0 TPM: setup succeeded
Operation within Fedora [root@localhost-live liveuser]# dmesg | grep -i tpm [ 0.000000] ACPI: TPM2 0x000000007FF49270 00004C (v04 COREv4 COREBOOT 00000000 CORE 20190108) [ 4.403133] tpm_tis 00:06: 2.0 TPM (device-id 0x1A, rev-id 16) [root@localhost-live liveuser]# echo "tpm2 test" | clevis encrypt tpm2 '{}' > test.txt [root@localhost-live liveuser]# cat test.txt eyJhbGciOiJkaXIiLCJjbGV2aXMiOnsicGluIjoidHBtMiIsInRwbTIiOnsiaGFzaCI6InNoYTI1NiIsImp3a19wcml2IjoiQU00QUlKY2dBaFdLWXpQalV1UEE5VmVpWmJSM21HeG1VczR3ZGNPUjA5ZEtCcWptQUJCQmxBcFRObm1TTFVpMlNXeDZva183amI1ZVU4LVJLU0JfRllPUHN2R3hUdDh3ZFVaUHdqTFNPZXVsV3pzM2U1TENOWS14WG9zb3VoTmV1cmR2bFZmRm4wQkFRMldoOTZWbldKamF2amhYOC16eFNhUnQ1Wkd5RW9oMjlqVHZVMFRhcUVISWFsckFORjEwbVVWUjVaTUpMRDE1czFFMnljOVBrTDR5dnRfNmZIWkpuRVBWMXZPTm55RngtaVJ1X19lZ25jcU8xS1ZObldzakJMRVFWNDVGZ3c3ZlNPU3JDOFZmb0EiLCJqd2tfcHViIjoiQUM0QUNBQUxBQUFFMGdBQUFCQUFJQk9weVVNMFY0UEkxTjNSTEp2eEFEcF9wYmcza2tVVjNSYkdTTzg3OFAyQSIsImtleSI6ImVjYyJ9fSwiZW5jIjoiQTI1NkdDTSJ9..5BdL37zt5Gp8bVMq.Li9T2xmSWvo5hA.lcqXujTWaFboe9dh74eOsw[root@localhost-live liveuser]# cleavis decrypt tpm2 < test.txt bash: cleavis: command not found... [root@localhost-live liveuser]# clevis decrypt tpm2 < test.txt tpm2 test [root@localhost-live liveuser]#