]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: fix out-of-order excution in arm cpu
authorLuo bin <luobin9@huawei.com>
Fri, 20 Mar 2020 23:13:18 +0000 (23:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 02:43:38 +0000 (19:43 -0700)
commitf2c4f1f08a527239d5aba43961c2cbb246e6767c
treed5404ae2b8b6dfbfbec4c83b47076b66f6b5b356
parentbf6271c107b199622e35fc8ba859dcf1258cbc68
hinic: fix out-of-order excution in arm cpu

add read barrier in driver code to keep from reading other fileds
in dma memory which is writable for hw until we have verified the
memory is valid for driver

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c
drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
drivers/net/ethernet/huawei/hinic/hinic_rx.c
drivers/net/ethernet/huawei/hinic/hinic_tx.c