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 v2 2/2] RDMA/erdma: Support non-4K page size in doorbell allocation
Date: Tue, 14 Mar 2023 19:34:03 +0800 [thread overview]
Message-ID: <560200e2-0428-4743-6af5-01df785c76db@linux.alibaba.com> (raw)
In-Reply-To: <5b0cc34d-a185-d9b4-c312-27bc959d929d@linux.alibaba.com>
On 3/14/23 7:31 PM, Cheng Xu wrote:
>
>
> On 3/14/23 6:23 PM, Leon Romanovsky wrote:
>> On Tue, Mar 07, 2023 at 06:29:24PM +0800, Cheng Xu wrote:
>>> Doorbell resources are exposed to userspace by mmap. The size unit of mmap
>>> is PAGE_SIZE, previous implementation can not work correctly if PAGE_SIZE
>>> is not 4K. We support non-4K page size in this commit.
>>
>> Why do you need this information in rdma-core?
>> Can you use sysconf(_SC_PAGESIZE) there to understand the page size like
>> other providers?
>>
>
> I don't expose PAGE_SIZE to userspace in this patchset, but the *offset* in
> PAGE of the DBs:
>
> diff --git a/include/uapi/rdma/erdma-abi.h b/include/uapi/rdma/erdma-abi.h
> index b7a0222f978f..57f8942a3c56 100644
> --- a/include/uapi/rdma/erdma-abi.h
> +++ b/include/uapi/rdma/erdma-abi.h
> @@ -40,10 +40,13 @@ struct erdma_uresp_alloc_ctx {
> __u32 dev_id;
> __u32 pad;
> __u32 sdb_type;
> - __u32 sdb_offset;
> + __u32 sdb_entid;
> __aligned_u64 sdb;
> __aligned_u64 rdb;
> __aligned_u64 cdb;
> + __u32 sdb_off;
> + __u32 rdb_off;
> + __u32 cdb_off;
> };
>
> Our doorbell space is aligned to 4096
>
Please ignore these two response. There is something wrong with my Thunderbird:
When I press ctrl + s, it send the email, not save it.
Sorry for this.
Cheng Xu
>
>
>> Thanks
next prev parent reply other threads:[~2023-03-14 11:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 10:29 [PATCH for-next v2 0/2] RDMA/erdma: Add non-4K page size support Cheng Xu
2023-03-07 10:29 ` [PATCH for-next v2 1/2] RDMA/erdma: Use fixed hardware page size Cheng Xu
2023-03-24 14:34 ` Jason Gunthorpe
2023-03-07 10:29 ` [PATCH for-next v2 2/2] RDMA/erdma: Support non-4K page size in doorbell allocation Cheng Xu
2023-03-14 10:23 ` Leon Romanovsky
[not found] ` <5b0cc34d-a185-d9b4-c312-27bc959d929d@linux.alibaba.com>
2023-03-14 11:34 ` Cheng Xu [this message]
2023-03-14 11:50 ` Cheng Xu
2023-03-14 14:10 ` Leon Romanovsky
2023-03-15 1:58 ` Cheng Xu
2023-03-15 10:22 ` Leon Romanovsky
2023-03-21 14:30 ` Jason Gunthorpe
2023-03-22 7:05 ` Cheng Xu
2023-03-22 11:54 ` Jason Gunthorpe
2023-03-22 13:30 ` Cheng Xu
2023-03-22 14:01 ` Jason Gunthorpe
2023-03-22 15:09 ` Gal Pressman
2023-03-23 6:57 ` Cheng Xu
2023-03-23 11:53 ` Jason Gunthorpe
2023-03-23 12:33 ` Cheng Xu
2023-03-23 13:05 ` Jason Gunthorpe
2023-03-23 14:10 ` Cheng Xu
2023-03-23 14:18 ` Jason Gunthorpe
2023-03-26 0:10 ` Cheng Xu
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=560200e2-0428-4743-6af5-01df785c76db@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox