Bug 206993 - TPM drivers do not initialize TPM 2.0 Chip
Summary: TPM drivers do not initialize TPM 2.0 Chip
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-27 05:04 UTC by Alex
Modified: 2020-03-27 08:25 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.5.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Kernel config file (182.17 KB, text/plain)
2020-03-27 05:32 UTC, Alex
Details

Description Alex 2020-03-27 05:04:22 UTC

    
Comment 1 Alex 2020-03-27 05:18:17 UTC
I'm running Fedora Workstation with custom compiled kernel 5.5.10-200.fc31.x86_64 with all TPM related configuration enabled. System boots up fine with or without Secure Boot enabled.But, TPM drivers fail to inititalize TPM and create /dev/tpm0.

Windows 10 64bit reports TPM as being initialized and ready. I am able to clear TPM from within Windows and I get the prompt by UEFI to confirm clearing of TPM. UEFI itself doesn't even mention TPM though. Here is what is reported by Windows Tpm-Get Powershell cmdlet.

TpmPresent                : True
TpmReady                  : True
ManufacturerId            : 1229870147
ManufacturerIdTxt         : INTC
ManufacturerVersion       : 10.0.38.1000
ManufacturerVersionFull20 : 10.0.38.1000
ManagedAuthLevel          : Full
OwnerAuth                 : <Owner's Password>
OwnerClearDisabled        : False
AutoProvisioning          : Enabled
LockedOut                 : False
LockoutHealTime           : 2 hours
LockoutCount              : 6
LockoutMax                : 32
SelfTest                  : {}


ACPI DSDT file has an entry for TPM. 

Here's the output from "journalctl | grep -i tpm":

Mar 26 13:52:58 localhost.localdomain kernel: Command line: BOOT_IMAGE=(hd0,gpt3)/vmlinuz-5.5.10-200.alx.fc31.x86_64 root=UUID=3211ca32-c453-4834-b65f-632a347380f9 ro rd.luks.uuid=luks-d9d49bd8-0264-4096-8180-75edde303f9a rhgb tpm_tis.force=1 "acpi_osi=Windows 2009" debug

Mar 26 13:52:59 localhost.localdomain kernel: device class 'tpm': registering
Mar 26 13:52:59 localhost.localdomain kernel: device class 'tpmrm': registering

Mar 26 13:52:59 localhost.localdomain kernel: Asymmetric key parser 'tpm_parser' registered

Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': add driver imx7ulp-tpm-pwm

Mar 26 13:52:59 localhost.localdomain kernel: Registering platform device 'tpm_tis'. Parent at platform
Mar 26 13:52:59 localhost.localdomain kernel: device: 'tpm_tis': device_add
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': add device tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: PM: Adding info for platform:tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': add driver tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': driver_probe_device: matched device MSFT0101:00 with driver tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': really_probe: probing driver tpm_tis with device MSFT0101:00
Mar 26 13:52:59 localhost.localdomain kernel: tpm_tis MSFT0101:00: no default pinctrl state
Mar 26 13:52:59 localhost.localdomain kernel: device: 'wakeup26': device_add
Mar 26 13:52:59 localhost.localdomain kernel: device: 'wakeup26': device_unregister
Mar 26 13:52:59 localhost.localdomain kernel: tpm_tis: probe of MSFT0101:00 rejects match -19
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': driver_probe_device: matched device tpm_tis with driver tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'platform': really_probe: probing driver tpm_tis with device tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: tpm_tis tpm_tis: no default pinctrl state
Mar 26 13:52:59 localhost.localdomain kernel: tpm tpm0: tpm_try_transmit: send(): error -5
Mar 26 13:52:59 localhost.localdomain kernel: tpm tpm0: tpm_relinquish_locality: : error -1
Mar 26 13:52:59 localhost.localdomain kernel: tpm_tis tpm_tis: 1.2 TPM (device-id 0xFFFF, rev-id 255)
Mar 26 13:52:59 localhost.localdomain kernel: tpm tpm0: tpm_try_transmit: send(): error -5
Mar 26 13:52:59 localhost.localdomain kernel: tpm tpm0: A TPM error (-5) occurred attempting to determine the timeouts
Mar 26 13:52:59 localhost.localdomain kernel: tpm_tis tpm_tis: Could not get TPM timeouts and durations
Mar 26 13:52:59 localhost.localdomain kernel: tpm_tis: probe of tpm_tis rejects match -19
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'pnp': add driver tpm_tis
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'spi': add driver tpm_tis_spi
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'i2c': add driver tpm_i2c_infineon
Mar 26 13:52:59 localhost.localdomain kernel: i2c-core: driver [tpm_i2c_infineon] registered
Mar 26 13:52:59 localhost.localdomain kernel: bus: 'pnp': add driver tpm_inf_pnp
Mar 26 13:52:59 localhost.localdomain kernel: device: 'vtpmx': device_add
Mar 26 13:52:59 localhost.localdomain kernel: PM: Adding info for No Bus:vtpmx


I'd be happy to provide complete logs and any other info needed.

Thanks
Comment 2 Alex 2020-03-27 05:32:19 UTC
Created attachment 288085 [details]
Kernel config file

I've attachedkernel .config file.

Note You need to log in before you can comment on or make changes to this bug.