]> git.ipfire.org Git - thirdparty/kernel/stable.git/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>
Sun, 16 Jun 2024 11:39:31 +0000 (13:39 +0200)
commitfc6342d4f0829cd54a4dad1b15bef733ade8e567
treeb0fd1832cde885c3db8d63009a406faccbc6b537
parent4a3be1a0ffe04c085dd7f79be97c91b0c786df3d
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