mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: jgg@ziepe.ca, 0z5a <dezhen.lu@student.uni-tuebingen.de>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
	 stable@vger.kernel.org
Subject: Re: [PATCH rdma-rc] RDMA/mlx5: Fix DevX umem page size truncation for pages >= 4G
Date: Thu, 05 Nov 2026 14:30:20 -0500	[thread overview]
Message-ID: <179390702044.98181.15076173312140750474.b4-ty@kernel.org> (raw)
In-Reply-To: <20261103142804.67210-1-dezhen.lu@student.uni-tuebingen.de>


On Tue, 03 Nov 2026 15:28:04 +0100, 0z5a wrote:
> devx_umem_find_best_pgsize() computes the page size in an unsigned long
> but returns it as unsigned int, and devx_umem_reg_cmd_alloc() stores it
> in an unsigned int. When the DMA mapping of the umem is contiguous and
> aligned to 4 GiB or more, and the umem length is a multiple of that
> size, ib_umem_find_best_pgoff() selects a page size >= 2^32. Since the
> value is a power of two, the truncation turns it into 0 and the
> registration fails with -EINVAL.
> 
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: Fix DevX umem page size truncation for pages >= 4G
      https://git.kernel.org/rdma/rdma/c/b5c11bf9759834

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


  parent reply	other threads:[~2026-11-05 19:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 14:28 0z5a
2026-11-04 10:07 ` Leon Romanovsky
2026-11-04 17:40   ` Jason Gunthorpe
2026-11-04 17:38 ` Jason Gunthorpe
2026-11-05 19:30 ` Leon Romanovsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-03 14:27 0z5a

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=179390702044.98181.15076173312140750474.b4-ty@kernel.org \
    --to=leon@kernel.org \
    --cc=dezhen.lu@student.uni-tuebingen.de \
    --cc=jgg@ziepe.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /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®