From: sashiko-bot@kernel.org
To: "Jacob Moroni" <jmoroni@google.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next 1/2] RDMA/irdma: Fix FRWR logic for PAGE_SIZE > 4K
Date: Thu, 22 Oct 2026 21:13:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-182050@kernel.org> (raw)
In-Reply-To: <20261022210650.1182000-2-jmoroni@google.com>
> The HW only supports 1G, 2M, and 4K page sizes, but some ULPs
> pass PAGE_SIZE to ib_map_mr_sg(), and PAGE_SIZE can be some
> multiple of 4K (64K arm kernels, etc.). The HW can still support
> these scenarios, but we must force it to use 4K pages. The
> max_fast_reg_page_list_len and page_cnt during MR allocation
> must also be scaled to accommodate for the additional PBLEs
> that will be used when ib_sg_to_pages() ends up producing
> more pages than what would have otherwise been required with
> the original page size. It is worth noting that this change
> avoids this over-allocation/cracking in the off chance that
> a 1G or 2M PAGE_SIZE is ever used; it's only applicable when
> PAGE_SIZE is some power of 2 multiple of 4K that is not
> currently supported by HW.
>
> This was discovered by encountering SMMU faults when running
> kernel NFS/RDMA on a 64K kernel, which was due to the page
> list holding PAGE_SIZE entries while the WQE was indicating
> 4K, so HW was translating every access after the first 4K
> incorrectly.
>
> Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
> Tested-by: Leah Li <leahlijuan@google.com>
> Signed-off-by: Jacob Moroni <jmoroni@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261022210650.1182000-1-jmoroni@google.com?part=1
next prev parent reply other threads:[~2026-10-22 21:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 21:06 [PATCH rdma-next 0/2] RDMA/irdma: Fix FRWR and PBLE handling for PAGE_SIZE > 4K Jacob Moroni
2026-10-22 21:06 ` [PATCH rdma-next 1/2] RDMA/irdma: Fix FRWR logic " Jacob Moroni
2026-10-22 21:13 ` sashiko-bot [this message]
2026-10-28 19:59 ` Nikolova, Tatyana E
2026-10-22 21:06 ` [PATCH rdma-next 2/2] RDMA/irdma: Fix paged PBLE and virtual AEQ " Jacob Moroni
2026-10-22 21:12 ` sashiko-bot
2026-10-28 19:59 ` Nikolova, Tatyana E
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=sashiko-outbox-182050@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=jmoroni@google.com \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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