RDMA/erdma: Allocate doorbell resources from hardware
authorCheng Xu <chengyou@linux.alibaba.com>
Tue, 6 Jun 2023 05:50:03 +0000 (13:50 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 11 Jun 2023 08:57:00 +0000 (11:57 +0300)
commit7e9a1dada2266c1ef777eba123b5515859779eb9
tree025fe59ec78b415f21dc6d313a26a2dea7975552
parent128f8404306d4299f4b962ba1161f14a794ddb13
RDMA/erdma: Allocate doorbell resources from hardware

Each ucontext will try to allocate doorbell resources in the extended bar
space from hardware. For compatibility, we change nothing for the original
bar space, and it will be used only for applications with CAP_SYS_RAWIO
authority in the older HW/FW environments.

Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230606055005.80729-3-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma.h
drivers/infiniband/hw/erdma/erdma_hw.h
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h