OSDN Git Service

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

On hi08 chip, There is a possibility of chip hanging and some errors when
sending mailbox & doorbell during reset.  We can fix it by prohibiting
mailbox and doorbell during reset and reset occurred to ensure that
hardware can work normally.

Fixes: a04ff739f2a9 ("RDMA/hns: Add command queue support for hip08 RoCE driver")
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_cmd.c
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