🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18065

[PATCH net v3 00/10] net: au1000: Bug fixes

#18065
From: Florian Fainelli
Date: Tue, 17 Nov 2026 19:32
80 lines
14825 bytes
This series fixes RX descriptor recycling, receive filtering, MDIO error
reporting, TX ring synchronization, MAC/PHY lifecycle ordering, and TX
bounce-buffer bounds in the Au1xxx Ethernet driver. It also adds the
LAN83C183 PHY resume delay needed for MII clock recovery on the MTX-1.

Changes in v3:
- Drop the no-platform-data MAC-address patch: in-tree platform devices
  always supply platform data, so this is defensive hardening rather
  than a fix for an in-tree configuration.
- Drop the buffer descriptor free-list insertion patch: the affected
  list is only rebuilt during teardown and is never consumed again.
  The series now contains 10 patches instead of 12.
- Distinguish MDIO write-completion timeouts from pre-write busy
  timeouts in the diagnostic message.
- Clarify that the LAN83C183 recovery-delay patch and the following
  au1000 MAC/PHY sequencing patch are both required to fix MTX-1 reopen.
  Keep the PHY patch first so its delay is available to the MAC fix.
- Remove the unreachable initialization-error branch and PHY rollback
  from au1000_open(). Correct the commit message to distinguish the new
  synchronous PHY resume from the existing initialization-before-
  phy_start() ordering, and reconcile the reset comments.
- Expand the TX bounds-check commit message to cover plain AF_PACKET
  sendmsg(), PACKET_TX_RING, and oversized software-GSO segments.
- Rebuild the kernel and root filesystem and repeat MTX-1 regression
  testing after the review changes.

Changes in v2:
- Rebase onto net.
- Reset the MAC after PHY/MDIO teardown, and avoid MAC control accesses
  when its clock is already disabled.
- Use sleepable polling for MDIO write completion.
- Advance tx_tail when submission reclaims a completed TX descriptor,
  and consume transmitted skbs outside the lock with an IRQ-safe helper.
- Restore receive filtering before enabling RX, with the address-list
  and device locks held to keep the programmed filter consistent.
- Resume the PHY synchronously before MAC initialization, clear cached
  link state on open, and use acknowledged link/duplex state under the
  device lock. Place the LAN83C183 recovery-delay patch before this fix.
- Add a TX length check to prevent overflowing the DMA bounce buffer.

Testing:
The current series was rebuilt with Buildroot and tested on a Meshcube
MTX-1, using the Alchemy PROM Ethernet-address lifetime fix as a separate
boot prerequisite. That prerequisite is not included in this series.
All 11 boot-smoke checks passed, including 15 down/up cycles across
normal, promiscuous and all-multicast modes, removal/rebind after an
opened/closed interface and a never-opened interface, and connectivity
recovery. No kernel findings were reported. The final 10-packet ping
lost one reply; a subsequent 100-packet test had zero loss. The cause of
the isolated loss was not established.

These hardware tests cover boot and Ethernet lifecycle behavior; full
AF_PACKET overflow triggers and fault injection were not exercised.

Sashiko AI review identified issues addressed in the revisions. OpenAI
Codex assisted source analysis, code and changelog revisions, patch
consolidation, and regression testing.

Florian Fainelli (10):
  net: au1000: recycle RX descriptors on allocation failure
  net: au1000: clear all-multicast mode when restoring hash filtering
  net: au1000: disconnect the PHY before freeing the MDIO bus
  net: au1000: report MDIO transaction timeouts
  net: au1000: serialize TX completion with packet submission
  net: au1000: restore receive filtering before enabling RX
  net: au1000: restore RX buffer addresses when restarting the MAC
  net: phy: smsc: wait for LAN83C183 power-down recovery
  net: au1000: keep the MAC stopped until the PHY link is ready
  net: au1000: reject frames larger than the TX bounce buffer

 drivers/net/ethernet/amd/au1000_eth.c | 145 +++++++++++++++++++-------
 drivers/net/phy/Kconfig               |   2 +-
 drivers/net/phy/smsc.c                |  26 +++++
 3 files changed, 133 insertions(+), 40 deletions(-)


