RDMA/bnxt_re: Reorg the bar mapping
authorSelvin Xavier <selvin.xavier@broadcom.com>
Tue, 13 Jun 2023 18:12:22 +0000 (11:12 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 21 Jun 2023 17:13:17 +0000 (14:13 -0300)
commit0ac20faf5d837b59fb4c041ea320932ed47fd67f
tree8b12469954ba74d0743c0bb5146514144490ac12
parent3fe9882fbb50eeb724504df5979e9140f8842f76
RDMA/bnxt_re: Reorg the bar mapping

Reorganize the code for allocation and mapping of Doorbell
pages. Implements new HW command to get the BAR length used by L2
driver. These changes are used by the future patch which maps the WC
Doorbell pages.

Also, introduced a new lock dpi_tbl_lock for synchronize the DB page
allocation from users.

Link: https://lore.kernel.org/r/1686679943-17117-7-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h
drivers/infiniband/hw/bnxt_re/qplib_res.c
drivers/infiniband/hw/bnxt_re/qplib_res.h
drivers/infiniband/hw/bnxt_re/qplib_sp.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h