Re: [PATCH rdma-rc] RDMA/mlx5: Fix DevX umem page size truncation for pages >= 4G

From: Leon Romanovsky

Date: Thu Nov 05 2026 - 14:41:00 EST



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@xxxxxxxxxx>