RDMA/hns: Add support for Dynamic Context Attachment
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 4 repliesIn review
Changes since RFC v2 from the cover letter
* Just fix a typo in commit message of #6.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | RDMA/hns: Introduce DCA for RC QPdrivers/ drivers/ drivers/ +3 more | +465 | 2 replies | |
| 2/7 | RDMA/hns: Add method for shrinking DCA memory pooldrivers/ drivers/ include/ | +157 | 0 replies | |
| 3/7 | RDMA/hns: Configure DCA mode for the userspace QPdrivers/ drivers/ drivers/ +4 more | +137 | 2 replies | |
| 4/7 | RDMA/hns: Add method for attaching WQE bufferdrivers/ drivers/ drivers/ +1 more | +510 | 0 replies | |
| 5/7 | RDMA/hns: Setup the configuration of WQE addressing to QPCdrivers/ drivers/ | +139 | 0 replies | |
| 6/7 | RDMA/hns: Add method to detach WQE bufferdrivers/ drivers/ drivers/ +3 more | +225 | 0 replies | |
| 7/7 | RDMA/hns: Add method to query WQE buffer's addressdrivers/ drivers/ include/ | +127 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH for-next 0/7] RDMA/hns: Add support for Dynamic Context Attachment
The HIP09 introduces the DCA(Dynamic Context Attachment) feature which supports many RC QPs to share the WQE buffer in a memory pool. If a QP enables DCA feature, the WQE's buffer will not be allocated when creating but when the users start to post WRs. This will reduce the memory consumption when there are too many QPs are inactive.
Two RFC versions of this series has been sent before, and it's associated with the userspace one "libhns: Add support for Dynamic Context Attachment".
Changes since RFC v2:
* Just fix a typo in commit message of #6.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/
Changes since RFC v1:
* Replace all GFP_ATOMIC with GFP_NOWAIT, because the former may use
emergency pool if no regular memory can be found.
* Change size of cap_flags of alloc_ucontext_resp from 32 to 64 to avoid
a potential problem when pass it back to the userspace.
* Move definition of HNS_ROCE_CAP_FLAG_DCA_MODE to hns-abi.h.
* Rename free_mem_states() to free_dca_states() in #1.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/
Xi Wang (7):
RDMA/hns: Introduce DCA for RC QP
RDMA/hns: Add method for shrinking DCA memory pool RDMA/hns: Configure DCA mode for the userspace QP RDMA/hns: Add method for attaching WQE buffer RDMA/hns: Setup the configuration of WQE addressing to QPC RDMA/hns: Add method to detach WQE buffer RDMA/hns: Add method to query WQE buffer's address
drivers/infiniband/hw/hns/Makefile | 2 +- drivers/infiniband/hw/hns/hns_roce_dca.c | 1264 +++++++++++++++++++++++++++ drivers/infiniband/hw/hns/hns_roce_dca.h | 68 ++ drivers/infiniband/hw/hns/hns_roce_device.h | 33 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 223 ++++- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 3 + drivers/infiniband/hw/hns/hns_roce_main.c | 27 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 110 ++- include/uapi/rdma/hns-abi.h | 64 ++ 9 files changed, 1752 insertions(+), 42 deletions(-) create mode 100644 drivers/infiniband/hw/hns/hns_roce_dca.c create mode 100644 drivers/infiniband/hw/hns/hns_roce_dca.h
Signature · 1 line
2.7.4