From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 945B9606A31A for ; Wed, 2 Dec 2026 04:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Z6IO83S1; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=dcvXYK8I DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=4cmPYuJUirBNHR1mgH/ZkDLVTYnFNl749PlvGCjXSIc=; b=Z6IO83S1wNMIT5ktgDUP0CRFbe VdXozOPLhKpKkZLe7qoT3cMFk5t0T1YZRGt+aIqlxncMwFxb65uX588KuT9bGRJ07Bin5CEieQii8 HBfzZPIeonr6h6vDKwxqrH1iV7bkq32fvwiLb5mJB7zVhvzsmoZ1gowTxlK6kyIGOR7ahAQKq7xoZ nlh3wZdCxeuRRwKaCCAe9rIUoStIFmwtp0mlIEEoPe2Ef+sw6ec0LIZEfSY+CN/PguL68klp/YQdD RV6SzkNSJzKW7E0AcwHYff0hZWVwAcSZ5UN8mfboqIeu5XCTy2f/wWFCS0YWjtNIQPIZzmWZw2Gys VpNWIMbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYbYK-0000000A9x6-0pOj; Wed, 02 Dec 2026 04:02:44 +0000 Received: from mail-qv1-xf45.google.com ([2607:f8b0:4864:20::f45]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYbYH-0000000A9vv-40Lu for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 04:02:43 +0000 Received: by mail-qv1-xf45.google.com with SMTP id 6a1803df08f44-9211604468aso163113776d6.3 for ; Tue, 01 Dec 2026 20:02:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796184160; x=1796788960; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4cmPYuJUirBNHR1mgH/ZkDLVTYnFNl749PlvGCjXSIc=; b=dcvXYK8Ieyuw0J+0hRknsDOdlPBKZqc7FAZPR6COwf6NX33M541XI2WNsdbgFbpK2n r4ver0ZVncP4QDwBkEGI/OHe0kn83wTh3XNRO6RnRG+3jbTSsIzHR4PsY1o3MPkCXyn+ lsystT/m8xuNd55RP7hVayKuNDOqbJ2EcBbOe7JI9h9DgHI/O/hAZ6GTbgcJ8CAYWVs8 si7yWTzEsN3x9oOCL/SKm4nzz+WTkCY3G0MgBkO/DC8e7+yd9lG6VbJG7tw9L7gT5any lSbmSS1BLD8a7trplkQmy9cN5B+GOzyDfvpMDvHTYL7hQ3WuVLP0ZftHGHYjOxbKxVGC qHLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796184160; x=1796788960; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4cmPYuJUirBNHR1mgH/ZkDLVTYnFNl749PlvGCjXSIc=; b=vci36KnB+FZ1+LpIeCEuKJDBL/k2cbmEnQV1zkrN6uyp2xzEpdrR+auBKMgTGxaGmE NWS1Ooa+Y5cx3UFUsEMaHKNEEtELJ7OGVmh6Q4UqZG1gSBLPrGZLYUT6sCznLfG9ShPd 6k07+HMDiJ4S4wB0pFrliiO1GolOgxQNaVaSle2jzFEHRwRo2QOpZuP7VriBc8/C+GcP WSgyYtgYFdzD4DMuhdzBeaGVsRyEJE6r1LXZhd9yNkxp+sMKM14T7xVJpI8/4jGkZEx7 N86f25k3XszY/Tbz3iutIHhwVIyh6a056OmtWpEUvKY/HQF9k62F1ztvWfVyWoHrQuzz IaKA== X-Forwarded-Encrypted: i=1; AL+hErFlnOxZBUnxf4wISOuoOjP9Y/7rs4l0xRqHgJwMkCUgGj96ZdERQIkmWOuAi7jo68fUpcF4Kmb0mIRuECjUBkgr@lists.infradead.org X-Gm-Message-State: APuU4Z8NrGeKRzppdu9JzG+wFhNzC9j9cuY11lJ6FVDlOIIDBirsuthx ybtdnOOz+BRUhe3z+i9H/xNEsBalVX4SU0CkPMMDLB1TJfrUxZuf01RRox/FVa9nqVN9gC8qUFK 0dN7Pxz4efQ== X-Received: from qvnq6.prod.google.com ([2002:a0c:fa06:0:b0:91c:c6b9:8fb0]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:ad4:5ae1:0:b0:921:55b1:8b37 with SMTP id 6a1803df08f44-92155b19119mr624535266d6.11.1796184159174; Tue, 01 Dec 2026 20:02:39 -0800 (PST) Date: Tue, 01 Dec 2026 23:02:38 -0500 In-Reply-To: <20261125-submit-sun8i-rxall-v1-v2-0-4de03fbde087@gmail.com> X-Archived-By: Mime-Version: 1.0 References: <20261125-submit-sun8i-rxall-v1-v2-0-4de03fbde087@gmail.com> Message-ID: Subject: Re: [PATCH net-next v2 0/3] net: stmmac: support ethtool rx-all on sun8i From: willemb@google.com To: James Hilliard , netdev@vger.kernel.org, Maxime Chevallier , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Jakub Kicinski , Oleksij Rempel , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, James Hilliard Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_200241_998317_9C0D9BF9 X-CRM114-Status: GOOD ( 16.77 ) X-Spam-Score: -9.5 (---------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-28.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 James Hilliard wrote: > On H616 the PHY can count a bad-FCS frame even when it does not appear > in a packet capture. Enabling rx-all lets a capture see the complete > errored frames the MAC can forward. On this hardware, a 64-byte frame > with a bad FCS reaches DMA, but a 63-byte one does not, even with runt > forwarding enabled. Both lengths include the FCS. > Add the common stmmac receive and feature-handling paths, then > enable them for sun8i. This feature was previously posted alongside the > checksum fix and is now separate following Maxime's review [0]. > [0] > https://lore.kernel.org/r/a91278be-9c14-4769-81f1-38497c38c47b@bootlin.com/ > Assisted-by: Codex:gpt-6.2-astra > Signed-off-by: James Hilliard > --- > Changes in v2: > - Drop the RX_CTL1 lock and leave DMA start, stop and mode setup > unchanged. > - Align the EMAC_RX_MD definition in a separate patch, as Andrew > requested. > - Apply rx-all alongside the other receive filters, independently of RX > checksum reporting. > - Link to v1: > https://patch.msgid.link/20261122-submit-sun8i-rxall-v1-v1-0-607789772c56@gmail.com > --- > James Hilliard (3): > net: stmmac: dwmac-sun8i: align EMAC_RX_MD with tabs > net: stmmac: add common RXALL handling > net: stmmac: dwmac-sun8i: support ethtool rx-all > drivers/net/ethernet/stmicro/stmmac/common.h | 2 + > drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 22 ++++++++-- > drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 + > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 52 > ++++++++++++++++------- > 4 files changed, 59 insertions(+), 19 deletions(-) > --- > base-commit: 612848d37e68b858e15815175f1c5e609e09d719 > base-tree: > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main > change-id: 20261122-submit-sun8i-rxall-v1-2666ccf2a020 > prerequisite-change-id: > 20261119-submit-sun8i-rx-features-v1-9177e8328598:v3 > prerequisite-patch-id: cfcd83b1605af3856aff1188ef7bdbdbfc19cce0 > Best regards, > -- > James Hilliard Does not apply cleanly. Please rebase this series on current net-next and repost. pw-bot: cr