linux/drivers/infiniband/hw
Lijun Ou 2557fabd6e RDMA/hns: Bugfix for mapping user db
When the maximum send wr delivered by the user is zero, the qp does not
have a sq.

When allocating the sq db buffer to store the user sq pi pointer and map
it to the kernel mode, max_send_wr is used as the trigger condition, while
the kernel does not consider the max_send_wr trigger condition when
mapmping db. It will cause sq record doorbell map fail and create qp fail.

The failed print information as follows:

 hns3 0000:7d:00.1: Send cmd: tail - 418, opcode - 0x8504, flag - 0x0011, retval - 0x0000
 hns3 0000:7d:00.1: Send cmd: 0xe59dc000 0x00000000 0x00000000 0x00000000 0x00000116 0x0000ffff
 hns3 0000:7d:00.1: sq record doorbell map failed!
 hns3 0000:7d:00.1: Create RC QP failed

Fixes: 0425e3e6e0 ("RDMA/hns: Support flush cqe for hip08 in kernel space")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-04-25 10:40:04 -03:00
..
bnxt_re 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
cxgb3 RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
cxgb4 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
hfi1 IB/hfi1: Do not flush send queue in the TID RDMA second leg 2019-04-10 15:09:30 -03:00
hns RDMA/hns: Bugfix for mapping user db 2019-04-25 10:40:04 -03:00
i40iw i40iw: Avoid panic when handling the inetdev event 2019-03-17 21:40:40 -03:00
mlx4 IB/mlx4: Fix race condition between catas error reset and aliasguid flows 2019-03-17 21:40:39 -03:00
mlx5 RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages 2019-04-24 13:06:40 -03:00
mthca RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
nes RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
ocrdma RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qedr RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qib drivers/IB,qib: Fix pinned/locked limit check in qib_get_user_pages() 2019-02-20 14:42:41 -07:00
usnic RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
vmw_pvrdma RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove 2019-04-08 13:04:46 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00