WSL2-Linux-Kernel/drivers/infiniband/hw/hns
Lang Cheng af06b628a6 RDMA/hns: Fix bug during CMDQ initialization
When reloading driver, the head/tail pointer of CMDQ may be not at
position 0. Then during initialization of CMDQ, if head is reset first,
the firmware will start to handle CMDQ because the head is not equal to
the tail. The driver can reset tail first since the firmware will be
triggerred only by head. This bug is introduced by changing macros of
head/tail register without changing the order of initialization.

Fixes: 292b3352bd ("RDMA/hns: Adjust fields and variables about CMDQ tail/head")
Link: https://lore.kernel.org/r/1615602611-7963-1-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-03-22 09:25:57 -03:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00
hns_roce_ah.c RDMA/hns: Avoid filling sl in high 3 bits of vlan_id 2020-12-11 15:21:34 -04:00
hns_roce_alloc.c RDMA/hns: Fix inaccurate prints 2020-12-11 15:21:35 -04:00
hns_roce_cmd.c RDMA/hns: Fix incorrect symbol types 2020-12-11 15:21:35 -04:00
hns_roce_cmd.h RDMA/hns: Fix incorrect symbol types 2020-12-11 15:21:35 -04:00
hns_roce_common.h RDMA/hns: Adjust fields and variables about CMDQ tail/head 2021-02-16 14:42:58 -04:00
hns_roce_cq.c RDMA/hns: Refactor the MTR creation flow 2021-01-28 10:51:05 -04:00
hns_roce_db.c RDMA/hns: Fix incorrect symbol types 2020-12-11 15:21:35 -04:00
hns_roce_device.h Linux 5.11 2021-02-18 11:19:29 -04:00
hns_roce_hem.c RDMA/hns: Add mapped page count checking for MTR 2021-02-08 20:15:10 -04:00
hns_roce_hem.h RDMA/hns: Fix coding style issues 2020-12-11 15:21:34 -04:00
hns_roce_hw_v1.c RDMA/hns: Replace wmb&__raw_writeq with writeq 2021-02-08 20:25:25 -04:00
hns_roce_hw_v1.h RDMA/hns: Move HIP06 related definitions into hns_roce_hw_v1.h 2021-02-08 20:25:25 -04:00
hns_roce_hw_v2.c RDMA/hns: Fix bug during CMDQ initialization 2021-03-22 09:25:57 -03:00
hns_roce_hw_v2.h RDMA/hns: Adjust definition of FRMR fields 2021-02-16 14:42:58 -04:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_main.c RDMA/hns: Adjust definition of FRMR fields 2021-02-16 14:42:58 -04:00
hns_roce_mr.c RDMA/hns: Add mapped page count checking for MTR 2021-02-08 20:15:10 -04:00
hns_roce_pd.c RDMA/hns: Fix inaccurate prints 2020-12-11 15:21:35 -04:00
hns_roce_qp.c Linux 5.11 2021-02-18 11:19:29 -04:00
hns_roce_restrack.c RDMA: Add a dedicated CQ resource tracker function 2020-06-23 11:46:27 -03:00
hns_roce_srq.c RDMA/hns: Refactor code about SRQ Context 2021-02-08 19:37:35 -04:00