linux/drivers/infiniband/hw/hns
Wei Hu (Xavier) d838c481e0 IB/hns: Fix the bug when destroy qp
If send queue is still working when qp is in reset state by modify qp
in destroy qp function, hardware will hold on and don't work in hip06
SoC. In current codes, RoCE driver check hardware pointer of sending and
hardware pointer of processing to ensure that hardware has processed all
the dbs of this qp. But while the environment of wire becomes not good,
The checking time maybe too long.

In order to solve this problem, RoCE driver created a workqueue at probe
function. If there is a timeout when checking the status of qp, driver
initialize work entry and push it into the workqueue, Work function will
finish checking and release the related resources later.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Dongdong Huang(Donald) <hdd.huang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-12-03 14:20:42 -05:00
..
Kconfig
Makefile
hns_roce_ah.c
hns_roce_alloc.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_cmd.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_cmd.h IB/hns: Modify the macro for the timeout when cmd process 2016-12-03 14:20:42 -05:00
hns_roce_common.h IB/hns: Fix the bug when destroy qp 2016-12-03 14:20:42 -05:00
hns_roce_cq.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_device.h IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_eq.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_hem.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hw_v1.c IB/hns: Fix the bug when destroy qp 2016-12-03 14:20:42 -05:00
hns_roce_hw_v1.h IB/hns: Fix the bug when destroy qp 2016-12-03 14:20:42 -05:00
hns_roce_main.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_mr.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_pd.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_qp.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_user.h