mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:50:52 +07:00
2d6168fa6b
[ Upstream commit 1c0e5701c5e792c090aef0e5b9b8923c334d9324 ]
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. 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.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mlxbf-bootctl.c | ||
mlxbf-bootctl.h | ||
mlxbf-tmfifo-regs.h | ||
mlxbf-tmfifo.c | ||
mlxreg-hotplug.c | ||
mlxreg-io.c |