All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Weihang Li <liweihang@huawei.com>
Cc: <dledford@redhat.com>, <leon@kernel.org>,
	<linux-rdma@vger.kernel.org>, <linuxarm@openeuler.org>
Subject: Re: [PATCH v2 RFC 0/7] RDMA/hns: Add support for Dynamic Context Attachment
Date: Fri, 5 Feb 2021 14:03:15 -0400	[thread overview]
Message-ID: <20210205180315.GA969245@nvidia.com> (raw)
In-Reply-To: <1611394994-50363-1-git-send-email-liweihang@huawei.com>

On Sat, Jan 23, 2021 at 05:43:07PM +0800, Weihang Li wrote:
> 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:
> * 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    | 1264 +++++++++++++++++++++++++++
>  drivers/infiniband/hw/hns/hns_roce_dca.h    |   68 ++
>  drivers/infiniband/hw/hns/hns_roce_device.h |   31 +
>  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     |  119 ++-
>  include/uapi/rdma/hns-abi.h                 |   64 ++

Where are the rdma-core changes to go with this?

Jason

  parent reply	other threads:[~2021-02-05 18:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23  9:43 [PATCH v2 RFC 0/7] RDMA/hns: Add support for Dynamic Context Attachment Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 1/7] RDMA/hns: Introduce DCA for RC QP Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 2/7] RDMA/hns: Add method for shrinking DCA memory pool Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 3/7] RDMA/hns: Configure DCA mode for the userspace QP Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 4/7] RDMA/hns: Add method for attaching WQE buffer Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 5/7] RDMA/hns: Setup the configuration of WQE addressing to QPC Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 6/7] RDMA/hns: Add method to detach WQE buffer Weihang Li
2021-01-23  9:43 ` [PATCH v2 RFC 7/7] RDMA/hns: Add method to query WQE buffer's address Weihang Li
2021-02-05 18:03 ` Jason Gunthorpe [this message]
2021-02-07  3:34   ` [PATCH v2 RFC 0/7] RDMA/hns: Add support for Dynamic Context Attachment liweihang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210205180315.GA969245@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=dledford@redhat.com \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linuxarm@openeuler.org \
    --cc=liweihang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.