All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Edward Srouji" <edwards@nvidia.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next v2 1/3] RDMA/mlx5: Respect pgsz_bitmap when reducing the DEVX UMEM page size
Date: Wed, 11 Nov 2026 14:48:55 +0000	[thread overview]
Message-ID: <sashiko-outbox-209193@kernel.org> (raw)
In-Reply-To: <20261111-devx-umem-mailbox-overflow-v2-1-1e7ca8237b58@nvidia.com>

> devx_umem_find_best_pgsize() starts from the largest usable page size
> allowed by the user's pgsz_bitmap and halves it until the umem starts
> on a page boundary and its length is a multiple of the page size. The
> halving ignores pgsz_bitmap, so the umem can be created with a page
> size userspace did not allow, although the bitmap is meant to reflect
> the HW limits of the intended use of the umem.
> 
> Step down to the next smaller size in pgsz_bitmap instead, and fail
> the registration if none is left. The default bitmap includes every
> power-of-two page size from 4K up, so the result is unchanged when
> userspace does not pass one.
> 
> The Sashiko AI reviewer found this while reviewing another DEVX UMEM
> patch.
> 
> Fixes: 7610ab57de56 ("RDMA/mlx5: Allow larger pages in DevX umem")
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://lore.kernel.org/linux-rdma/sashiko-outbox-205134@kernel.org/
> Signed-off-by: Edward Srouji <edwards@nvidia.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261111-devx-umem-mailbox-overflow-v2-0-1e7ca8237b58@nvidia.com?part=1


  reply	other threads:[~2026-11-11 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 13:57 [PATCH rdma-next v2 0/3] RDMA: Fix DEVX UMEM mailbox size overflow Edward Srouji
2026-11-11 13:57 ` [PATCH rdma-next v2 1/3] RDMA/mlx5: Respect pgsz_bitmap when reducing the DEVX UMEM page size Edward Srouji
2026-11-11 14:48   ` sashiko-bot [this message]
2026-11-11 13:57 ` [PATCH rdma-next v2 2/3] RDMA/mlx5: Fix DEVX UMEM mailbox size truncation Edward Srouji
2026-11-11 14:55   ` sashiko-bot
2026-11-11 13:57 ` [PATCH rdma-next v2 3/3] RDMA/core: Don't warn on oversized bundle allocations Edward Srouji
2026-11-11 14:43   ` sashiko-bot

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-209193@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=edwards@nvidia.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 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.