All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 for-next 0/7] RDMA/hns: Add support for Dynamic Context Attachment
@ 2021-05-11 11:22 Weihang Li
  2021-05-11 11:22 ` [PATCH v2 for-next 1/7] RDMA/hns: Introduce DCA for RC QP Weihang Li
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Weihang Li @ 2021-05-11 11:22 UTC (permalink / raw)
  To: dledford, jgg; +Cc: leon, linux-rdma, linuxarm, Weihang Li

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.

Changes since v1:
* Modify return type of hns_roce_enable_dca() to void.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/1620650889-61650-1-git-send-email-liweihang@huawei.com/

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/1611394994-50363-1-git-send-email-liweihang@huawei.com/

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/1610706138-4219-1-git-send-email-liweihang@huawei.com/

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    | 1262 +++++++++++++++++++++++++++
 drivers/infiniband/hw/hns/hns_roce_dca.h    |   69 ++
 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     |  105 ++-
 include/uapi/rdma/hns-abi.h                 |   64 ++
 9 files changed, 1746 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

-- 
2.7.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-20  3:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 11:22 [PATCH v2 for-next 0/7] RDMA/hns: Add support for Dynamic Context Attachment Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 1/7] RDMA/hns: Introduce DCA for RC QP Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 2/7] RDMA/hns: Add method for shrinking DCA memory pool Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 3/7] RDMA/hns: Configure DCA mode for the userspace QP Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 4/7] RDMA/hns: Add method for attaching WQE buffer Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 5/7] RDMA/hns: Setup the configuration of WQE addressing to QPC Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 6/7] RDMA/hns: Add method to detach WQE buffer Weihang Li
2021-05-11 11:22 ` [PATCH v2 for-next 7/7] RDMA/hns: Add method to query WQE buffer's address Weihang Li
2021-05-20  3:56 ` [PATCH v2 for-next 0/7] RDMA/hns: Add support for Dynamic Context Attachment liweihang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.