diff options
author | Michael Guralnik <michaelgur@nvidia.com> | 2024-09-09 13:04:57 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-09-11 14:56:07 +0300 |
commit | cef7dde8836ab09a3bfe96ada4f18ef2496eacc9 (patch) | |
tree | 409b91cecc1eeba64d1675e8cc4e27f17aab816f /drivers/infiniband/hw/mlx5/odp.c | |
parent | f4ccc0a2a0c5977540f519588636b5bc81aae2db (diff) | |
download | linux-stable-cef7dde8836ab09a3bfe96ada4f18ef2496eacc9.tar.gz linux-stable-cef7dde8836ab09a3bfe96ada4f18ef2496eacc9.tar.bz2 linux-stable-cef7dde8836ab09a3bfe96ada4f18ef2496eacc9.zip |
net/mlx5: Expand mkey page size to support 6 bits
Protect the usage of the 6th bit with the relevant capability to ensure
we are using the new page sizes with FW that supports the bit extension.
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://patch.msgid.link/20240909100504.29797-2-michaelgur@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/odp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/odp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx5/odp.c index 44a3428ea342..221820874e7a 100644 --- a/drivers/infiniband/hw/mlx5/odp.c +++ b/drivers/infiniband/hw/mlx5/odp.c @@ -693,7 +693,7 @@ static int pagefault_dmabuf_mr(struct mlx5_ib_mr *mr, size_t bcnt, struct ib_umem_dmabuf *umem_dmabuf = to_ib_umem_dmabuf(mr->umem); u32 xlt_flags = 0; int err; - unsigned int page_size; + unsigned long page_size; if (flags & MLX5_PF_FLAGS_ENABLE) xlt_flags |= MLX5_IB_UPD_XLT_ENABLE; |