** Description changed:

+ [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_transfer" function
  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_locality: : error -1
  
  [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_locality: : error -1
  
  [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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1859744

Title:
  [spi-0115]spi: dw: use "smp_mb()" to avoid sending spi data error

To manage notifications about this bug go to:
https://bugs.launchpad.net/kunpeng920/+bug/1859744/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to