Article View: linux.kernel.netdev
Article #6386Re: [PATCH RFC net 0/6] net: macb: fix TX stalls, IRQ storms and a lost NCR update on link-up
From: Nicolai Buchwitz
Date: Thu, 22 Oct 2026 09:55
Date: Thu, 22 Oct 2026 09:55
62 lines
11056 bytes
11056 bytes
Hi Steffen On 22.10.2026 11:38, Steffen Dirkwinkel wrote: > Hello Théo, Christian, all, > > I've been looking at RCU and TX stalls on macb devices (Xilinx ZynqMP > on > Beckhoff CX9240) for a while and have been carrying downstream patches > similar to Christian's. A while ago I let Claude try to reproduce this > on my > devices, it was able to reproduce and found some fixes but I wasn't > happy with the quality of the patches and my understanding of them. I > briefly talked to Théo in Prague and he suggested I send what I have as > either the patches or the reproducers may be useful for ideas. > I've finally gotten around to it and also ran some more testing and > improved > the patches in the meantime. The series includes Christian's patches in > the > original form (should also at least be reworded) and I also have Patch > 1 in here > since the bench seems to have reproduced the issue on hardware (see > below). > > If anyone has other ideas / patches for these issues I'm also happy to > run tests on devices. Thanks for posting this RFC. I will go later through the details, but wanted to let you know that I'm also investigating the macb watchdog issue on RPi RP1 [1]. Yesterday Théo also shared some findings in the thread. Three things from that work which touch your series: - Patch 3 changes the IER write in macb_tx_poll() that I need a readl after. The write is posted, a TCOMP landing between the ring check and the write reaching the MAC is lost. That seems to be the RP1 stall, masking TXUBR does not change it. The two patches need ordering. - The watchdog only recovers a lost TSTART. With a missed completion TBQP == tx_head and macb_tx_restart() does nothing, the queue never comes back. I have a patch that schedules TX NAPI from macb_tx_timeout() when the tail descriptor has TX_USED set. - RP1 has a single TX queue, so the starvation from patch 6 is not what we see. I can run the series on an RP1 board with my reproducer if that helps. [1] https://github.com/raspberrypi/linux/issues/7661#issuecomment-6322904343 > [...] Thanks, Nicolai
Technical Details
Message-ID:
<21335ef00521312c158b0a71bf8ef08d@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-350494-linux-kernel-netdev=dewy.ruReferences:
<20261022-std-macb-v14-send-v1-0-9187bc545bf6@beckhoff.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-350494-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH RFC net 0/6] net: macb: fix TX stalls, IRQ storms and a lost NCR update on link-up Date: Thu, 22 Oct 2026 11:55:49 +0200 Organization: Usenet Network Message-ID: <21335ef00521312c158b0a71bf8ef08d@tipi-net.de> References: <20261022-std-macb-v14-send-v1-0-9187bc545bf6@beckhoff.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="182340"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+clELJY1O+NU3DCg6bp3dKiRVLs= sha256:uhuy3L0sXW5AMuc+eX7iRklEi17I/xpxQloezTeYJTk= sha1:LwXQvlyluE+uYvkB7fQ2sdfP+UI= sha256:VksD57volTasBIkIdmidEmzVhLZ69e3YIZ5Zy5Rwqso= 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 D366911122B; Thu, 22 Oct 2026 13:02:26 +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.25, 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 oB4x6-YdPLPU; Thu, 22 Oct 2026 13:02:23 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350494-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 69698111204; Thu, 22 Oct 2026 13:02:13 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 0519E3157A; Thu, 22 Oct 2026 09:56:12 +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=1792662970; b=wys0xX6RDHyVKPIPze71uS4F9z+sEKwm/ByCXImxXRwuIwfiA0sa93IqD8yWciZHy+lH y2J6HrPxAgMkQTfdzIHobiAPfacijm0iYEx57g4V5EO7iP5YDepznGPeCxHsU8IS7kq4u PhKQ0kXJkW2Kvjmsdu6E8yRPlMwE9OSEi+QkKuV4hM3uu6yntxOH0zu79bYpI9asXfeCy deTSzWNDir9my9eFSFZ1+6P72lPwFLgqMSoEvqFzkx2wl0e+NhytSk/t3zeJUzyNW1U2T QLpoTAGCq2CRY8gSOYym+jN+pHHR7ohP4MX6bvqCU49VCYf4W4aqpauW4TK++hrQobw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792662970; 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=qaKCa+TjoD1OzgCla43bUHaZNaOHmxBbECmuWAdteZU=; b=k6GFTV716fnoyyZDbmUaVmlW4RtnxKPkaduKGljkUCALDKnmBed8m1JXVyYn63IlfczI bWTmoRqByrTx0C0DmOH4YfyAEjB4+SluWgp8RZ4JazwZ/iCyDwItnhceC5PfhfBlh0Btr IkSUYkIK8IKD98ogdzvwgvIFIjALYFyyurJr8IZRmTZ48Gh9k34UbbPubzLzWc+liKQNR pDur5QJBsAG1jb0NTxWhC0A/T/E95uZZh+/n0RQuiIbuLb2rjZ90B8Y6lZ+WvCMCtoU29 iCYUTJTKAiTNaN6YdsWlcMJFs+l/sFIvWkvUwNbzq+hL+ZEjZU9+li7cMyNgbOyrACQ== 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=jkGd8yDi; 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 6F7DD606A322; Thu, 22 Oct 2026 09:56:10 +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=jkGd8yDi 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=1792662956; b=A1fRWVaeErbHcRdDSACdxtyO7TIirA1RykCwSr3jyi7gR3YJKxo2txvIFLuk/XleQFxj Hpm7hQmiOS0Dn0Mkv/Y7F0NKNDs4Nj9u+4xXSN+KpbGVY68keqpkDJ1NaX7lzHT64E0eO 14ynsuInh5mcNLTwDomHKJgbp99Gu6/AbxDhrYm/cpe9osBWjDg92YHEp3YLtxdanfHkB MqkF+FN2vRxE3rqH2kAi1e4BzhXmlmtzlnj17lLv2tFYJXGqfbfDmdSweZBz1STMsj+p6 D/sj4waaScy9LOoyZdUF1T/XSlMa1dh/hwx8qxXWmlR/vy0Fo5XbYg4IY/rVTxQ4GWg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792662956; 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=qaKCa+TjoD1OzgCla43bUHaZNaOHmxBbECmuWAdteZU=; b=OUwhChYVm6l0F1RaGKFSKV+35kizMKdytXYJ1AV4B/W1PaW6CrsOjZ1NslSqqDq+NgXF /MohJ0fDOryt/mtYlqZh9b/Rpb0t7JPkOOsIYq879VSR9RaV4TmfvCg1RJSmZf7S9IsSi P8a2Xj880aMhGrGvoHiQUlZBlBxupDmp1qkvSk4oV3r78nMe01uy8PysquMVg2oKkyVDt VEsKF0YwgMmcw4+uz4wLV3QEwZpNnStQQKw3kDURXwxJIUjbiYzjpR3FaQEdxl2+3pXvQ oDnXw+OfgKFTze0NyWj54JHt0BHBGJPWE8e1KVjtX7uXfkUaxNHQUCpSCIg9kNFd/Tg== 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=jkGd8yDi; 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 C6E95606A31A; Thu, 22 Oct 2026 09:55:54 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C6E95606A31A 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 7DD1DA002E; Thu, 22 Oct 2026 11:55:49 +0200 (CEST) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1792662952; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=qaKCa+TjoD1OzgCla43bUHaZNaOHmxBbECmuWAdteZU=; b=jkGd8yDibczG1IzorFlU0eIzFeR7ouTn8kpjRjh7Z8+AH6tILxsPy7X8E6zi1qSBFO3315 jQlgC/jX1h+tP+NaF80fxQlpB8233HvEKYYKL800t+7a4eKgLcXQR2u8HzuPl1gDTMsHzz SbuOVUx5ThCI120xgTHKGO+alPwUBXrcwj2lJh6sPxzUTMuQ34ZbLN+XkJgYdC4lOKq9On S/X935HMwWM3CjrtsQS+LxSbro1EOAqgNMuJDxX+kLIiGC2r1HZhdit+DfyxjJ4QQM3z2w nRmDL/QS1EoyeIDeuP/hln1d3WluMMJ2ILpq7LHM2WnI1LG3GqhAoy9hyZs7Ww== 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: Théo Lebrun <theo.lebrun@bootlin.com>, Conor Dooley <conor.dooley@microchip.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Kevin Hao <haokexin@gmail.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev, Christian Taedcke <christian.taedcke@weidmueller.com>, Andrea della Porta <andrea.porta@suse.com>, stable@vger.kernel.org, Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com> X-In-Reply-To: <20261022-std-macb-v14-send-v1-0-9187bc545bf6@beckhoff.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3