Article View: linux.kernel.netdev
Article #10378Re: [PATCH net v2] net: stmmac: Clear DMA errors for multi-channel interrupts
From: Nicolai Buchwitz
Date: Tue, 03 Nov 2026 13:21
Date: Tue, 03 Nov 2026 13:21
43 lines
10280 bytes
10280 bytes
Hi Maxime
On 3.11.2026 13:54, 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, and call
> stmmac_global_err() upon tx_hard_error to avoid possible races with
> other interrupts/napi.
>
> 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, 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
Technical Details
Message-ID:
<4ae868bcfbdbc0f74ea5a9d57094e7fe@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-355632-linux-kernel-netdev=dewy.ruReferences:
<20261103125430.962715-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-355632-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: stmmac: Clear DMA errors for multi-channel interrupts Date: Tue, 03 Nov 2026 14:21:32 +0100 Organization: Usenet Network Message-ID: <4ae868bcfbdbc0f74ea5a9d57094e7fe@tipi-net.de> References: <20261103125430.962715-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3173667"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:kOPacmVpflUmaB7/QuKVrd4aGr0= sha256:FnZZ2hOwJS/85fye/aF2vlrSnP5mhl263lNjTWtEoX8= sha1:Eth4173L2EpBFrwYpMlTZQ9y8/U= sha256:V2pf7J9RubzvsTkKeMcQylQpJKRKlLfl1QxJshb5CRs= 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 C1A871128A8; Tue, 3 Nov 2026 16:31:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 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.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-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 cgLm_tr_TO0V; Tue, 3 Nov 2026 16:30:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-355632-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 5761911289A; Tue, 3 Nov 2026 16:30:50 +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 AA1CE60A9B1; Tue, 3 Nov 2026 13:21:56 +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=1793712113; b=zkIl6YF3t3WQ3jv3MMAIJMIBVVE9l8+E7nnWnv4kFBvaWH2R/RFSyf+xX0yAv9OMLQ1E emDDp+Kn1R2cFnVdlWgjUoqq+5JcGWARgYlJW+Q8QQlkcMvrYBregNzmbT2CedgQTCPew 3MyksZ/YAW8gWWChdQRPdIWX3nRI9PmagQ1MSHb8PDoKZVeZs6La8uDXblnB5ibLT83tH CDx1XRZrVGG39gWLYEHvVCMwKxU5NHYVlfyCJh0z0ufvQWes3Y8mdvOZKUvxb6RfqOA3w rJ+Kq1D9gr6W/NqJOYMw57i/tmdpauMNaBrdgPSKTXk8IU1qGHGH74SlhvRY/KNRRZg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793712113; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=4i7JeNgS3PqRN89dO+cpnOVMM3es4j1AZjQVBIQdGUs=; b=2MalRQnw6bOeaiL3LqoOEj8JhbpwrFNbEnSAZMmFYR5t/XGZpnyCLjtct7mz4/43LJFi 0i9t1F+c/zOj7lQH2FSfUIeovodSVhFq+88hnKkTpuXL0TUS+iX8Hb3UqVNY7eThXh2it vHnSBEvSLR+g4t22kaiiwJdyPZUr5mkqSdkpzUcBUpiATgjt37JsKFQHkZxOJKgcbZBub 79KQ62m/sW8LiNk5NiQfPkOvk/VAxT3Cmla2G+C/WrA2ByUvHul9osWbBC6GmoRhDLbXc x+P74TOZhvwSkKO7dfbpKQ+lgktKFSAlvHlgcy6Eb8EK5ydYBC+xwePZ9o5brRpsZww== 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="t+URNc/r"; 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 9E56A606A329; Tue, 3 Nov 2026 13:21:53 +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=t+URNc/r 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=1793712102; b=ld/p99km7FyuEUa3mG6WLK+hr5iI/3+uj/sEvMzX58Q2Irp3L+oQmifuvhl7Z8X+QO69 nVbJsuSDioY4+rzhhFKTD7oBxFuIsA0dgpV7Mb79Coaq9q37fHTu62z9ggumlYoq3I/59 vCGOPxxVf9Ea5QJjuVvoUi8eJFD+NVsejabyMVH00HBC9pfcq9aX/9tvLdcxr1oXQdUIZ NroAoH5cEPOSbopXpHCW93zUd8zPdc//D1bXHsrryO8q3/OZke9C46Au1AnqBX3nnRDaM CT00r7mosi5topudgPcgYZ4SSaj9XgUvie7KqAqh7Il55Z/nDtmIdxzM2WqjudX52sA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793712102; h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=4i7JeNgS3PqRN89dO+cpnOVMM3es4j1AZjQVBIQdGUs=; b=Ch7wppAAi3tPECy0zVGzjawA7z0tnN4bb9vPi29mp0CMFE+dBZi/1IQC2ZPYfkhQ0/kH OG5H2G8Cjxe1qrk5K0wPX9AFtiDy/j6S/PYHSxjB1tCenbDH7vGhu0iuQewDYuPx0CChp LeTqZOjZJBe4CNVzzeifIgVaGWgRIriBf93B/PZW5VhAL/G840bCAPtdg/wxp8dH0J7SV q+HzcR/xoli7nyiAfU3CKk81fF+V1RkNtNrhhRunT8ylSkZ6rIDLEiIASq6NoZh1R/bF1 BXISdUNVWOjX4Bf1Npu41lzRIZDVZMm3JgO5W+SSN18bGBBPK8DzY88f4C1y/3+GWlA== 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="t+URNc/r"; 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 D630E606A32F; Tue, 3 Nov 2026 13:21:39 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D630E606A32F 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 12ECFA1648; Tue, 03 Nov 2026 14:21:32 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1793712097; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=4i7JeNgS3PqRN89dO+cpnOVMM3es4j1AZjQVBIQdGUs=; b=t+URNc/r60MoZy96AxoqAKxv0aiqloRdmJ8e59KAjvzK44rrpCrCXMkv5SoSrCNrtzbeAa Vks8GVOW6j9f+vuuDEjqctWXcvSomv0vXToVIMFyptKvJQtvox49KLs9kRYFh42UsWAfSp Rj86BtBBuyrn1m8O29j/zUEqPgfCN/CS0yT1ia1e7HiiXMl0vlEcOs8Th2kR1Ok+sOwDnv BQrsLKs0luXhMQIqI3NqcpJjWvrR7fFScABtyplK2GhaWDrJ3LFYf9ikDPWcXjYQpQqKxN zxHfBgs9QdAF+cA+KtBYYIQtxg7o2WIATF4bMlBoejUxDN2a9ymII9qqmRRdtg== 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-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, Jakub Kicinski <kuba@kernel.org>, davem@davemloft.net, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Russell King <linux@armlinux.org.uk>, Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>, Magnus Leatti <magnusleatti@kernelriot.com>, 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: <20261103125430.962715-1-maxime.chevallier@bootlin.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3