RDMA/erdma: Refactor the original doorbell allocation mechanism
authorCheng Xu <chengyou@linux.alibaba.com>
Tue, 6 Jun 2023 05:50:05 +0000 (13:50 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 11 Jun 2023 08:57:01 +0000 (11:57 +0300)
commit3b3dfd58bace12e8348e5863e05867afd2ead28b
tree0074fd1c8a29050ca49e15ec4fecd369519f588d
parent6534de1fe385145d256cf5f37b01ccbd63e23405
RDMA/erdma: Refactor the original doorbell allocation mechanism

The original doorbell allocation mechanism is complex and does not meet
the isolation requirement. So we introduce a new doorbell mechanism and the
original mechanism (only be used with CAP_SYS_RAWIO if hardware does not
support the new mechanism) needs to be kept as simple as possible for
compatibility.

Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230606055005.80729-5-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_main.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h