Skip to content

NTB: Add NTB hardware abstraction layer

Allen Hubbe linux-pci lkml ntb 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest19 patches 0 repliesNew
  2. v318 patches 13 repliesSuperseded
  3. v217 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v116 patches13 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19NTB: Move files in preparation for NTB abstractiondrivers/net/ntb_netdev.c drivers/ntb/Makefile drivers/ntb/hw/intel/ntb_hw_intel.c +7 more+2372 -24210 replies
2/19NTB: Add NTB hardware abstraction layerDocumentation/ntb.txt MAINTAINERS drivers/ntb/Makefile +2 more+1272 -10 replies
3/19NTB: Split ntb_hw_intel and ntb_transport driversDocumentation/ntb.txt MAINTAINERS drivers/net/ntb_netdev.c +10 more+2599 -22000 replies
4/19NTB: Read peer info from local SPAD in transportdrivers/ntb/ntb_transport.c+5 -50 replies
5/19NTB: Enable link for Intel root port mode in probedrivers/ntb/hw/intel/ntb_hw_intel.c+10 -00 replies
6/19NTB: Check the device ID to set errata flagsdrivers/ntb/hw/intel/ntb_hw_intel.c+44 -50 replies
7/19NTB: Differentiate transport link down messagesdrivers/ntb/ntb_transport.c+2 -20 replies
8/19NTB: Do not advance transport RX on link downdrivers/ntb/ntb_transport.c+1 -20 replies
9/19NTB: Reset transport QP link stats on downdrivers/ntb/ntb_transport.c+28 -80 replies
10/19NTB: Add parameters for Intel SNB B2B addressesDocumentation/ntb.txt drivers/ntb/hw/intel/ntb_hw_intel.c+68 -190 replies
11/19NTB: Add ping pong test clientDocumentation/ntb.txt MAINTAINERS drivers/ntb/Kconfig +4 more+290 -10 replies
12/19NTB: Add tool test clientDocumentation/ntb.txt MAINTAINERS drivers/ntb/test/Kconfig +2 more+601 -00 replies
13/19NTB: Rate limit ntb_qp_link_workdrivers/ntb/ntb_transport.c+1 -10 replies
14/19NTB: Use NUMA memory and DMA chan in transportdrivers/ntb/ntb_transport.c+32 -140 replies
15/19NTB: Use NUMA memory in Intel driverdrivers/ntb/hw/intel/ntb_hw_intel.c+12 -60 replies
16/19NTB: Improve performance with write combiningdrivers/ntb/ntb_transport.c+10 -10 replies
17/19NTB: Default to CPU memcpy for performancedrivers/ntb/ntb_transport.c+13 -40 replies
18/19NTB: Rename Intel code names to platform namesDocumentation/ntb.txt drivers/ntb/hw/intel/ntb_hw_intel.c drivers/ntb/hw/intel/ntb_hw_intel.h+465 -4650 replies
19/19NTB: Increase transport MTU to 64k from 16kdrivers/ntb/ntb_transport.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 00/19] NTB: Add NTB hardware abstraction layer

The NTB drivers currently support only one hardware driver, and one client type. This patch set adds an abstraction layer, enabling hardware drivers by other vendors, and clients other than ntb_transport.

The commits in this set may also be pulled from:
github.com/allenbh/linux
tagged ntb-abh-v4

Compare against previous tags ntb-abh-v1..ntb-abh-v3 to see exactly what changed in the each revised version of this series.

Different in v4:
- Correct spelling, grammer, and capitalization grammer in commit messages.
- Zero-initialize device structure in ntb_hw_intel with kzalloc_node.
- Use __copy_from_user_inatomic_nocache only if the arch has it.
- Split adding the ntb hardware abstraction layer into two patches:
NTB: Add NTB hardware abstraction layer
Adding the abstraction layer now stands alone in its own patch.
NTB: Split ntb_hw_intel and ntb_transport drivers
This patch is still rather large, at just under 200k.
Unfortunately, since the original code in ntb_hw_intel and ntb_transport called in both directions, one driver can't be changed by itself without breaking the other.

