]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix initial arm_st of CQ
authorHaoyue Xu <xuhaoyue1@hisilicon.com>
Fri, 29 Oct 2021 09:58:46 +0000 (17:58 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 29 Oct 2021 14:51:34 +0000 (11:51 -0300)
commit94c12d4c1f4aaaaefda9b9012c4f504b42fdf3c0
tree93efc0d4857794256404aa08d5a8209785a581d6
parent27016cac74911e6d947c94c62802fea7abe36897
RDMA/hns: Fix initial arm_st of CQ

We set the init CQ status to ARMED before. As a result, an unexpected CEQE
would be reported. Therefore, the init CQ status should be set to no_armed
rather than REG_NXT_CEQE.

Fixes: c55e5c868a98 ("RDMA/hns: Add eq support of hip08")
Link: https://lore.kernel.org/r/20211029095846.26732-1-liangwenpeng@huawei.com
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c