Skip to content

net_dma removal, and dma debug extension

Dan Williams lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 11 repliesIn review
  2. v24 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net_dma: simple removalDocumentation/ABI/removed/net_dma Documentation/networking/ip-sysctl.txt drivers/dma/Kconfig +25 more+35 -8946 replies
2/4net_dma: revert 'copied_early'net/ipv4/tcp_input.c+8 -142 replies
3/4net: make tcp_cleanup_rbuf privateinclude/net/tcp.h net/ipv4/tcp.c+1 -20 replies
4/4dma debug: introduce debug_dma_assert_idle()include/linux/dma-debug.h lib/Kconfig.debug lib/dma-debug.c +1 more+175 -153 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDavid S. MillerNeal Cardwell
1/4A-b
2/4A-b
3/4A-b A-b
4/4

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/4] net_dma removal, and dma debug extension

Follow up patches to 77873803363c "net_dma: mark broken" to remove net_dma bits and provide debug infrastructure to flag other get_user_pages() vs dma instances that might violate the dma api.

Will takes this through the dmaengine tree once acked. Just looking for an ack to patch 2 at this point.

Changes since v2 [1]:

1/ Keep the 'tcp_' prefix to cleanup_rbuf() in patch 3

2/ Fix up patch 4 according to Andrew's comments: Added documentation
and dropped CONFIG_DMA_VS_CPU_DEBUG. [2]

Changes since v1 [3]:

1/ net_dma removal patch has been expanded to revert other
net_dma induced changes.

2/ updated the debug_dma_assert_idle() api to be gated on
CONFIG_DMA_VS_CPU_DEBUG

[1]: http://marc.info/?l=linux-netdev&m=138929837129496&w=2
[2]: http://marc.info/?l=linux-netdev&m=138931431901890&w=2
[3]: http://marc.info/?l=linux-netdev&m=138732574814049&w=2

---

Dan Williams (4):
net_dma: simple removal
net_dma: revert 'copied_early'
net: make tcp_cleanup_rbuf private dma debug: introduce debug_dma_assert_idle()

 Documentation/ABI/removed/net_dma      |    8 +
 Documentation/networking/ip-sysctl.txt |    6 -
 drivers/dma/Kconfig                    |   12 -
 drivers/dma/Makefile                   |    1 
 drivers/dma/dmaengine.c                |  104 ------------
 drivers/dma/ioat/dma.c                 |    1 
 drivers/dma/ioat/dma.h                 |    7 -
 drivers/dma/ioat/dma_v2.c              |    1 
 drivers/dma/ioat/dma_v3.c              |    1 
 drivers/dma/iovlock.c                  |  280 --------------------------------
 include/linux/dma-debug.h              |    6 +
 include/linux/dmaengine.h              |   22 ---
 include/linux/skbuff.h                 |    8 -
 include/linux/tcp.h                    |    8 -
 include/net/netdma.h                   |   32 ----
 include/net/sock.h                     |   19 --
 include/net/tcp.h                      |    9 -
 kernel/sysctl_binary.c                 |    1 
 lib/Kconfig.debug                      |   12 +
 lib/dma-debug.c                        |  169 ++++++++++++++++++-
 mm/memory.c                            |    3 
 net/core/Makefile                      |    1 
 net/core/dev.c                         |   10 -
 net/core/sock.c                        |    6 -
 net/core/user_dma.c                    |  131 ---------------
 net/dccp/proto.c                       |    4 
 net/ipv4/sysctl_net_ipv4.c             |    9 -
 net/ipv4/tcp.c                         |  149 ++---------------
 net/ipv4/tcp_input.c                   |   83 +--------
 net/ipv4/tcp_ipv4.c                    |   18 --
 net/ipv6/tcp_ipv6.c                    |   13 -
 net/llc/af_llc.c                       |   10 +
 32 files changed, 219 insertions(+), 925 deletions(-)
 create mode 100644 Documentation/ABI/removed/net_dma
 delete mode 100644 drivers/dma/iovlock.c
 delete mode 100644 include/net/netdma.h
 delete mode 100644 net/core/user_dma.c