Different in v3:
- Reschedule long running tasklets to avoid stalls in transport.
- Initialize driver .owner and .name in ntb_register_client.
- Eliminate calls to BUG() in ntb_hw_intel.
- Fix incorrect PBARXLAT split-bar address assignment in ntb_hw_intel.
- Add bugfix patch: Read peer info from local SPAD in transport.
- Arrange the above bugfix, and three patches affecting transport link down, to earlier in the series, because they are higher importance.
- Add performance patch: Increase transport MTU to 64k form 16k.
- Rebase on ff25ea8f4eee to resolve a merge conflict in MAINTAINERS (conflicting context lines only, no conflicting changes).

Different in v2:
- Rewrite shortlog descriptions for spelling and style
- Remove extraneous NTB dependency from Kconfig files
- Reindent Kconfig files with leading tabs
- Reindent some lines in ntb_transport
- Append patch NTB: Rename intel hw to proper platform names

Allen Hubbe (12):
NTB: Move files in preparation for NTB abstraction
NTB: Add NTB hardware abstraction layer
NTB: Split ntb_hw_intel and ntb_transport drivers
NTB: Differentiate transport link down messages
NTB: Do not advance transport RX on link down
NTB: Reset transport QP link stats on down
NTB: Add parameters for Intel SNB B2B addresses
NTB: Add ping pong test client
NTB: Add tool test client
NTB: Rate limit ntb_qp_link_work
NTB: Use NUMA memory and DMA chan in transport
NTB: Use NUMA memory in Intel driver

Dave Jiang (7):
NTB: Read peer info from local SPAD in transport
NTB: Enable link for Intel root port mode in probe
NTB: Check the device ID to set errata flags
NTB: Improve performance with write combining
NTB: Default to CPU memcpy for performance
NTB: Rename Intel code names to platform names
NTB: Increase transport MTU to 64k from 16k

 Documentation/ntb.txt               |  127 ++
 MAINTAINERS                         |   16 +-
 drivers/net/ntb_netdev.c            |   58 +-
 drivers/ntb/Kconfig                 |   39 +-
 drivers/ntb/Makefile                |    5 +-
 drivers/ntb/hw/Kconfig              |    1 +
 drivers/ntb/hw/Makefile             |    1 +
 drivers/ntb/hw/intel/Kconfig        |    7 +
 drivers/ntb/hw/intel/Makefile       |    1 +
 drivers/ntb/hw/intel/ntb_hw_intel.c | 2214 +++++++++++++++++++++++++++++++++++
 drivers/ntb/hw/intel/ntb_hw_intel.h |  342 ++++++
 drivers/ntb/ntb.c                   |  251 ++++
 drivers/ntb/ntb_hw.c                | 1896 ------------------------------
 drivers/ntb/ntb_hw.h                |  256 ----
 drivers/ntb/ntb_regs.h              |  177 ---
 drivers/ntb/ntb_transport.c         | 1027 +++++++++-------
 drivers/ntb/test/Kconfig            |   19 +
 drivers/ntb/test/Makefile           |    2 +
 drivers/ntb/test/ntb_pingpong.c     |  250 ++++
 drivers/ntb/test/ntb_tool.c         |  556 +++++++++
 include/linux/ntb.h                 |  970 ++++++++++++++-
 include/linux/ntb_transport.h       |   85 ++
 22 files changed, 5485 insertions(+), 2815 deletions(-)
 create mode 100644 Documentation/ntb.txt
 create mode 100644 drivers/ntb/hw/Kconfig
 create mode 100644 drivers/ntb/hw/Makefile
 create mode 100644 drivers/ntb/hw/intel/Kconfig
 create mode 100644 drivers/ntb/hw/intel/Makefile
 create mode 100644 drivers/ntb/hw/intel/ntb_hw_intel.c
 create mode 100644 drivers/ntb/hw/intel/ntb_hw_intel.h
 create mode 100644 drivers/ntb/ntb.c
 delete mode 100644 drivers/ntb/ntb_hw.c
 delete mode 100644 drivers/ntb/ntb_hw.h
 delete mode 100644 drivers/ntb/ntb_regs.h
 create mode 100644 drivers/ntb/test/Kconfig
 create mode 100644 drivers/ntb/test/Makefile
 create mode 100644 drivers/ntb/test/ntb_pingpong.c
 create mode 100644 drivers/ntb/test/ntb_tool.c
 create mode 100644 include/linux/ntb_transport.h
Signature · 1 line
2.4.0.rc0.43.gcf8a8c6