TPM module can not initial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Ike Panhc | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
TPM module can not initial with Ubuntu kernel
[ 28.138216] tpm tpm0: tpm_relinquish_
[ 28.143808] tpm_tis_spi spi-SMO0768:00: 1.2 TPM (device-id 0xFFFF, rev-id 255)
[ 28.145025] tpm tpm0: tpm_try_transmit: tpm_send: error -5
[ 28.899522] tpm tpm0: tpm_relinquish_
[ 28.904927] tpm tpm0: A TPM error (-5) occurred attempting to determine the timeouts
[ 28.913026] tpm_tis_spi: probe of spi-SMO0768:00 failed with error -5
We have a TPM module but disco kernel can not initial it. The root cause is
DW SPI driver in disco only support chipselect from device-tree and for 5.1
mainline kernel it can be used with deivce-tree or ACPI.
[Test Case]
Boot Ubuntu on platform with TPM module and ACPI and `dmesg | grep tpm`
[Fix]
9400c41e77b8 <email address hidden> 2019-01-09 12:42:18 +0000 spi: dw: Convert to use CS GPIO descriptors
f3186dd87669 <email address hidden> 2019-01-09 12:39:25 +0000 spi: Optionally use GPIO descriptors for CS GPIOs
[Regression Risk]
Reading first 2 patches for determining regression risk and find out only machine with Designware MMIO SPI and device-tree have risk. Fortunately on mainline kernel we have Jan Kotas tested and report several regressions e.g. default polarity.
Therefore, another 4 patches is needed to fix the regression on device-tree
machines with DW SPI and that's the only regression risk.
CVE References
Changed in linux (Ubuntu): | |
assignee: | nobody → Ike Panhc (ikepanhc) |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Disco): | |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu Disco): | |
status: | In Progress → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1826142
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.