]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:49:58 +0000 (10:49 +0200)
commit20a7409755741546739b30a212bfdd4ac5144f92
tree332615b7d853cab21d075827a795a97f12dda588
parent9866b5b7ee565e6f767af284a9b285a33db52183
hinic: fix out-of-order excution in arm cpu

[ Upstream commit 9597f12ae87f9d349034f459892fe680a892b4e5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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