From: Leon Romanovsky <leon@kernel.org>
To: Daisuke Matsuda <dskmtsd@gmail.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
linux-rdma@vger.kernel.org, Zhu Yanjun <zyjzyj2000@gmail.com>
Subject: Re: [PATCH rdma-next] RDMA/rxe: Break endless pagefault loop for RO pages
Date: Thu, 22 May 2025 16:42:36 +0300 [thread overview]
Message-ID: <20250522134236.GR7435@unreal> (raw)
In-Reply-To: <20250522133716.GQ7435@unreal>
On Thu, May 22, 2025 at 04:37:16PM +0300, Leon Romanovsky wrote:
> On Thu, May 22, 2025 at 10:29:02PM +0900, Daisuke Matsuda wrote:
> >
> > On 2025/05/22 20:36, Leon Romanovsky wrote:
> > > From: Leon Romanovsky <leonro@nvidia.com>
> > >
> > > RO pages has "perm" equal to 0, that caused to the situation
> > > where such pages were marked as needed to have fault and caused
> > > to infinite loop.
> > >
> > > Fixes: eedd5b1276e7 ("RDMA/umem: Store ODP access mask information in PFN")
> > > Reported-by: Daisuke Matsuda <dskmtsd@gmail.com>
> > > Closes: https://lore.kernel.org/all/3e8f343f-7d66-4f7a-9f08-3910623e322f@gmail.com
> > > Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
> >
> > Tested-by: Daisuke Matsuda <dskmtsd@gmail.com>
> >
> > Thank you!
> > This change fixes one of the two issues I reported.
> > The kernel module does not get stuck in rxe_ib_invalidate_range() anymore.
> >
> >
> > The remaining one is the stuck issue in uverbs_destroy_ufile_hw().
> > cf. https://lore.kernel.org/all/3e8f343f-7d66-4f7a-9f08-3910623e322f@gmail.com/
>
> Thanks, I updated the link to point to https://lore.kernel.org/all/3016329a-4edd-4550-862f-b298a1b79a39@gmail.com/
>
> >
> > The issue occurs with test_odp_async_prefetch_rc_traffic, which is not yet
> > enabled in rxe. It might indicate that the root cause lies in ib_uverbs layer.
>
> Unlikely, up till now, it indicated that driver didn't release some
> uverb object.
BTW, all places in RXE driver which do the following:
page = hmm_pfn_to_page(umem_odp->map.pfn_list[index]);
if (!page) {
...
are incorrect, hmm_pfn_to_page() will always return something.
Thanks
next prev parent reply other threads:[~2025-05-22 13:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 11:36 [PATCH rdma-next] RDMA/rxe: Break endless pagefault loop for RO pages Leon Romanovsky
2025-05-22 13:29 ` Daisuke Matsuda
2025-05-22 13:37 ` Leon Romanovsky
2025-05-22 13:42 ` Leon Romanovsky [this message]
2025-05-23 12:15 ` Zhu Yanjun
2025-05-23 12:57 ` Daisuke Matsuda
2025-05-22 13:35 ` Leon Romanovsky
2025-05-22 15:40 ` Zhu Yanjun
2025-05-22 16:07 ` 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=20250522134236.GR7435@unreal \
--to=leon@kernel.org \
--cc=dskmtsd@gmail.com \
--cc=jgg@nvidia.com \
--cc=linux-rdma@vger.kernel.org \
--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.