OSDN Git Service

RDMA/hns: Fix the chip hanging caused by sending doorbell during reset
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Sun, 3 Feb 2019 12:43:15 +0000 (20:43 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Feb 2019 23:13:50 +0000 (16:13 -0700)
commitd3743fa94ccd177917783726faf54632439ddb54
treed2b2c0079e461053de508dd0e896d73dc772cfc7
parent6a04aed6afaefd5fd396f23da184298135f31e37
RDMA/hns: Fix the chip hanging caused by sending doorbell during reset

On hi08 chip, There is a possibility of chip hanging when sending doorbell
during reset. We can fix it by prohibiting doorbell during reset.

Fixes: 2d40788825ac ("RDMA/hns: Add support for processing send wr and receive wr")
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h