NTB: Add full multi-port API support to the test drivers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest15 patches 1 replyIn review
- v315 patches 4 repliesSuperseded
- v2 posting 2/215 patches 34 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 1/2 | 1 patch | 0 replies | Superseded | |
| v1 | 1 patch | 1 reply | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | NTB: Rename NTB messaging API methodsdrivers/ include/ | +28 | 0 replies | |
| 2/15 | NTB: Set dma mask and dma coherent mask to NTB devicesdrivers/ drivers/ drivers/ +1 more | +15 | 0 replies | |
| 3/15 | NTB: Fix UB/bug in ntb_mw_get_align()include/ | +1 | 0 replies | |
| 4/15 | NTB: ntb_pp: Add full multi-port NTB API supportdrivers/ | +282 | 0 replies | |
| 5/15 | NTB: ntb_tool: Add full multi-port NTB API supportdrivers/ | +1240 | 0 replies | |
| 6/15 | NTB: ntb_perf: Add full multi-port NTB API supportdrivers/ | +1219 | 0 replies | |
| 7/15 | NTB: ntb_test: Safely use paths with whitespacetools/ | +31 | 0 replies | |
| 8/15 | NTB: ntb_test: Add ntb_tool port teststools/ | +52 | 0 replies | |
| 9/15 | NTB: ntb_test: Update ntb_tool link teststools/ | +15 | 0 replies | |
| 10/15 | NTB: ntb_test: Update ntb_tool DB teststools/ | +18 | 0 replies | |
| 11/15 | NTB: ntb_test: Update ntb_tool Scratchpad teststools/ | +26 | 0 replies | |
| 12/15 | NTB: ntb_test: Add ntb_tool Message teststools/ | +37 | 0 replies | |
| 13/15 | NTB: ntb_test: Update ntb_tool MW teststools/ | +68 | 0 replies | |
| 14/15 | NTB: ntb_test: Update ntb_perf teststools/ | +7 | 0 replies | |
| 15/15 | NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topologydrivers/ | +1 | 0 replies |
Reviews trailers per patch
2 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Logan Gunthorpe |
|---|---|
| 1/15 | |
| 2/15 | |
| 3/15 | R-b |
| 4/15 | |
| 5/15 | |
| 6/15 | |
| 7/15 | A-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.
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