Skip to content

i.MX FEC changes

Andrey Smirnov qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 3 repliesIn review
  2. v215 patches 9 repliesSuperseded
  3. v113 patches 11 repliesSuperseded

Changes in v3 from the cover letter

- All SD related patches are dropped from this series (to be re-submitted once Philippe's work lands upstream). Note that "Implement write method of ACMD12ERRSTS register" has been incorporated into Philippe's submission

- Collected Reviewed-by for patch 2 from Philippe

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11imx_fec: Do not link to netdevhw/arm/fsl-imx6.c hw/net/imx_fec.c+1 -20 replies
2/11imx_fec: Refactor imx_eth_enable_rx()hw/net/imx_fec.c+4 -40 replies
3/11imx_fec: Change queue flushing heuristicshw/net/imx_fec.c+6 -60 replies
4/11imx_fec: Move Tx frame buffer away from the stackhw/net/imx_fec.c include/hw/net/imx_fec.h+14 -111 reply
5/11imx_fec: Use ENET_FTRL to determine truncation lengthhw/net/imx_fec.c include/hw/net/imx_fec.h+4 -31 reply
6/11imx_fec: Use MIN instead of explicit ternary operatorhw/net/imx_fec.c+1 -10 replies
7/11imx_fec: Emulate SHIFT16 in ENETx_RACChw/net/imx_fec.c include/hw/net/imx_fec.h+25 -00 replies
8/11imx_fec: Add support for multiple Tx DMA ringshw/net/imx_fec.c include/hw/net/imx_fec.h+130 -210 replies
9/11imx_fec: Use correct length for packet sizehw/net/imx_fec.c+1 -10 replies
10/11imx_fec: Fix a typo in imx_enet_receive()hw/net/imx_fec.c+1 -10 replies
11/11imx_fec: Reserve full FSL_IMX25_FEC_SIZE page for the register filehw/net/imx_fec.c include/hw/arm/fsl-imx25.h include/hw/net/imx_fec.h+2 -20 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellPhilippe Mathieu-Daudé
1/11R-b
2/11R-b R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-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 [Qemu-arm] [PATCH v3 00/11] i.MX FEC changes

Hi everyone,

This patchset is v3 of a spin-off from original i.MX7 support submission found here [1], containing all of the patchest that are more or less agreed upon and are ready (hopefully!) for inclusion.

Changes since [v2]:

- All SD related patches are dropped from this series (to be re-submitted once Philippe's work lands upstream). Note that "Implement write method of ACMD12ERRSTS register" has been incorporated into Philippe's submission

- Collected Reviewed-by for patch 2 from Philippe

Changes since [v1]:

- Collected Reviewed-by tags from Peter

- Implemented forgotten feedback from Peter for "sdhci: Add i.MX specific subtype of SDHCI"

- "imx_fec: Move Tx frame buffer away from the stack" sent out properly (fingers crossed)

- Added trivial patch to swith i.MX6 over to TYPE_IMX_USDHC

- Added "sd: Check for READ_MULTIPLE_BLOCK size limit violation first" to address a small problem I was seeing when tesiting SD against latest vanilla kernel

Changes since [1]:

- Rx buffer in FEC was moved from stack to heap to allow worry-free expansion to 16K limit.

- Added more comments explaining rather convoluted bit-moving in eSHDC emuation code

- Triple Tx ring DMA "VMState" code was changed to follow Peter's recommendations (avoiding the need to incrememnt the version_id)

- FSL_IMX25_FEC_SIZE is used as a size of FEC's register file

- Removed leftover code from "imx_fec: Change queue flushing heuristics"

[v2] https://lists.gnu.org/archive/html/qemu-arm/2017-12/msg00175.html
[v1] https://lists.gnu.org/archive/html/qemu-arm/2017-12/msg00085.html
[1] https://lists.gnu.org/archive/html/qemu-arm/2017-11/msg00045.html

Andrey Smirnov (11):
imx_fec: Do not link to netdev
imx_fec: Refactor imx_eth_enable_rx()
imx_fec: Change queue flushing heuristics
imx_fec: Move Tx frame buffer away from the stack
imx_fec: Use ENET_FTRL to determine truncation length
imx_fec: Use MIN instead of explicit ternary operator
imx_fec: Emulate SHIFT16 in ENETx_RACC
imx_fec: Add support for multiple Tx DMA rings
imx_fec: Use correct length for packet size
imx_fec: Fix a typo in imx_enet_receive()
imx_fec: Reserve full FSL_IMX25_FEC_SIZE page for the register file

 hw/arm/fsl-imx6.c          |   1 +
 hw/net/imx_fec.c           | 210 +++++++++++++++++++++++++++++++++++----------
 include/hw/arm/fsl-imx25.h |   1 -
 include/hw/net/imx_fec.h   |  27 +++++-
 4 files changed, 188 insertions(+), 51 deletions(-)
Signature · 1 line
2.14.3