linux/drivers/net/ethernet/hisilicon/hibmcge
Jijie Shao b545b6ea18 net: hibmcge: move dma_rmb() after dma_sync_single_for_cpu() in RX path
The dma_rmb() barrier was placed before dma_sync_single_for_cpu(), which
is incorrect. DMA sync must complete first to make the buffer accessible
to the CPU, then the rmb barrier ensures subsequent descriptor reads
observe the latest data written by the hardware.

Reorder the operations so dma_sync_single_for_cpu() is called before
dma_rmb() to guarantee the driver reads consistent data from the DMA
buffer.

Fixes: f72e255940 ("net: hibmcge: Implement rx_poll function to receive packets")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20260525144525.94884-3-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-05-28 12:59:36 +02:00
..
hbg_common.h net: hibmcge: add support for pagepool on rx 2025-11-26 18:22:40 -08:00
hbg_debugfs.c net: hibmcge: fix the incorrect np_link fail state issue. 2025-04-11 20:17:36 -07:00
hbg_debugfs.h
hbg_diagnose.c net: hibmcge: support for statistics of reset failures 2025-07-25 11:01:53 -07:00
hbg_diagnose.h net: hibmcge: Add support for BMC diagnose feature 2025-03-04 13:45:33 +01:00
hbg_err.c pci-v6.19-changes 2025-12-04 17:29:41 -08:00
hbg_err.h net: hibmcge: Add support for abnormal irq handling feature 2025-03-04 13:45:33 +01:00
hbg_ethtool.c net: hibmcge: support for statistics of reset failures 2025-07-25 11:01:53 -07:00
hbg_ethtool.h net: hibmcge: Add support for dump statistics 2025-03-04 13:45:33 +01:00
hbg_hw.c net: hibmcge: remove unnecessary check for np_link_fail in scenarios without phy. 2025-10-28 19:11:04 -07:00
hbg_hw.h
hbg_irq.c net: hibmcge: fix rx buf avl irq is not re-enabled in irq_handle issue 2025-10-28 19:11:04 -07:00
hbg_irq.h
hbg_main.c net: hibmcge: disable Relaxed Ordering to fix RX packet corruption 2026-05-28 12:59:36 +02:00
hbg_mdio.c net: hibmcge: remove unnecessary check for np_link_fail in scenarios without phy. 2025-10-28 19:11:04 -07:00
hbg_mdio.h net: hibmcge: Add support for mac link exception handling feature 2025-03-04 13:45:33 +01:00
hbg_reg.h net: hibmcge: add support for tracepoint to dump some fields of rx_desc 2025-11-26 18:22:40 -08:00
hbg_trace.h net: hibmcge: add support for tracepoint to dump some fields of rx_desc 2025-11-26 18:22:40 -08:00
hbg_txrx.c net: hibmcge: move dma_rmb() after dma_sync_single_for_cpu() in RX path 2026-05-28 12:59:36 +02:00
hbg_txrx.h net: hibmcge: fix the division by zero issue 2025-08-08 11:48:49 -07:00
Makefile net: hibmcge: add support for tracepoint to dump some fields of rx_desc 2025-11-26 18:22:40 -08:00