Skip to content

NTB: Add full multi-port API support to the test drivers

Serge Semin lkml ntb 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest15 patches 1 replyIn review
  2. v315 patches 4 repliesSuperseded
  3. v2 posting 2/215 patches 34 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/21 patch0 repliesSuperseded
v11 patch1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15NTB: Rename NTB messaging API methodsdrivers/ntb/hw/idt/ntb_hw_idt.c include/linux/ntb.h+28 -330 replies
2/15NTB: Set dma mask and dma coherent mask to NTB devicesdrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/idt/ntb_hw_idt.c drivers/ntb/hw/intel/ntb_hw_intel.c +1 more+15 -20 replies
3/15NTB: Fix UB/bug in ntb_mw_get_align()include/linux/ntb.h+1 -10 replies
4/15NTB: ntb_pp: Add full multi-port NTB API supportdrivers/ntb/test/ntb_pingpong.c+282 -1650 replies
5/15NTB: ntb_tool: Add full multi-port NTB API supportdrivers/ntb/test/ntb_tool.c+1240 -5800 replies
6/15NTB: ntb_perf: Add full multi-port NTB API supportdrivers/ntb/test/ntb_perf.c+1219 -6010 replies
7/15NTB: ntb_test: Safely use paths with whitespacetools/testing/selftests/ntb/ntb_test.sh+31 -310 replies
8/15NTB: ntb_test: Add ntb_tool port teststools/testing/selftests/ntb/ntb_test.sh+52 -00 replies
9/15NTB: ntb_test: Update ntb_tool link teststools/testing/selftests/ntb/ntb_test.sh+15 -110 replies
10/15NTB: ntb_test: Update ntb_tool DB teststools/testing/selftests/ntb/ntb_test.sh+18 -110 replies
11/15NTB: ntb_test: Update ntb_tool Scratchpad teststools/testing/selftests/ntb/ntb_test.sh+26 -170 replies
12/15NTB: ntb_test: Add ntb_tool Message teststools/testing/selftests/ntb/ntb_test.sh+37 -00 replies
13/15NTB: ntb_test: Update ntb_tool MW teststools/testing/selftests/ntb/ntb_test.sh+68 -210 replies
14/15NTB: ntb_test: Update ntb_perf teststools/testing/selftests/ntb/ntb_test.sh+7 -60 replies
15/15NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topologydrivers/ntb/hw/idt/ntb_hw_idt.c+1 -10 replies

Reviews trailers per patch

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

PatchLogan Gunthorpe
1/15
2/15
3/15R-b
4/15
5/15
6/15
7/15A-b
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

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

Read the v4 thread

Cover letter [PATCH v4 00/15] NTB: Add full multi-port API support to the test drivers

The multi-port NTB API was introduced in kernel 4.13 as well as the first driver for the true multi-port devices of IDT PCIe-switches series. But the test drivers still were left almost unchanged. Yes, they didn't fail being used with new NTB API, but they only worked with two-ports NTB devices. This patchset is intended to fix the issue by amending the NTB test drivers and script so they would be fully compatible with multi-port NTB API.

Additionally I found a few NTB subsystem issues while developing the submitted patches. So they are also fixed in this patchset.

The patchset is applied on top of the recent Jon Mason's repo state:
https://github.com/jonmason/ntb
Particularly the "ntb/ntb-next" branch is used. The last commit hash had been:
commit <c47963de5204> ("ntb_hw_switchtec: Force down the link before")

Serge Semin (15):
NTB: Rename NTB messaging API methods
NTB: Set dma mask and dma coherent mask to NTB devices
NTB: Fix UB/bug in ntb_mw_get_align()
NTB: ntb_pp: Add full multi-port NTB API support
NTB: ntb_tool: Add full multi-port NTB API support
NTB: ntb_perf: Add full multi-port NTB API support
NTB: ntb_test: Safely use paths with whitespace
NTB: ntb_test: Add ntb_tool port tests
NTB: ntb_test: Update ntb_tool link tests
NTB: ntb_test: Update ntb_tool DB tests
NTB: ntb_test: Update ntb_tool Scratchpad tests
NTB: ntb_test: Add ntb_tool Message tests
NTB: ntb_test: Update ntb_tool MW tests
NTB: ntb_test: Update ntb_perf tests
NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topology

 drivers/ntb/hw/amd/ntb_hw_amd.c         |    4 +
 drivers/ntb/hw/idt/ntb_hw_idt.c         |   37 +-
 drivers/ntb/hw/intel/ntb_hw_intel.c     |    4 +
 drivers/ntb/ntb.c                       |    1 -
 drivers/ntb/test/ntb_perf.c             | 1820 +++++++++++++++++++++----------
 drivers/ntb/test/ntb_pingpong.c         |  447 +++++---
 drivers/ntb/test/ntb_tool.c             | 1820 +++++++++++++++++++++----------
 include/linux/ntb.h                     |   36 +-
 tools/testing/selftests/ntb/ntb_test.sh |  307 ++++--
 9 files changed, 3018 insertions(+), 1458 deletions(-)
Signature · 1 line
2.12.0