Skip to content

stmmac: Correct flow control configuration

Vince Bridgers lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5stmmac: Add properties for transmit and receive fifo sizesDocumentation/devicetree/bindings/net/ethernet.txt Documentation/devicetree/bindings/net/stmmac.txt+10 -00 replies
2/5stmmac: Add defines and documentation for enabling flow controldrivers/net/ethernet/stmicro/stmmac/dwmac1000.h+51 -00 replies
3/5stmmac: Read tx-fifo-depth and rx-fifo-depth from the devicetreedrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c include/linux/stmmac.h+6 -00 replies
4/5stmmac: Enable unicast pause frame detect in GMAC Register 6drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c+4 -10 replies
5/5stmmac: Configure Flow Control to work correctly based on rxfifo sizedrivers/net/ethernet/stmicro/stmmac/common.h drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c +1 more+40 -90 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGiuseppe Cavallaro
SeriesA-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/5] stmmac: Correct flow control configuration

This series of patches corrects flow control configuration for the Synopsys GMAC driver.

Flow control is configured based on a configurable receive fifo size. If less than 4Kbytes flow control is left disabled and a warning is presented. If a receive fifo size is not specified, flow control is left disabled to maintain current behavior. Unicast pause detection was disabled, but is now enabled. The pause time was modified to be maximum time per a XON/XOFF flow control mode of operation.

This patch was tested on an Altera Cyclone 5 and an Altera Arria 10 devkit, and verified that flow control operates as expected when enabled.

Please consider this series for inclusion so that flow control will function as expected for the Synopsys GMAC controller.

Vince Bridgers (5):
stmmac: Add properties for transmit and receive fifo sizes
stmmac: Add defines and documentation for enabling flow control
stmmac: Read tx-fifo-depth and rx-fifo-depth from the devicetree
stmmac: Enable unicast pause frame detect in GMAC Register 6
stmmac: Configure Flow Control to work correctly based on rxfifo size

 Documentation/devicetree/bindings/net/ethernet.txt |  6 +++
 Documentation/devicetree/bindings/net/stmmac.txt   |  4 ++
 drivers/net/ethernet/stmicro/stmmac/common.h       |  5 ++-
 drivers/net/ethernet/stmicro/stmmac/dwmac1000.h    | 51 ++++++++++++++++++++++
 .../net/ethernet/stmicro/stmmac/dwmac1000_core.c   |  5 ++-
 .../net/ethernet/stmicro/stmmac/dwmac1000_dma.c    | 26 ++++++++++-
 drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c |  2 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 16 ++++---
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  |  4 ++
 include/linux/stmmac.h                             |  2 +
 10 files changed, 111 insertions(+), 10 deletions(-)
Signature · 1 line
1.9.1