summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2026-11-13 11:32:35 +0100
committerJakub Kicinski <kuba@kernel.org>2026-11-17 17:06:26 -0800
commit686b5f47f8cc6ec8ad092dd10d944a75d731ea5b (patch)
tree34a094470ffa6ff8ddd31f633bfe4bc689d3128d /tools/perf/scripts/python
parent035fe1092f38476f7ea14705cf735640fd217f0a (diff)
net: stmmac: Clear DMA errors for multi-channel interrupts
The Multi-MSI interrupt handler doesn't clear the DMA error interrupts, and this leads to interrupt storms when one of these interrupts starts firing : - The RBU (rx buff unav) which triggers under high traffic load This triggers easily with iperf3 and small udp packets, and shows when running the netpoll kselftest - The RPS (rx process stop) which triggers when we stop the DMA RX. This one shows when restarting the RX logic without doing a down/up cycle, like when attaching an XDP program. The XSK kselftests triggers it. Let's make sure we clear these interrupts for multi-MSI cases, and call stmmac_global_err() upon fatal bus errors. For that introduce an "ERR" DMA dir, as we don't want to touch the RI/TI bits when handling these interrupts. Both of the above storms have been found on dwmac-motorcomm (YT6801), and are triggered by the xdp.py, xsk_reconfig.py, xdp_features.py, ring_reconfig.py and netpoll_basic kernel selftests. This seems to only affect dwmac4, there's no multi-msi mode on dwmac1000 (except on loongson which I couldn't test), and on dwxgmac these interrupts are masked as of today. Fixes: 6ccf12ae111e ("net: stmmac: use interrupt mode INTM=1 for multi-MSI") Fixes: 1b9707e6f1a9 ("net: stmmac: enable RPS and RBU interrupts") Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Reviewed-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com> Tested-by: Magnus Leatti <magnusleatti@kernelriot.com> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Link: https://patch.msgid.link/20261113103236.2184751-1-maxime.chevallier@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions