OSDN Git Service

RDMA/hns: Add the process of AEQ overflow for hip08
authorXiaofei Tan <tanxiaofei@huawei.com>
Sat, 19 Jan 2019 06:23:29 +0000 (14:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 21 Jan 2019 23:47:54 +0000 (16:47 -0700)
commit2b9acb9a97fe9b4101ca020643760c4a090b4cb4
treea5a245440121c605f983e365cfe6fec344c2b0f9
parent9802c335e7c5a5dc6e34028835d2cd7a2b6c149a
RDMA/hns: Add the process of AEQ overflow for hip08

AEQ overflow will be reported by hardware when too many asynchronous
events occurred but not be handled in time.  Normally, AEQ overflow error
is not easy to occur. Once happened, we have to do physical function reset
to recover.  PF reset is implemented in two steps. Firstly, set reset
level with ae_dev->ops->set_default_reset_request.  Secondly, run reset
with ae_dev->ops->reset_event.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c