linux/drivers/infiniband
Artemy Kovalyov b6021a8426 RDMA/umem: Fix ib_umem_find_best_pgsz()
commit 36798d5ae1 upstream.

Except for the last entry, the ending iova alignment sets the maximum
possible page size as the low bits of the iova must be zero when starting
the next chunk.

Fixes: 4a35339958 ("RDMA/umem: Add API to find best driver supported page size in an MR")
Link: https://lore.kernel.org/r/20200128135612.174820-1-leon@kernel.org
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Tested-by: Gal Pressman <galpress@amazon.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2020-02-14 16:52:57 -05:00
..
core RDMA/umem: Fix ib_umem_find_best_pgsz() 2020-02-14 16:52:57 -05:00
hw RDMA/mlx5: Fix handling of IOVA != user_va in ODP paths 2020-02-14 16:52:56 -05:00
sw rxe: correctly calculate iCRC for unaligned payloads 2019-12-09 13:55:26 -05:00
ulp IB/srp: Never use immediate data if it is disabled by a user 2020-02-14 16:52:56 -05:00
Kconfig RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00