All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cheng Xu <chengyou@linux.alibaba.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org, KaiShen@linux.alibaba.com
Subject: Re: [PATCH for-next 0/4] RDMA/erdma: Add a new doorbell allocation mechanism
Date: Tue, 13 Jun 2023 10:10:12 +0800	[thread overview]
Message-ID: <a754cbb3-43af-8317-68a4-ff02232ac5a7@linux.alibaba.com> (raw)
In-Reply-To: <20230611091936.GB12152@unreal>



On 6/11/23 5:19 PM, Leon Romanovsky wrote:
> On Tue, Jun 06, 2023 at 01:50:01PM +0800, Cheng Xu wrote:
>> Hi,
>>
>> This series adds a new doorbell allocation mechanism to meet the
>> the isolation requirement for userspace applications. Two main change
>> points in this patch set: One is that we extend the bar space for doorbell
>> allocation, and the other one is that we associate QPs/CQs with the
>> allocated doorbells for authorization. We also keep the original doorbell
>> mechanism for compatibility, but only used under CAP_SYS_RAWIO to prevent
>> non-privileged access, which suggested by Jason before.
>>
>> - #1 configures the current PAGE_SIZE to hardware, so that hardware can
>>   organize the mmio space properly.
>> - #2~#3 implement the new doorbell allocation mechanism.
>> - #4 refactors the doorbell allocation part to make code more simpler and
>>   cleaner.
>>
>> Thanks,
>> Cheng Xu
>>
>> Cheng Xu (4):
>>   RDMA/erdma: Configure PAGE_SIZE to hardware
>>   RDMA/erdma: Allocate doorbell resources from hardware
>>   RDMA/erdma: Associate QPs/CQs with doorbells for authorization
>>   RDMA/erdma: Refactor the original doorbell allocation mechanism
> 
> As a side note, there is no need to perform double not (!!...) when
> assigning to bool variables.
> 

Get it. I will address it in future patchset together with other cleaning up.

Thanks,
Cheng Xu


  reply	other threads:[~2023-06-13  2:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-06  5:50 [PATCH for-next 0/4] RDMA/erdma: Add a new doorbell allocation mechanism Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 1/4] RDMA/erdma: Configure PAGE_SIZE to hardware Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 2/4] RDMA/erdma: Allocate doorbell resources from hardware Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 3/4] RDMA/erdma: Associate QPs/CQs with doorbells for authorization Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 4/4] RDMA/erdma: Refactor the original doorbell allocation mechanism Cheng Xu
2023-06-11  9:19 ` [PATCH for-next 0/4] RDMA/erdma: Add a new " Leon Romanovsky
2023-06-13  2:10   ` Cheng Xu [this message]
2023-06-11  9:19 ` Leon Romanovsky

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=a754cbb3-43af-8317-68a4-ff02232ac5a7@linux.alibaba.com \
    --to=chengyou@linux.alibaba.com \
    --cc=KaiShen@linux.alibaba.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    /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.