summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2026-08-20 20:43:46 +0800
committerJakub Kicinski <kuba@kernel.org>2026-08-22 13:49:13 -0700
commit11efd7963dac9b036a7c9a435ab0e621188910e8 (patch)
treea3ac03352931e9c46c3a95dedaad680c239418cc /tools/perf/scripts/python
parent137b8ae233cabe7fc77cce86f5ba33bf1b369e26 (diff)
net: hibmcge: fix page_pool DMA direction mismatch
The driver memsets the RX buffer page head to zero before submitting it to hardware, then calls dma_sync_single_for_device() with DMA_TO_DEVICE. This sync direction does not match the pool dma_dir which is DMA_FROM_DEVICE, violating the DMA API contract that the sync direction must match the mapping direction. On swiotlb platforms the mismatch can cause incorrect bounce-buffer behaviour, and CONFIG_DMA_API_DEBUG emits a warning. Switch the page_pool dma_dir to DMA_BIDIRECTIONAL so that the CPU-to-device memset sync becomes legal. Fixes: c30595917585 ("net: hibmcge: add support for pagepool on rx") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Jijie Shao <shaojijie@huawei.com> Link: https://patch.msgid.link/20260820124346.4097115-1-shaojijie@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions