From: Zhu Yanjun <yanjun.zhu@linux.dev>
To: Andrew Stellman <bugs@stellman-greene.com>,
Zhu Yanjun <zyjzyj2000@gmail.com>,
"yanjun.zhu@linux.dev" <yanjun.zhu@linux.dev>
Cc: Li Zhijian <lizhijian@fujitsu.com>,
Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages
Date: Sun, 29 Nov 2026 20:57:43 -0800 [thread overview]
Message-ID: <920a6176-c633-4e10-97aa-cde8103e94b5@linux.dev> (raw)
In-Reply-To: <20261130041003.16909-1-bugs@stellman-greene.com>
在 2026/11/29 20:10, Andrew Stellman 写道:
> On Sun, Nov 29, 2026 at 11:16:37AM -0800, Zhu Yanjun wrote:
>> Can you find anywhere else where mr->ibmr.page_size is assigned a
>> different value?
> Yes. ib_map_mr_sg() in drivers/infiniband/core/verbs.c sets the
> ib_mr's page_size to its caller's page_size argument before it calls
> the driver's map_mr_sg. For rxe that's mr->ibmr.page_size, and
> rxe_map_mr_sg() reads it back with mr_page_size(). rxe_map_mr_sg()
> accepts a page size smaller than PAGE_SIZE when PAGE_SIZE is a
> multiple of it.
In rxe, mr_page_size() always returns PAGE_SIZE and never changes.
As a result, these commits only add implementation complexity without
bringing any practical benefit to rxe. If you intend to support
different page_size
values in rxe, patches implementing that feature would be very welcome.
From my perspective, however, the current patch does not yet actually
deliver that capability.
Thanks,
Yanjun Zhu
>
> One in-tree caller that passes 4 KiB is nvme_rdma_map_sg_fr() in
> drivers/nvme/host/rdma.c, which calls ib_map_mr_sg(..., SZ_4K). On a
> 64 KiB-page kernel that's a fast-reg MR with 4 KiB MR pages.
>
> This is from reading current mainline. I haven't run NVMe over RDMA
> on rxe; in my tests the 4 KiB MR page size was set by the test-only
> hook.
--
Best Regards,
Yanjun.Zhu
next prev parent reply other threads:[~2026-11-30 4:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 14:08 [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages Andrew Stellman
2026-11-28 14:14 ` sashiko-bot
2026-11-28 17:21 ` Zhu Yanjun
2026-11-29 0:19 ` Andrew Stellman
2026-11-29 0:36 ` Zhu Yanjun
2026-11-29 13:53 ` Andrew Stellman
2026-11-29 19:16 ` Zhu Yanjun
2026-11-30 4:10 ` Andrew Stellman
2026-11-30 4:57 ` Zhu Yanjun [this message]
2026-11-30 22:12 ` Andrew Stellman
2026-12-01 4:53 ` Zhu Yanjun
2026-12-01 13:30 ` Andrew Stellman
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=920a6176-c633-4e10-97aa-cde8103e94b5@linux.dev \
--to=yanjun.zhu@linux.dev \
--cc=bugs@stellman-greene.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lizhijian@fujitsu.com \
--cc=zyjzyj2000@gmail.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.