From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.175 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== 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== 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 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 ; Tue, 17 Nov 2026 19:32:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1AE17606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-dy1-f175.google.com with SMTP id 5a478bee46e88-3712b6d9843so338755eec.1 for ; Tue, 17 Nov 2026 11:32:27 -0800 (PST) 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) 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) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Jijie Shao , Simon Horman , Runyu Xiao , David Yang , Herbert Valerio Riedel , Danny Kukawka , Mugunthan V N , Sebastian Hesselbarth , linux-kernel@vger.kernel.org (open list), Manuel Lauss Subject: [PATCH net v3 00/10] net: au1000: Bug fixes Date: Tue, 17 Nov 2026 11:32:13 -0800 Message-ID: <20261117193223.2795612-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.53.0 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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