[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a344b3b0-a43f-47eb-b5e4-9d54cda62518@acm.org>
Date: Sat, 28 Oct 2023 16:07:23 -0700
From: Bart Van Assche <bvanassche@....org>
To: Zhu Yanjun <yanjun.zhu@...ux.dev>,
Li Zhijian <lizhijian@...itsu.com>, zyjzyj2000@...il.com,
jgg@...pe.ca, leon@...nel.org, linux-rdma@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, rpearsonhpe@...il.com,
matsuda-daisuke@...itsu.com
Subject: Re: [PATCH RFC 1/2] RDMA/rxe: don't allow registering !PAGE_SIZE mr
On 10/27/23 19:48, Zhu Yanjun wrote:
> In this case, ULP with folio will not work well with current RXE after
> this commit is applied.
Why not? RDMA ULPs like the SRP initiator driver use ib_map_mr_sg(). The
latter function calls rxe_map_mr_sg() if the RXE driver is used.
rxe_map_mr_sg() calls ib_sg_to_pages(). ib_sg_to_pages() translates
SG-entries that are larger than a virtual memory page into multiple
entries with size mr->page_size.
Thanks,
Bart.
Powered by blists - more mailing lists