All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-next] RDMA/mlx5: Release the HW‑provided UAR index rather than the SW one
@ 2026-06-11 10:20 Leon Romanovsky
  2026-06-11 19:19 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Leon Romanovsky @ 2026-06-11 10:20 UTC (permalink / raw)
  To: Leon Romanovsky, Jason Gunthorpe, Yishai Hadas; +Cc: linux-rdma, linux-kernel

From: Leon Romanovsky <leonro@nvidia.com>

Free the UAR index returned by the hardware.

Fixes: 4ed131d0bb15 ("IB/mlx5: Expose dynamic mmap allocation")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 drivers/infiniband/hw/mlx5/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index a558ac5bb219..0f5c61db1d06 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -2674,7 +2674,7 @@ static int uar_mmap(struct mlx5_ib_dev *dev, enum mlx5_ib_mmap_cmd cmd,
 	if (!dyn_uar)
 		return err;
 
-	mlx5_cmd_uar_dealloc(dev->mdev, idx, context->devx_uid);
+	mlx5_cmd_uar_dealloc(dev->mdev, uar_index, context->devx_uid);
 
 free_bfreg:
 	mlx5_ib_free_bfreg(dev, bfregi, bfreg_dyn_idx);

---
base-commit: 54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5
change-id: 20260611-fix-uar-release-8f74932eb527

Best regards,
--  
Leon Romanovsky <leonro@nvidia.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH rdma-next] RDMA/mlx5: Release the HW‑provided UAR index rather than the SW one
  2026-06-11 10:20 [PATCH rdma-next] RDMA/mlx5: Release the HW‑provided UAR index rather than the SW one Leon Romanovsky
@ 2026-06-11 19:19 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2026-06-11 19:19 UTC (permalink / raw)
  To: Leon Romanovsky; +Cc: Yishai Hadas, linux-rdma, linux-kernel

On Thu, Jun 11, 2026 at 01:20:15PM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@nvidia.com>
> 
> Free the UAR index returned by the hardware.
> 
> Fixes: 4ed131d0bb15 ("IB/mlx5: Expose dynamic mmap allocation")
> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
> ---
>  drivers/infiniband/hw/mlx5/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next

Thanks,
Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-11 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 10:20 [PATCH rdma-next] RDMA/mlx5: Release the HW‑provided UAR index rather than the SW one Leon Romanovsky
2026-06-11 19:19 ` Jason Gunthorpe

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.