base-commit: 145480b28ca82e9fae789427cc4569e596515a32
-- 
2.53.0
Technical Details
Message-ID: <20261117193223.2795612-1-f.fainelli@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365562-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365562-linux-kernel-netdev=dewy.ru
From: f.fainelli@gmail.com (Florian Fainelli)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v3 00/10] net: au1000: Bug fixes
Date: Tue, 17 Nov 2026 11:32:13 -0800
Organization: Usenet Network
Message-ID: <20261117193223.2795612-1-f.fainelli@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="2410138"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hDhcqY1RoDVBlkzxhk1cLq84yeY= sha256:Dh/6JQDwE8GqbL3olzy6UZQbCth0xVhiQsTvJQH8/Jo= sha1:1XvHfHDBb8wHihK6dIjIfeC7cb4= sha256:N7lx9T+B0o/LRTI8vvkTxv/DErNeZQAeMA/BN+S4RnE=
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 40855115058; Tue, 17 Nov 2026 22:33:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, 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=gmail.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 AS2NglZOBDA8; Tue, 17 Nov 2026 22:33:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365562-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 2623B11501A; Tue, 17 Nov 2026 22:33:06 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id DEE1744989; Tue, 17 Nov 2026 19:32:30 +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=1794943949; b=ARZLO6r9Bduxu/fnb7QA9EY1NcFzgiLcNE6gE3DuHRWOXvyRZW59wMyNGMjmy5jIdmWa pG3B8R/sDKf+mO+8kwhMH4xFASD9ooAfNksA5KLeqthlQ1MC7d4cPunoiXIVne18lN2Lb Fydh+i+sLP6dHKQlvyQtNlgDdTfHg2CrjjVQXS2UPzEQ6IeNh6cdCsZaMLaQklNdTSZPp zswz+FntfPtQxTEzslZpglkzA6Hg6N9tpm2/zpYvUk9O027k5lC1lqMwXk6zJte2+pQes ijsgQ0zgb+0CoqJkD7av+5jsBEUipq/8aaEPkWtBoZ2ETQMjBLtKK1WQ4t48Lx7Y1Jw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794943949; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding; bh=blIHNGoq77sgX2t/OQClpCFe4Blt1RrVY9bNJJPMTf8=; b=PTLHOu9g9KWhE02JNWP943XVylWHDiaJLyq1D5+P9T79I5yznWdoLZYSrzm2WyUFk8CL 1QSErqWo5BMb1ck+8BMpic5t6Wcco04QVFFvM9b1DGaqP1ZFCPGKrBG1oSAA8KCjKalWs NBnph/Ekmc7+J/SHpHRP2NI0EGSvGElc34Psz7dWOEq6sAMXnFG3i/c1CDd9Ncpi7Acdr JuKdEiJUZPftal2OQfxNZ85MdPJsEel5/Uvhts+Uw5D35CHZjPkyf85cRUnfx5xCKmKxk J7GkynRkUDt2selAo9vUPxvB2JMEIeRPMSx8jcLpAHl7UH7d8Q9rev+M/cAGOlTO/eQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hUjJRn+Q; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.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 51984606A338; Tue, 17 Nov 2026 19:32:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hUjJRn+Q
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.175
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794943948; b=DybXkl6zxqwRGhDjdPKGbZRpqz/OTJVsgSyAXDpRyShtrHKxwo7Jc7pyDBUzFevpIdSB Z1fjhHHyK4K7EUktmPgVQ7Zh5RhZesZyvv5rHRs6aNUUQBGL+2z3MJ7pr/gFZ4o6HxMWp j5b/80A6Axyugz/UysqhTh1RK4nmvQ09ElY3qfG5651EOMwgl4uqPBJjssdytYX+0cAZN zb68BKV5YX0/ZrqrtSMUgHCP6SXBBAG+J622DN8AQ2YvYZY5PQeIWG3HvwCu1peC+u9Or EQfagyZeJqFds+YO6YpT6O+xSSHgpIek8cLrDWozDv66J6coEiMnN06uRumOk2XmxiA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794943948; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=blIHNGoq77sgX2t/OQClpCFe4Blt1RrVY9bNJJPMTf8=; b=twKBPnjeC+wPopKLfUhjS5LJMSgvzwwYIlnQLlseJPFFtTBrEV+P3kjdJKvUJvDGF9Ce lJIpg07WdFKuOjh8JwI0CSVYpMi4H2Ir8BJpaNSMi9YrakWsoDiqRx7oxDK6nCoOCItBk wU84J5fZs83TxGrlBiq8QjDFxDKZoqPFjggbQNqpUCZbcHOPqq/n6/ue478TXxh7Px7ZW OKiCukR+S0eFIxXd6VSLqyXsf7n9j9KrlXujrcXPMR1dvBtvgzPhLxHhk8SPAb43/Kx+Y i/ca0OSze1cehCF0OtPT2LvaT9hpv7dtnylsXiYXnwQBtsdDfzTPScuSvZ4hkBMe+8A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hUjJRn+Q; arc=none smtp.remote-ip=74.125.82.175
X-Received: from mail-dy1-f175.google.com (mail-dy1-f175.google.com [74.125.82.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AE17606A31C for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 19:32:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1AE17606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f175.google.com with SMTP id 5a478bee46e88-3712b6d9843so338755eec.1 for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 11:32:27 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794943947; x=1795548747; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=blIHNGoq77sgX2t/OQClpCFe4Blt1RrVY9bNJJPMTf8=; b=hUjJRn+QdlbzcRdNQbDkJUPqq3WAtwVUaYeX8Y7aeMSvyCQGDnOt1k+OW3m+8gIDfT UmYh/b9nY6aMLIHg4F9KDE+DWKR0hl3ESMUNrzFtva3UmOvJqWFOt03BNNH0vLAOSe03 4vc4/NQ/Ixk7wC8YqH/VbTr1zYETd5twvh2fNi38dWCzZJW420KuPCGxSK054CvYCDqD F3+UxgNFd6ehqmgiUaP+6qMw6o+wtUKk3lCdVuk36guckoroDPX7REfcHsCC3R3yEOIY tvhkyK2BLIxooZhdmcmRKJFpXPx084c34wYbfaPBm4GxtfEq0+kYpjkd8nLeE1KBu8R4 41vA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794943947; x=1795548747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=blIHNGoq77sgX2t/OQClpCFe4Blt1RrVY9bNJJPMTf8=; b=B8oRhrfWi349zwTbHw1i3vugSdFrhS6UbSZDAryqbsqeflVbmEUa4Es0EUq07XHVYH ylquZrU1cTTl1loJR0tYplJPKYt3tx465axcCveiwqGIhyFj64idARRoLWrRD/NMMmV6 sSzKJbDjbpKgzO8Cw9nVIAVzyKoGr3PFVnwnwVE8LYqdHO6xsiJtHrJi5ESIR2yVGMKL WOoqjlF/z5BoumFUXyYu1c2Zm/CWt14ADjDh4CFS8X0H7w1q/p/rrivi4QadJ4VTKHaX C3t9Q9WY1zah9hse0VPzaClBMsm1Q18HhhzNdfgHv4r1QRVyJ+QkePBbsYDP6atA58Wq I/6g==
X-Gm-Message-State: APuU4Z+fsffUw/9YDcThPZZoMP+nAGUbN2Yf+S8q5EgO9kUzL/DTmbbe qgVUZOXTWzw9pdhs0sg2xQ59wlCbyNiOd4wS3qNePUO14m0blqCMqZSx+DokKw==
X-Gm-Gg: AZFdTZdEXN0hFkPF0Ebb+U1PEyL3h1d622caTVoF5JNDmK74dCC3g2dxid5z3LyU/vR 8OgD/qp96czL8QOipeWZPz+jnPTo346uedQxaGPfl9ULXSflcKXNAGuiNYjCxAqcZuQJkowMdag rHhVEAv1vsMQCBF39inSqyV53zNwRc7tJyWoJeC9ryg80l+mKvpr1//z9VRV35JAWSUFaLSZv/Q aalfSdyqvFtpnN5DsvaZvLI0HZKXlKV6oqYJ6gc9QeGwYui304bw9PXcP+inKO7xjl7mcBQkI2Q yietX6m9BcI95wYUjGFxMXEb3CsWPb29thXBwyWQl/y2XbJBp/pv+VfNS38l84+BHXSggYZYe5D 9sl3Zwb1265hzox1kMbNhRrpuPsRg8Ubz9T7D1+YuXwBLGcaH49gHCsX1ooMwheESERwqWmxznR dvNYDt+0GzslQ0gddSXl+lthxDFo29GIlCK6EemJn60cS5PG6TXaWZ4Z6qwLS10aFGciAXVmGOV qDBUwc8/Xhmwa/t5PG4lGEGeyiy+VO/SJndE173oShnLaQ3ceUc04foItHuYmB0bPtsxYKPqdKo mDrwX+Kl
X-Received: by 2002:a05:7300:51cf:b0:381:1d8a:d402 with SMTP id 5a478bee46e88-3827ff7b022mr361034eec.12.1794943947161; Tue, 17 Nov 2026 11:32:27 -0800 (PST)
X-Received: from eldorado ([2600:8802:b00:1f88::287]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-382a63059e3sm173376eec.5.2026.11.17.11.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2026 11:32:26 -0800 (PST)
X-Cc: Florian Fainelli <f.fainelli@gmail.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>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Jijie Shao <shaojijie@huawei.com>, Simon Horman <horms@kernel.org>, Runyu Xiao <runyu.xiao@seu.edu.cn>, David Yang <mmyangfl@gmail.com>, Herbert Valerio Riedel <hvr@gnu.org>, Danny Kukawka <danny.kukawka@bisect.de>, Mugunthan V N <mugunthanvnm@ti.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, linux-kernel@vger.kernel.org (open list), Manuel Lauss <manuel.lauss@gmail.com>
X-Mailer: git-send-email 2.53.0
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-Received-Bytes: 14539