[spi-0115]spi: dw: use "smp_mb()" to avoid sending spi data error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Won't Fix
|
Undecided
|
Unassigned | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Ike Panhc | ||
Ubuntu-19.10 |
Fix Released
|
Undecided
|
Ike Panhc | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Ike Panhc | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Ike Panhc | ||
Eoan |
Fix Released
|
Undecided
|
Ike Panhc | ||
Focal |
Fix Released
|
Undecided
|
Ike Panhc |
Bug Description
[Impact]
Sometimes, TPM fails because SPI data error
[Fix]
bfda044533b2 spi: dw: use "smp_mb()" to avoid sending spi data error
[Test]
Reboot system few times and no TPM error message
[Regression Potential]
Only on SPI function. Already tested on focal kernel
[Bug Description]
Because of out-of-order execution about some CPU architecture,
In this debug stage we find Completing spi interrupt enable ->
prodrucing TXEI interrupt -> running "interrupt_
will prior to set "dw->rx and dws->rx_end" data, so this patch add
memory barrier to enable dw->rx and dw->rx_end to be visible and
solve to send SPI data error.
eg:
it will fix to this following low possibility error in testing environment
which using SPI control to connect TPM Modules
kernel: tpm tpm0: Operation Timed out
kernel: tpm tpm0: tpm_relinquish_
[Steps to Reproduce]
1) enable ima and tpm
2)reboot this system
3)
[Actual Results]
kernel: tpm tpm0: Operation Timed out
kernel: tpm tpm0: tpm_relinquish_
[Expected Results]
ok
[Reproducibility]
low probabilities
[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required):
[Resolution]
bfda044533b2 spi: dw: use "smp_mb()" to avoid sending spi data error
CVE References
description: | updated |
Changed in linux (Ubuntu): | |
assignee: | nobody → Ike Panhc (ikepanhc) |
status: | New → In Progress |
tags: | removed: ikeradar |
Changed in linux (Ubuntu Eoan): | |
status: | New → In Progress |
assignee: | nobody → Ike Panhc (ikepanhc) |
Changed in kunpeng920: | |
status: | Fix Committed → In Progress |
description: | updated |
Changed in linux (Ubuntu Eoan): | |
status: | In Progress → Fix Committed |
Changed in kunpeng920: | |
status: | In Progress → Fix Committed |
Changed in kunpeng920: | |
status: | Fix Committed → Fix Released |
bug 1859743 is also mention "EFI/stub: tpm: enable tpm eventlog function for ARM64 platform" in resolution. Is this a duplicate bug or another patch shall be mentioned?