RDMA/hns: Fix cq record doorbell enable in kernel
authorYixian Liu <liuyixian@huawei.com>
Wed, 21 Mar 2018 06:11:18 +0000 (14:11 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 22 Mar 2018 18:42:48 +0000 (12:42 -0600)
commite95955773d4357a0b09a43128352047afce8f35b
treef7eb9964dd9c2e0cdf6e416a831215c98a73e745
parent761fc376c999df9febaa491bffae2f6722f423ff
RDMA/hns: Fix cq record doorbell enable in kernel

Upon detecting both kernel and user space support record doorbell,
the kernel needs to enable this capability in hardware by db_en,
and it should take place before cq context configuration in
hns_roce_cq_alloc. Currently, db_en is configured after cq alloc
and db_map_user has similar problem.

Reported-by: Xiping Zhang <zhangxiping3@huawei.com>
Fixes: 9b44703d0a21 ("RDMA/hns: Support cq record doorbell for the user space")
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_cq.c