RDMA/hns: Support getting max QP number from firmware
authorXi Wang <wangxi11@huawei.com>
Tue, 1 Jun 2021 09:57:07 +0000 (17:57 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 18:26:22 +0000 (15:26 -0300)
commit61b460d10094f5d8e243276f72ece12fc8324dcf
treee6b64cb7610fd010693488f65765115b18ca43a9
parent7ce6095e3bff8e20ce018b050960b527e298f7df
RDMA/hns: Support getting max QP number from firmware

All functions of HIP09's ROCEE share on-chip resources for all QPs, the
driver needs configure the resource index and number for each function
during the init stage.

Link: https://lore.kernel.org/r/1622541427-42193-1-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_qp.c