Public bug reported:

This one is used to track a code merge of the tmfifo driver.

SRU Justification:

[Impact]
* The virtio framework uses wmb() when updating avail->idx. It guarantees the 
write order, but not necessarily loading order for the code accessing the 
memory. So potentially it could cause traffic stuck which has been observed in 
the field.

[Fix]
* This commit adds a load barrier after reading the avail->idx to make sure all 
the data in the descriptor is visible. It also adds a barrier when returning 
the packet to virtio framework to make sure read/writes are visible to the 
virtio code.

[Test Case]
* Just normal test. This change doesn't affect any functionality.

[Regression Potential]
* SQA team has been running test with this fix for quite some time (several 
months). No issue as observed.

[Other]
* N/A

** Affects: linux-bluefield (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  tmfifo: Fix a memory barrier issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/1927262/+subscriptions

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

Reply via email to