]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix page size cap from firmware
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 26 Nov 2022 10:29:09 +0000 (18:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:37 +0000 (13:32 +0100)
commit0bc5c8cd44f1abf365086024434597972a9aec1e
tree6d6dab6c1323c094c3099a7c497f5a0c716b8af1
parente24597dddec78326fd16bf91982164534233552c
RDMA/hns: Fix page size cap from firmware

[ Upstream commit 1974df0294b638fb45a64e14a512d8ca0691fd22 ]

Add verification to make sure the roce page size cap is supported by the
system page size.

Fixes: 21164eed7dd9 ("RDMA/hns: Add interfaces to get pf capabilities from firmware")
Link: https://lore.kernel.org/r/20221126102911.2921820-5-xuhaoyue1@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c