Skip to content

IB/hfi1: Add a page pinning cache for PSM sdma

Dennis Dalessandro linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16IB/hfi1: Re-factor MMU notification codedrivers/infiniband/hw/hfi1/Makefile drivers/infiniband/hw/hfi1/file_ops.c drivers/infiniband/hw/hfi1/hfi.h +3 more+471 -2590 replies
2/16IB/hfi1: Allow MMU function execution in IRQ contextdrivers/infiniband/hw/hfi1/mmu_rb.c+21 -150 replies
3/16IB/hfi1: Prevent NULL pointer dereferencedrivers/infiniband/hw/hfi1/mmu_rb.c+3 -00 replies
4/16IB/hfi1: Allow remove MMU callbacks to free nodesdrivers/infiniband/hw/hfi1/mmu_rb.c+7 -50 replies
5/16IB/hfi1: Remove the use of add/remove RB function pointersdrivers/infiniband/hw/hfi1/hfi.h drivers/infiniband/hw/hfi1/user_exp_rcv.c+14 -130 replies
6/16IB/hfi1: Notify remove MMU/RB callback of calling contextdrivers/infiniband/hw/hfi1/mmu_rb.c drivers/infiniband/hw/hfi1/mmu_rb.h drivers/infiniband/hw/hfi1/user_exp_rcv.c+11 -100 replies
7/16IB/hfi1: Use interval RB treesdrivers/infiniband/hw/hfi1/mmu_rb.c drivers/infiniband/hw/hfi1/mmu_rb.h+34 -750 replies
8/16IB/hfi1: Add MMU tracingdrivers/infiniband/hw/hfi1/mmu_rb.c drivers/infiniband/hw/hfi1/trace.c drivers/infiniband/hw/hfi1/trace.h+12 -00 replies
9/16IB/hfi1: Remove compare callbackdrivers/infiniband/hw/hfi1/mmu_rb.c drivers/infiniband/hw/hfi1/mmu_rb.h drivers/infiniband/hw/hfi1/user_exp_rcv.c+1 -170 replies
10/16IB/hfi1: Add filter callbackdrivers/infiniband/hw/hfi1/mmu_rb.c drivers/infiniband/hw/hfi1/mmu_rb.h+15 -50 replies
11/16IB/hfi1: Adjust last address values for intervalsdrivers/infiniband/hw/hfi1/mmu_rb.c+3 -30 replies
12/16IB/hfi1: Implement SDMA-side buffer cachingdrivers/infiniband/hw/hfi1/user_sdma.c drivers/infiniband/hw/hfi1/user_sdma.h+155 -1010 replies
13/16IB/hfi1: Add pin query functiondrivers/infiniband/hw/hfi1/hfi.h drivers/infiniband/hw/hfi1/user_pages.c+47 -60 replies
14/16IB/hfi1: Specify mm when releasing pagesdrivers/infiniband/hw/hfi1/hfi.h drivers/infiniband/hw/hfi1/user_exp_rcv.c drivers/infiniband/hw/hfi1/user_pages.c +1 more+22 -140 replies
15/16IB/hfi1: Switch to using the pin query functiondrivers/infiniband/hw/hfi1/hfi.h drivers/infiniband/hw/hfi1/user_exp_rcv.c+8 -10 replies
16/16IB/hfi1: Add SDMA cache eviction algorithmdrivers/infiniband/hw/hfi1/user_sdma.c drivers/infiniband/hw/hfi1/user_sdma.h+62 -20 replies

Reviews trailers per patch

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

PatchDennis DalessandroDean Luick
1/16R-b R-b
2/16R-b R-b
3/16R-b R-b
4/16R-b R-b
5/16R-b R-b
6/16R-b R-b
7/16R-b R-b
8/16R-b R-b
9/16R-b R-b
10/16R-b R-b
11/16R-b R-b
12/16R-b R-b
13/16R-b R-b
14/16R-b R-b
15/16R-b R-b
16/16R-b R-b

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 00/16] IB/hfi1: Add a page pinning cache for PSM sdma

This patch series adds a performance improvement to user SDMA transfers from PSM applications by caching user buffer pages after pinning them. Subsequent uses of the same user buffer will not incur the cost of pinning the same pages again. Additionally, the cost of unpinning the same pages is avoided. Buffer pages are unpinned when the context is torn down or when the driver determines that the buffer should be evicted from the cache. Cache evictions happen when there is a request for a new, uncached buffer and the current size of the cache has reached a pre-defined limit.

Series applies on "Adaptive PIO bug fixes..." series submitted yesterday and should apply cleanly to Doug's GitHub hfi1 branch.

Can also be seen in my GitHub at:
https://github.com/ddalessa/kernel/tree/for-4.6.

---

Mitko Haralanov (16):
IB/hfi1: Re-factor MMU notification code IB/hfi1: Allow MMU function execution in IRQ context IB/hfi1: Prevent NULL pointer dereference IB/hfi1: Allow remove MMU callbacks to free nodes IB/hfi1: Remove the use of add/remove RB function pointers IB/hfi1: Notify remove MMU/RB callback of calling context IB/hfi1: Use interval RB trees
IB/hfi1: Add MMU tracing
IB/hfi1: Remove compare callback
IB/hfi1: Add filter callback
IB/hfi1: Adjust last address values for intervals IB/hfi1: Implement SDMA-side buffer caching IB/hfi1: Add pin query function
IB/hfi1: Specify mm when releasing pages IB/hfi1: Switch to using the pin query function IB/hfi1: Add SDMA cache eviction algorithm

 drivers/infiniband/hw/hfi1/Makefile       |    2 
 drivers/infiniband/hw/hfi1/file_ops.c     |    1 
 drivers/infiniband/hw/hfi1/hfi.h          |   16 +
 drivers/infiniband/hw/hfi1/mmu_rb.c       |  292 +++++++++++++++++++++++
 drivers/infiniband/hw/hfi1/mmu_rb.h       |   73 ++++++
 drivers/infiniband/hw/hfi1/trace.c        |    1 
 drivers/infiniband/hw/hfi1/trace.h        |    1 
 drivers/infiniband/hw/hfi1/user_exp_rcv.c |  362 ++++++++---------------------
 drivers/infiniband/hw/hfi1/user_pages.c   |   63 ++++-
 drivers/infiniband/hw/hfi1/user_sdma.c    |  319 +++++++++++++++++---------
 drivers/infiniband/hw/hfi1/user_sdma.h    |    4 
 11 files changed, 747 insertions(+), 387 deletions(-)
 create mode 100644 drivers/infiniband/hw/hfi1/mmu_rb.c
 create mode 100644 drivers/infiniband/hw/hfi1/mmu_rb.h
Signature · 5 lines
-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html