Skip to content

Switchtec MRPC DMA mode support

Wesley Sheng linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5switchtec: Remove immediate status check after submit a MRPC commanddrivers/pci/switch/switchtec.c+0 -40 replies
2/5switchtec: Set DMA coherent mask in Switchtec driverdrivers/pci/switch/switchtec.c+4 -00 replies
3/5switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctldrivers/pci/switch/switchtec.c+3 -00 replies
4/5switchtec: Improve MRPC efficiency by leveraging write combiningdrivers/pci/switch/switchtec.c+35 -60 replies
5/5switchtec: MRPC DMA mode implementationdrivers/pci/switch/switchtec.c include/linux/switchtec.h+114 -100 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLogan Gunthorpe
SeriesR-b
1/5
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] Switchtec MRPC DMA mode support

Hi, Everyone,

This patch series adds support for the Switchtec MRPC DMA mode.

Switchtec switches supports 2 MRPC interaction modes: MRPC normal mode and MRPC DMA mode, a new feature in the latest firmware versions. MRPC normal mode requires the host to read the MRPC command status and output data. In MRPC DMA mode the command status and output data are pushed directly to host memory and issues an interrupt upon completion. The advantage of MRPC DMA mode is avoiding potential high latency response from the Memory Read TLP.

Additionally, we've made the following changes:

* Improve the efficiency of filling MRPC Input buffer by enabling write combining on MRPC region of BAR
* Software workaround for delay responded Memory READ TLPs that access the BAR
* And several bug fixes

Regards,
Wesley

Boris Glimcher (1):
switchtec: Set DMA coherent mask in Switchtec driver

Joey Zhang (1):
switchtec: A temporary variable should be used for the flags of
switchtec_ioctl_event_ctl

Kelvin Cao (2):
switchtec: Remove immediate status check after submit a MRPC command
switchtec: Improve MRPC efficiency by leveraging write combining

Wesley Sheng (1):
switchtec: MRPC DMA mode implementation

 drivers/pci/switch/switchtec.c | 154 ++++++++++++++++++++++++++++++++++++-----
 include/linux/switchtec.h      |  16 +++++
 2 files changed, 153 insertions(+), 17 deletions(-)
Signature · 1 line
2.7.4