]> git.hungrycats.org Git - linux/commit
RDMA/hns: Fix GMV table pagesize
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 12 Apr 2024 09:16:13 +0000 (17:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:43 +0000 (09:49 +0200)
commit151762e07935b0ed283ee81a842eda9f5f5c58f1
tree4c023161e164190fa1246fb232eefd306f9b3ad8
parent39d26cf46306bdc7ae809ecfdbfeff5aa1098911
RDMA/hns: Fix GMV table pagesize

[ Upstream commit ee045493283403969591087bd405fa280103282a ]

GMV's BA table only supports 4K pages. Currently, PAGESIZE is used to
calculate gmv_bt_num, which will cause an abnormal number of gmv_bt_num
in a 64K OS.

Fixes: d6d91e46210f ("RDMA/hns: Add support for configuring GMV table")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240412091616.370789-8-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c