Skip to content

net: stmmac: make DMA programmable burst length more configurable

Niklas Cassel linux-devicetree lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 13 repliesIn review
  2. v26 patches 1 replySuperseded
  3. v16 patches 1 replySuperseded

Changes in v3 from the cover letter

Moved default value initialization of pbl to stmmac_platform.c and added a check for pbl != 0 in stmmac_main.c,
to catch a possble pbl == 0 from pci glue.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: stmmac: return error if no DMA configuration is founddrivers/net/ethernet/stmicro/stmmac/stmmac_main.c+9 -93 replies
2/6net: stmmac: simplify the common DMA init APIdrivers/net/ethernet/stmicro/stmmac/common.h drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c +2 more+22 -221 reply
3/6net: stmmac: stmmac_platform: fix parsing of DT bindingdrivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+17 -163 replies
4/6net: stmmac: dwmac1000: fix define DMA_BUS_MODE_RPBL_MASKdrivers/net/ethernet/stmicro/stmmac/dwmac1000.h+1 -11 reply
5/6net: stmmac: add support for independent DMA pbl for tx/rxDocumentation/devicetree/bindings/net/stmmac.txt Documentation/networking/stmmac.txt drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +3 more+35 -181 reply
6/6net: smmac: allow configuring lower pbl valuesDocumentation/devicetree/bindings/net/stmmac.txt Documentation/networking/stmmac.txt drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +4 more+14 -33 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchAlexandre Torgue
1/6A-b
2/6
3/6
4/6
5/6
6/6A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/6] net: stmmac: make DMA programmable burst length more configurable

Make DMA programmable burst length more configurable in the stmmac driver.

This is done by adding support for independent pbl for tx/rx through DT. More fine grained tuning of pbl is possible thanks to a DT property saying that we should NOT multiply pbl values by x8/x4 in hardware.

All new DT properties are optional, and created in a way that it will not affect any existing DT configurations.

Changes since V1:
Created cover-letter.
Rebased patch set against next-20161205, since conflicting patches to stmmac_platform.c has been merged since V1.

Changes since V2:
Moved default value initialization of pbl to stmmac_platform.c and added a check for pbl != 0 in stmmac_main.c,
to catch a possble pbl == 0 from pci glue.

Niklas Cassel (6):
net: stmmac: return error if no DMA configuration is found
net: stmmac: simplify the common DMA init API
net: stmmac: stmmac_platform: fix parsing of DT binding
net: stmmac: dwmac1000: fix define DMA_BUS_MODE_RPBL_MASK
net: stmmac: add support for independent DMA pbl for tx/rx
net: smmac: allow configuring lower pbl values

 Documentation/devicetree/bindings/net/stmmac.txt   |  8 +++++-
 Documentation/networking/stmmac.txt                | 24 +++++++++++-----
 drivers/net/ethernet/stmicro/stmmac/common.h       |  4 +--
 drivers/net/ethernet/stmicro/stmmac/dwmac1000.h    |  2 +-
 .../net/ethernet/stmicro/stmmac/dwmac1000_dma.c    | 26 ++++++++++--------
 drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c |  7 +++--
 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c   | 25 ++++++++++-------
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 14 ++++------
 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c   |  2 ++
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 32 ++++++++++++----------
 include/linux/stmmac.h                             |  3 ++
 11 files changed, 88 insertions(+), 59 deletions(-)
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html