Article View: linux.kernel.netdev
Article #9012Re: [PATCH net] net: stmmac: Clear DMA errors for multi-channel interrupts
From: Nicolai Buchwitz
Date: Fri, 30 Oct 2026 19:33
Date: Fri, 30 Oct 2026 19:33
51 lines
10119 bytes
10119 bytes
On Fri, 2026-10-30 at 11:22 +0100, Maxime Chevallier wrote:
> 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. It's
> already properly done for the single-chan interrupt, and for that
> introduce an "ERR" DMA dir, as we don't want to touch the RI/TI bits
> when handling these interrupts.
>
> To avoid duplication, the DMA TX error handling is factored out in a
> dedicated helper (in the same commit to ease backporting).
>
> Both of the above storms have been found on dwmac-motorcomm (YT8601),
> 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, and on dwxgmac these interrupts are masked as of today.
>
> Fixes: 6ccf12ae111e ("net: stmmac: use interrupt mode INTM=1 for
> multi-MSI")
> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
> ---
> [..,]
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
thanks,
Nicolai
--
Nicolai Buchwitz <nb@tipi-net.de>
Technical Details
Message-ID:
<3eb9f731c0facedbadfcba6ae490862e7f6e3fd1.camel@tipi-net.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353897-linux-kernel-netdev=dewy.ruReferences:
<20261030102251.208929-1-maxime.chevallier@bootlin.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353897-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: stmmac: Clear DMA errors for multi-channel interrupts Date: Fri, 30 Oct 2026 20:33:12 +0100 Organization: Usenet Network Message-ID: <3eb9f731c0facedbadfcba6ae490862e7f6e3fd1.camel@tipi-net.de> References: <20261030102251.208929-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2302549"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bNT/Gkgft7a3iy4tZ/8mD3PzaNI= sha256:YlrA9c3dSkKw3yeNmsLJX/6jgfaETS8qn5Ij20XEyPM= sha1:/6khchrFJJlGmPidMVCTDxWzfoE= sha256:/dSl6qaaKBi0m725p5svkg22eXOyJwqWloupZkbbLXA= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 86DDB125CA5; Fri, 30 Oct 2026 22:33:58 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.149 X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=tipi-net.de X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VE-6H3vJE_v1; Fri, 30 Oct 2026 22:33:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-353897-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id ABFBD125CA1; Fri, 30 Oct 2026 22:33:45 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id CA5DD601120; Fri, 30 Oct 2026 19:33:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793388816; b=VGwzr+FqYkEe7AfCdABVfCOwel6eMJIOCqYpaMxS4upeZ2M0PzwggvF6NsB2fxmuTuki wk3T84hDXAroJF12NvUjNuELsxAdmR1+K+W3/2hSBdjHDMRM71ogQFQy1/LTI+/2PPHMA ta0B2NO/dXv4T68XAcMP0rrnk9t8Mbu7WOzRS2KbJWisnCadCAe+V62uBdcWHrnJuxY3a VZNmoi3HSQ1j65L0a0QU8PeG3b7dEUklaV5uFe1iwKi3ARQ6xCYEbcbLbru3a14uG136q oHl9xSL0mPcX4bVfp9Zns27XKorkAoGU81anv99DjBvFkQZTV4CMXk5OmdBKcEbY08A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793388816; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:Content-Transfer-Encoding:User-Agent:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:X-Last-TLS-Session-Version; bh=QtGA4oygWFl5CX8vg4imBuTm2I065I8hD6TIKVaKg5Q=; b=FYcp90DaRWgIzMVYg1Ptkuq5XpKKLtg9kfTiF0d4PvsV2RL+SBAkXwobTkig8+YQquXq IrYUp3nbYDfnOi4titKGmm9S4HA/uglUBPOsCeqAMZSpMq1gqJ6t/CQzv3moq/R/sUfgS w6Zl8jVSN+KzyWha3xuJXG9pVYOENbQs/1OY2Orj58ZY21OVx6bBahXHPn/f0akOYNqly 31w8alDBgx+kGDLTB5fYqIYi9q87fU5CpspLG8ObAoUgWD20MmEKgzAQOwv9osZPcdcGu Weck9pj8eBelzXryNlsOo52S81ghTQ09FbHRe/bkDFRRzlrd7Ln4XZLUyV1qaWYjvBw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oN0n3S4G; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26656606A325; Fri, 30 Oct 2026 19:33:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oN0n3S4G X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793388812; b=nhPe8+QLhyWk7CeWuoNkD7iqLG+vao4UgdzE9UgY2ZwDU6Iv4xvipR/YkhSohV3Scs1J T+aco+ucT2UisW7c4+0e2YUHArIgMVHd2VDUzH+ONZ5F+b9SsQKdXRounA2BanZc1adPZ Dw0oLQn5rCIsla+1flUwID+vTbqL52QeT68G1keNacsNe2Sj2eB6BHaxxtM7oxFxl3Pcr 8wtoJVJE5FLQC9P5zgsQu7X4qdNgVGrx2GpKkL89ctpfQjkhQtIAwPPOo4wR6vTcA7/eM bFjnzOGDBmxgNKGtjE0BR5AbteIV7O4PojXaAI/gAtIZmg7ElawWFONqVDrYeYiw2pw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793388812; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Subject:From:To:Cc: Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding: User-Agent:MIME-Version:X-Last-TLS-Session-Version; bh=QtGA4oygWFl5CX8vg4imBuTm2I065I8hD6TIKVaKg5Q=; b=UOrDTrosYaaGYxVWDkuNzuxP1syHdvMqbe9q7fQnqKJgXma572G/mEnvQQN9ksk0NGAu D3YwFQkY+5aZdTqWMjik2N3FerdFisFqNJ6GD0pKuyA6iHyJWxpdKnyPmelnbYdH2fmw8 lXJwvYPmsk1HDCouFqr1/TxPJ3wiY25kjafHveXe1C/qh6Hi+DWq1P1ScCNORqjLU17ba 3o33rohoFYBwCfm2RZpzstl7fxdH4kBsCddux8LEh6bt8rLuXy0W9xIyAz7PAL6S0dbkh LMeysCyUJ1vBH1vUYGpP+WhZTUY8JOxnOFplw9Opr4IhkN+93U8Y5f2Wici8ZmFM+iA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oN0n3S4G; arc=none smtp.remote-ip=194.13.80.246 X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C57B606A31A; Fri, 30 Oct 2026 19:33:30 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C57B606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C6F0BA12EB; Fri, 30 Oct 2026 20:33:13 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1793388800; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=QtGA4oygWFl5CX8vg4imBuTm2I065I8hD6TIKVaKg5Q=; b=oN0n3S4Gd2LVGtKCDgtH54i2pOhilG/jMIpjCCAbd3+LpXofGFf61vIwpzBwcPREbEm7an p36ug+Vmik11e0AUTxf2NB1yqnHB4rwsnODkaL8EL2UbcvZU3CHWaxhC+neli9Zp9dfxlD btxU5LaG2pvvU9A8D7RiZyM3xNlZHkH9KfGP8aI4/N6owHRlg2hxePioLhy5eoVvTdabdE bK0stGfaC953F3oRg4QwmORBbTF4u/pCuXaBsSo5tYEXb6scv2o3bpyqX4lzrM+lIAeRpy aCYoEn1Hu6NiXRxuyfTYeH0C9anNwX5JSuXWI5QjsnWeABE2TksgvkP93INtIQ== X-Cc: thomas.petazzoni@bootlin.com, Alexis Lothoré <alexis.lothore@bootlin.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-In-Reply-To: <20261030102251.208929-1-maxime.chevallier@bootlin.com> X-User-Agent: Evolution 3.56.2-9 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Last-TLS-Session-Version: TLSv1.3