Article View: linux.kernel.netdev
Article #13860Re: [PATCH net v2] net: stmmac: Clear DMA errors for multi-channel interrupts
From: Magnus Leatti
Date: Tue, 10 Nov 2026 09:52
Date: Tue, 10 Nov 2026 09:52
41 lines
10178 bytes
10178 bytes
On 11/10/26 09:30, Paolo Abeni wrote: > AFAICS 'statistics' here means accounting of some corner cases errors. I > guess this could be a preferable route. Hi Paolo, Went and measured it, since my numbers from this morning only had RBU masked. YT6801@7.3.3, this time with RBU and RPS both out of the dwmac4 abnormal mask. Floods first (4x 64B UDP, 3 runs): 0 MAC irqs and ~3.2M of 9.6M frames delivered, in line with v2 and with RBU-only. Still 0 with 8x UDP + TCP TX on top. Then RPS: each XDP attach/detach restarts RX and raises it once. MAC irqs per attach/detach, 3 cycles, idle link: both masked: 0 v2: 2 RBU-only: 1.5k - 25k stock: 0.9k - 32k The fun part: I expected RPS to take the board down the way RBU does, and it didn't. On stock and RBU-only it's a burst that goes quiet by itself, and the box stays reachable the whole time. My guess is the RX handler acks it on the next frame. I did not try an XDP attach in the middle of a flood... So both masked is the only one that sits at exactly 0 everywhere I looked. The price is rx_buf_unav_irq and rx_process_stopped_irq, which stay at 0. Scope: I masked them for everyone, like d3265c19b35d did for xgmac2. Masking only under multi-MSI would give the same result here and would keep the counters on single-irq platforms. Usual caveats: one board, and it's a 5.2 core so only the 4.10 mask ran. Magnus
Technical Details
Message-ID:
<20261110095211.16184-1-magnusleatti@kernelriot.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360043-linux-kernel-netdev=dewy.ruReferences:
<20261103125430.962715-1-maxime.chevallier@bootlin.com> <179379704484.488856.2140619507341432623@kernel.org> <20261107100140.8279-1-magnusleatti@kernelriot.com> <817d2bd1-64fa-4a6f-bec6-5a4dd4d3a76f@redhat.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360043-linux-kernel-netdev=dewy.ru From: magnusleatti@kernelriot.com (Magnus Leatti) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: stmmac: Clear DMA errors for multi-channel interrupts Date: Tue, 10 Nov 2026 06:52:11 -0300 Organization: Usenet Network Message-ID: <20261110095211.16184-1-magnusleatti@kernelriot.com> References: <20261103125430.962715-1-maxime.chevallier@bootlin.com> <179379704484.488856.2140619507341432623@kernel.org> <20261107100140.8279-1-magnusleatti@kernelriot.com> <817d2bd1-64fa-4a6f-bec6-5a4dd4d3a76f@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="601037"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wzUyDTmZLoKZd+GgUpazeQJYHjY= sha256:DREnJ+AXNrru75J6YJ3yTWrs0usAWhqklB6zlyzk60E= sha1:EC/u6fMraxUA2hRrp8VSKxK3mOU= sha256:EuJIZhOkzItvrc1Cq6MdOBDjVMH0GB7w5rT92jPRQv0= 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 63769113B61; Tue, 10 Nov 2026 15:13:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernelriot.com 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 0POv5fTyhICm; Tue, 10 Nov 2026 15:13:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-360043-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=kernelriot.com X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id DE81C113AF9; Tue, 10 Nov 2026 15:13:36 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id D93A8147FA4; Tue, 10 Nov 2026 09:54:09 +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=1794304359; b=lyifxVM5P8DAtGdBNq3R3jn2TitBvRb5ik3/XPmCe9qteVX5LnT++YqRdMRbtG8iHNsV RqA4oZ8/3YkCnbp/AW4/q2iQX6DCmbP/7WMzp+bA/dZae6ImbsRaidtTS0qdBsBmZigWS hRBMKOiv4MngnsdBngcrskj9cpolpWiw4X6GUKIWzi5ubpcudSeCyUszklWouNjbsYX9U mMtfWZpivK1eyQTgUC5PeZ78akP/eoYY+F07qMpDpAm58zH05Xos36CY7vjSo88luAbuZ 8WP2ILqW+6RqBCctUcNb4/SmaEV8RLmmkOFh/1sNEriX7SC/24x+88D/8Vx9jFZLQGQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794304359; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=n0D0+tx7FbyqEL0k4/TajM7uZjJ5rllM2A/2eggVTKc=; b=M26pmXZJ2ZpOuG2yRLgoJ2NB6viKMtDaZ8prCz7JZMqQiYcT1UH7aXK8MtvhjywVFZX9 eX6xczLWQro/a42uhpAakb4lsbqSZL0XC0Rwp29/czszpEMn7zp+Buk6WQ5qQxOL1sjeL TMRxKu+CzOxR/JpHUwEbEkOuApKS87joYUnVsr0ImqWFZ8n3LGdUT+BpmyKpCzc7UbQ5N j6vLQjXX8Z2Kj3lEGQWln+yhEfPvy5weoZkgOWrTNAT6VYgoxLL5aLD8oatzsyYeOlzRH QqF3I7lArYpjax37s7hQnxio9aNfXaxbdMVbZzNhDG7Tyl4Cf6wPSbf22qd9CNooZqA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernelriot.com header.i=@kernelriot.com header.a=rsa-sha256 header.s=kr2026 header.b=IIflIg2E; dmarc=pass header.from=kernelriot.com; spf=pass smtp.mailfrom=kernelriot.com; 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 A2A91606B151; Tue, 10 Nov 2026 09:52:39 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernelriot.com header.i=@kernelriot.com header.a=rsa-sha256 header.s=kr2026 header.b=IIflIg2E X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.208.142.49 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794304358; b=tRznYmiWmNctRDdRokRdR8jCJaX/89ZiyqC1k0KT4rg1EZ3VuiSJOxchbD64t3fiVFBB UpJ5gwTt2zbYPq7sjwXebmFMtlis2f0/TZREDe4upFMfhpMNXz9z3ixWolKKO7dMnetZ2 wfkew4dYkdksZBoe7qcNdqZNoiU68D4uWhpTXRJ6uQQWO3OcIqktmFIeik7mrW386N9GI TwKpaLDVJHLvM48UuEfcnLPhfKWMJxSwhqRpqXM9ryMgegobOxIAt5fFfwjTVvN1aEXH3 bMsVhPzVhCwnozfW+LYKE0qLPvO32r9DhMunxrfp1ZzsFNxjjDU22/c6kBChEuQEVgg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794304358; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=n0D0+tx7FbyqEL0k4/TajM7uZjJ5rllM2A/2eggVTKc=; b=Da2rvd+iRt4k344O52ayxllB3gqaN0xdUMtOU4QvISRXB9wzInnlGsDPKC4DORdwJEBW DmJp7YqY+qk7YS7tnEkOcC4A2kIuuzgDlE4f/7GFkcFlx1elXjo401HVLH1XFD5iMBP4x zJt5v74KvBRITN2GOympLMG7Q3GYAXWjdpG38vLEgCPcAivliQN2kqjlPDlDEMfeYPIZx hb9Za5doslZA/8cZ5FNt6l8IB+lRn/f0/XhvjW6NkeP8XkQA8kR0vjwKJRSPet41uUa2h jiR8CbyJt7/1HdObYZAbPE99SbBMW1Ow0vwgsN78hueM+cbSbE4ByzVR41U7i9mGUaA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kernelriot.com; spf=pass smtp.mailfrom=kernelriot.com; dkim=pass header.d=kernelriot.com header.i=@kernelriot.com header.a=rsa-sha256 header.s=kr2026 header.b=IIflIg2E; arc=none smtp.remote-ip=74.208.142.49 X-Received: from mail.kernelriot.com (mail.kernelriot.com [74.208.142.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CF3A606B149; Tue, 10 Nov 2026 09:52:38 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5CF3A606B149 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kernelriot.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernelriot.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernelriot.com; s=kr2026; t=1794304357; bh=OmSerbMpq8gn3IS3GN6ckwDmRq4C2MPhAgkxcbG8rmA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:From; b=IIflIg2EfwUPjp+E9jfJgmJyWG5mRTMPmDy/lrl2OeraBoKAvAo4jC360znMbuDNy v+qsloPdkEaIdJBwwfLnuNRQLvvO2AMF+D9yMzPhzQ6zvjArQqmtmgdDk4HDhRucL7 0a4tDEdI1gQd31MAAl8FEczSjOzSRFgHl1L1W25Yk6yEJ9usOBC3DckCT/1KFesMvB wU5c2x+3uRiwrvLZwaxtood52WGXUjvKrZAsau/MittT5xXsiEhtMuv9a2sBFGQwwm oSnNRoxqgtLyQ7IM2jeX2SftUooSlFygvoVY1hqXrMi15eFnfDmv20Gx4oriJTCB84 zgTht6z0VKkXw== X-Received: by mail.kernelriot.com (Postfix, from userid 995) id 40D4F81428; Tue, 10 Nov 2026 09:52:37 +0000 (UTC) X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, Jakub Kicinski <kuba@kernel.org>, davem@davemloft.net, Eric Dumazet <edumazet@google.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>, Nicolai Buchwitz <nb@tipi-net.de>, 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-Mailer: git-send-email 2.56.0 X-In-Reply-To: <817d2bd1-64fa-4a6f-bec6-5a4dd4d3a76f@redhat.com> 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