]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:31 +0000 (11:04 +0100)
commit45107b861a80116d7ca8eb8df6835ccea074d3d2
tree97baea6e2fe753123f47dd2decbc5c055bdb0179
parentf3de2499242cce544371b8998196ed70dfcc66ac
RDMA/hns: Fix initial arm_st of CQ

[ Upstream commit 571fb4fb78a3bf0fcadbe65eca9ca4ccee885af4 ]

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: a5073d6054f7 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c