From: Andrew Stellman <bugs@stellman-greene.com>
To: Zhu Yanjun <yanjun.zhu@linux.dev>, Zhu Yanjun <zyjzyj2000@gmail.com>
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: Tue, 1 Dec 2026 08:30:39 -0500 [thread overview]
Message-ID: <20261201133039.21399-1-bugs@stellman-greene.com> (raw)
In-Reply-To: <e7ef0930-f64a-448f-a8d6-ef5ef12813ad@linux.dev>
On Mon, Nov 30, 2026 at 08:53:55PM -0800, Zhu Yanjun wrote:
> Interesting. Would you like to add logs to check if the returned value
> of the function mr_page_size is changed?
I added a log inside the copy loop in rxe_mr_copy_xarray() and reran
the same NVMe/RDMA scatter test (arm64 QEMU, 64 KiB pages, KASAN). In
the copy loop, mr_page_size(mr) returned 4096 and PAGE_SIZE was 65536,
with and without the patch.
For a copy that started at offset 3584 in an MR page, the unpatched
module copied 1024 bytes in one chunk. With the patch it copied 512
bytes, then the other 512 bytes from the next MR page.
The scattered read-back failed in all three runs without the patch,
passed in all three with it, and failed again in all three after going
back to the unpatched module. Aligned 4 KiB I/O passed on both.
I can send the probe patch, test program and logs off-list if you'd
like them.
Andrew
prev parent reply other threads:[~2026-12-01 13:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 14:08 Andrew Stellman
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
2026-11-30 22:12 ` Andrew Stellman
2026-12-01 4:53 ` Zhu Yanjun
2026-12-01 13:30 ` Andrew Stellman [this message]
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=20261201133039.21399-1-bugs@stellman-greene.com \
--to=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=yanjun.zhu@linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®