RDMA/erdma: Add cmdq implementation
authorCheng Xu <chengyou@linux.alibaba.com>
Wed, 27 Jul 2022 01:49:20 +0000 (09:49 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 27 Jul 2022 18:54:39 +0000 (15:54 -0300)
commit2af541bf8e32ee73f17fb28e2b3766a96b7311e5
tree6dbe3e2c944b4d278c5445ba0df8868e0361a89e
parentbee85e0e31ecd2afbd19d2ae900f029a6f0c9e6d
RDMA/erdma: Add cmdq implementation

Cmdq is the main control plane channel between erdma driver and hardware.
After erdma device is initialized, the cmdq channel will be active in the
whole lifecycle of this driver.

This commit also includes two modifications from Christophe, one is using
the bitmap API to allocate bitmaps instead of hand-writing, and another
is using the non-atomic bitmap API when applicable.

Link: https://lore.kernel.org/r/20220727014927.76564-5-chengyou@linux.alibaba.com
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/erdma/erdma_cmdq.c [new file with mode: 0644]