Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/5] net: stmmac: support ethtool rx-all on sun8i
@ 2026-12-04  2:37 James Hilliard
  2026-12-04  2:37 ` [PATCH net-next v4 1/5] net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack James Hilliard
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: James Hilliard @ 2026-12-04  2:37 UTC (permalink / raw)
  To: netdev, Maxime Chevallier, Andrew Lunn, David S. Miller,
	Eric Dumazet, Paolo Abeni, Maxime Coquelin, Alexandre Torgue,
	Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, LABBE Corentin,
	Willem de Bruijn, Nicolai Buchwitz
  Cc: Jakub Kicinski, Oleksij Rempel, linux-arm-kernel, linux-sunxi,
	James Hilliard

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.

Patch 1 supersedes the standalone sun8i RX checksum-delivery fix [0].
The series also serializes changes to the register shared by RX DMA,
pause thresholds and runt forwarding before adding the rx-all switch.

[0] https://lore.kernel.org/r/20261125-submit-sun8i-rx-features-v1-v3-1-79273f18a028@gmail.com/

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

---
Changes in v4:
- Serialize live RX_CTL1 updates, including phylink pause configuration
  and RX DMA start/stop, before using the register for rx-all. Sashiko
  reported the ethtool/phylink race [1]; Codex helped implement and
  check the locking change.
- Record the H616 checksum status encoding and the two stmmac checksum
  fixes needed for backports in patch 1.
- Link to v3: https://patch.msgid.link/20261201-submit-sun8i-rxall-v1-v3-0-01aa6280e6ae@gmail.com

[1] https://lore.kernel.org/r/sashiko-outbox-247233@kernel.org/

Changes in v3:
- Carry the checksum-delivery fix as patch 1 against net-next, superseding
  its separate net submission and removing the external prerequisite.
- Rebase onto net-next at 0a837a30e55b, following Willem's review.
- Link to v2: https://patch.msgid.link/20261125-submit-sun8i-rxall-v1-v2-0-4de03fbde087@gmail.com

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 (5):
      net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack
      net: stmmac: dwmac-sun8i: align EMAC_RX_MD with tabs
      net: stmmac: dwmac-sun8i: serialize RX_CTL1 updates
      net: stmmac: add common RXALL handling
      net: stmmac: dwmac-sun8i: support ethtool rx-all

 drivers/net/ethernet/stmicro/stmmac/common.h       |  10 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c  | 185 +++++++++++++++------
 .../net/ethernet/stmicro/stmmac/dwmac1000_core.c   |   4 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c  |   4 +-
 .../net/ethernet/stmicro/stmmac/dwxgmac2_core.c    |   4 +-
 drivers/net/ethernet/stmicro/stmmac/hwif.c         |   2 +-
 drivers/net/ethernet/stmicro/stmmac/hwif.h         |   4 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c   |   4 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  |  59 +++++--
 9 files changed, 191 insertions(+), 85 deletions(-)
---
base-commit: c1165beb053a652299b1503b2dd7674ced0b1596
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main
change-id: 20261122-submit-sun8i-rxall-v1-2666ccf2a020

Best regards,
--  
James Hilliard <james.hilliard1@gmail.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-04  2:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  2:37 [PATCH net-next v4 0/5] net: stmmac: support ethtool rx-all on sun8i James Hilliard
2026-12-04  2:37 ` [PATCH net-next v4 1/5] net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack James Hilliard
2026-12-04  2:37 ` [PATCH net-next v4 2/5] net: stmmac: dwmac-sun8i: align EMAC_RX_MD with tabs James Hilliard
2026-12-04  2:37 ` [PATCH net-next v4 3/5] net: stmmac: dwmac-sun8i: serialize RX_CTL1 updates James Hilliard
2026-12-04  2:37 ` [PATCH net-next v4 4/5] net: stmmac: add common RXALL handling James Hilliard
2026-12-04  2:37 ` [PATCH net-next v4 5/5] net: stmmac: dwmac-sun8i: support ethtool rx-all James Hilliard
2026-12-04  2:42 ` [PATCH net-next v4 0/5] net: stmmac: support ethtool rx-all on sun8i netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox