Skip to content

NTB: Alter kernel API to support multi-port devices

Serge Semin lkml ntb 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 7 repliesIn review
  2. v29 patches 0 repliesSuperseded
  3. v122 patches 1 replySuperseded

Changes in v3 from the cover letter

- Get rid of code rearrangements within Intel/AMD drivers
- Make two-ports NTB API being default
- Check pidx argument for negative values
- Translation address methods should return zero in case if not implemented
- Simplify Scratchpad alterations of ntb_tool client driver
- ntb.h comments are altered in compliance with port-related API changes
- Spell check the text

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9NTB: Make link-state API being declared firstinclude/linux/ntb.h+69 -681 reply
2/9NTB: Add indexed ports NTB APIdrivers/ntb/ntb.c drivers/ntb/ntb_transport.c drivers/ntb/test/ntb_perf.c +3 more+231 -01 reply
3/9NTB: Alter link-state API to support multi-port devicesdrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/intel/ntb_hw_intel.c include/linux/ntb.h+18 -170 replies
4/9NTB: Alter MW API to support multi-ports devicesdrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/intel/ntb_hw_intel.c drivers/ntb/ntb.c +4 more+342 -1071 reply
4/9NTB: Alter MW API to support multi-ports devicesdrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/intel/ntb_hw_intel.c drivers/ntb/ntb.c +4 more+342 -1070 replies
5/9NTB: Alter Scratchpads API to support multi-ports devicesdrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/intel/ntb_hw_intel.c drivers/ntb/ntb_transport.c +4 more+98 -581 reply
5/9NTB: Alter Scratchpads API to support multi-ports devicesdrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/intel/ntb_hw_intel.c drivers/ntb/ntb_transport.c +4 more+96 -591 reply
6/9NTB: Add Messaging NTB APIdrivers/ntb/ntb.c include/linux/ntb.h+218 -00 replies
6/9NTB: Add Messaging NTB APIdrivers/ntb/ntb.c include/linux/ntb.h+218 -00 replies
7/9NTB: Add new Memory Windows API documentationDocumentation/ntb.txt+91 -80 replies
8/9NTB: Add PCIe Gen4 link speedinclude/linux/ntb.h+2 -00 replies
9/9NTB: Add ntb.h commentsinclude/linux/ntb.h+12 -71 reply
9/9NTB: Add ntb.h commentsinclude/linux/ntb.h+12 -71 reply
9/9NTB: Add ntb.h commentsinclude/linux/ntb.h+12 -70 replies

Reviews trailers per patch

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

PatchAllen Hubbe
1/9A-b
2/9A-b
3/9A-b
4/9A-b A-b
4/9A-b A-b
5/9A-b A-b
5/9A-b A-b
6/9A-b A-b
6/9A-b A-b
7/9A-b
8/9A-b
9/9A-b A-b
9/9A-b A-b
9/9A-b A-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/9] NTB: Alter kernel API to support multi-port devices

There are devices, like IDT PCIe-switches, which have more than just two ports. Particularly one device can have up to eight ports with NTB-function activated. In order to support such devices, NTB kernel API should be altered since currently it's optimized to work with two-ports devices only.

Changelog v2:
- Move comments from cover letter to individual patches
- Combine patches to make code buildable
- Alter patchset to support Intel SKX driver
- Make sure all the API uses the same midx/widx/pidx/sidx arguments notation
- Move new MW API usage description into Documention
- Alter Spad/Msg API checking valid function to make spad and msg interfaces optional
- Alter comments in ntb.h
- Split: add NTB_SPEED_GEN4 and ntb.h comments into separate patches
- Put copyrights into some of the existing patches
- Get rid of TOPO updates

Changelog v3:
- Get rid of code rearrangements within Intel/AMD drivers
- Make two-ports NTB API being default
- Check pidx argument for negative values
- Translation address methods should return zero in case if not implemented
- Simplify Scratchpad alterations of ntb_tool client driver
- ntb.h comments are altered in compliance with port-related API changes
- Spell check the text

Serge Semin (9):
NTB: Make link-state API being declared first
NTB: Add indexed ports NTB API
NTB: Alter link-state API to support multi-port devices
NTB: Alter MW API to support multi-ports devices
NTB: Alter Scratchpads API to support multi-ports devices
NTB: Add Messaging NTB API
NTB: Add new Memory Windows API documentation
NTB: Add PCIe Gen4 link speed
NTB: Add ntb.h comments

 Documentation/ntb.txt               |  99 ++++-
 drivers/ntb/hw/amd/ntb_hw_amd.c     |  84 +++--
 drivers/ntb/hw/intel/ntb_hw_intel.c | 106 ++++--
 drivers/ntb/ntb.c                   |  69 ++++
 drivers/ntb/ntb_transport.c         |  44 ++-
 drivers/ntb/test/ntb_perf.c         |  27 +-
 drivers/ntb/test/ntb_pingpong.c     |  14 +-
 drivers/ntb/test/ntb_tool.c         |  69 +++-
 include/linux/ntb.h                 | 724 ++++++++++++++++++++++++++++++------
 9 files changed, 1026 insertions(+), 210 deletions(-)
Signature · 1 line
2.6.6