]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 7 Dec 2022 23:51:05 +0000 (19:51 -0400)
commit99dc5a0712883d5d13b620d25b3759d429577bc8
treea49c70769edddee82c262b57fae40b015478efb3
parent9fb39ef2ff3e18f1740625ba04093dfbef086d2b
RDMA/hns: Fix page size cap from firmware

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

Fixes: ba6bb7e97421 ("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>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c