mirror of https://gitee.com/openkylin/linux.git
6d2e1a8d5e
Code includes barrier() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is following a barrier(). Since code already has an explicit barrier call, changing writel() to writel_relaxed() and adding mmiowb() for ordering protection. Signed-off-by: Sinan Kaya <okaya@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
Makefile | ||
ena_admin_defs.h | ||
ena_com.c | ||
ena_com.h | ||
ena_common_defs.h | ||
ena_eth_com.c | ||
ena_eth_com.h | ||
ena_eth_io_defs.h | ||
ena_ethtool.c | ||
ena_netdev.c | ||
ena_netdev.h | ||
ena_pci_id_tbl.h | ||
ena_regs_defs.h |