From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796184161; b=yYA2k5Yde1aKk2DpQuoULTgP2az2zacIZi9u0X7XBedNl+cM649VOoLwOh/WEZYo+uKS c7XLbqSpDry+6+a7iVaoFWt2qQnbHnSMKgFkA4qIgtktMYQGRpSuKk/ymHkangKLWupJ5 xf5r+f4j5peUy4ZZtwTvkO/S1cRLjhACjUddGH+gKgo8Gzf25I+/eolBGu1jFWrckQxOB AsUK4N9YlcE8bp888+tVTqxwuOizcYRld+q+A55X0rhX8cM8lulnZqeBhsSihM70A7atJ 3QDzW5jbeECYGwgv9h3vvat7LFW6fr6vfzPvxK8AmUY4X/Qfu4O/6iTQDortDzixnwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796184161; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=4cmPYuJUirBNHR1mgH/ZkDLVTYnFNl749PlvGCjXSIc=; b=5lFQ6go2kVcEVOwjMe6TMEvi7L4S6fp7VN46hUChnyYdZbcFZsEIOm6633luWcQum9+7 6oIFMVH226L/e/dvycQrcwFGrodaRFTD032AsqHJFku4mnbVK1w1yvU+86wWl2Pvp2goE cnZzxyaK1959hm9wQfAlswCpmU6VfWUFDE/hoZ8A19x7wmNIc+htJkkxznWuoD+PvXHLm apY29VwhdTv1keWYoYidjFfZwLV/dt8XjOChzli2upA+VMtW7UoW4XYRkDMHQDznIZ2vU QE5tX0aGJtrDy5ogNYn06tMJOdqI5JIHUFwsK4DPjtExUz2Sdn3nW3XukkfmrOtn4kQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=c+FKXiPN; arc=none smtp.remote-ip=209.85.219.70 Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) (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 06D5E606A322 for ; Wed, 2 Dec 2026 04:02:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 06D5E606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=c+FKXiPN Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-920ff6971a1so115382446d6.1 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=vger.kernel.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=c+FKXiPNoYLbuStZGQ5WQ1GKTwb9rCp+HReugNbS62n2vLDw323fu3fxNuO51zPa6l g5irzGiA2ZRyDB7Q7nYlJrto0bOIJYt+sr/dWTq22MnWw9g/282jzrMN9TbOUaa8XwqV H1QpvqB+h4Ao+ecdNOBGhMdnnUn84RYgMIHvhUs4HRTq8akX4QCWZoKFqd/xFNwcTyum Kt4cly4nkPMH19iZG31re0c0cp3RAzaAgNTFmgFQlSJ4JP9naQ3SOBOJ+vtFXP1dfYmC 0C3Gvi+pm8QX5dpYUTxYF/r7ozUe49ttfBU840gGKJ7hKNcc8TjwFJ5e92LKffrW/HN1 cRvQ== 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=YaG7U7ms7P9eMvi9KsV8jFkAnhqObvq4ZITA61bkS3F5y+IJNFnoNZLGbatUfB187U x+B1jPuJeCFGkuo+vMne8XNdBI1BE76KqjXEgiGEyJ7Mqkhk20Xfb/xMYRPNqFUMik4e T16dPqW6AJcIsV/wWqu9RD/BBvf5HKDJNMRnRVOks3wyL/HMXkQnx3+GC7yhu6kO6/Hr WGIbFl/buqBcKzWJCjcBxYr3rzFW6UezUTrXtkgsNE4lD5b/OhxFrajYIUOLFW9aAScG N0VptlwlnPs0D36CWIZj3e3Kp3mIQCM0N6dhVEmFk8sr4sd2qiKC0TnJoQWtVZPK0Viy knzA== X-Forwarded-Encrypted: i=1; AL+hErH2wDfMmEkdtrRD3zVOmbifuH2jgfFRuBQ3X1bAn9RjouzyL9c52+9aCcnJzVDUOab9h94eSE4=@vger.kernel.org X-Gm-Message-State: APuU4Z+Plc7GPjqgCTY5Ya2WfAZ+8rcaN5WQGDqVlMId+wywM2Mz+1kY ey/kajPKwifI9J72799zppGPawCrd36TZyb/Aq5if9i1r2NMMKVCThYS+iQrmPt3m3GssKykvXP jSv0wH2Ufjg== 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-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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