RDMA/hns: Support flexible umem page size
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 13 Jan 2024 08:59:33 +0000 (16:59 +0800)
committerLeon Romanovsky <leon@kernel.org>
Thu, 25 Jan 2024 09:54:38 +0000 (11:54 +0200)
commit0ff6c9779aafc24dd253fdf4e2d6e2dc68940818
tree74cb2f21d09e1dbd2a89f0d2f8dca13bd22cd1bd
parent6afc859518319d78164ec616e736af45acbf1cec
RDMA/hns: Support flexible umem page size

In the current implementation, a fixed page size is used to
configure the umem PBL, which is not flexible enough and is
not conducive to the performance of the HW. Find a best page
size to get better performance.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240113085935.2838701-5-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_mr.c