From patchwork Fri Nov 23 15:14:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wei Hu (Xavier)" X-Patchwork-Id: 10695949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CCE515A4 for ; Fri, 23 Nov 2018 14:37:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC9762BA15 for ; Fri, 23 Nov 2018 14:37:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B04582BA27; Fri, 23 Nov 2018 14:37:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 659A82BA17 for ; Fri, 23 Nov 2018 14:37:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440030AbeKXBWO (ORCPT ); Fri, 23 Nov 2018 20:22:14 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:46505 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388198AbeKXBWO (ORCPT ); Fri, 23 Nov 2018 20:22:14 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E7530DDE0EE3A; Fri, 23 Nov 2018 22:37:39 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Fri, 23 Nov 2018 22:37:35 +0800 From: "Wei Hu (Xavier)" To: , CC: , , , , , , , , , Subject: [PATCH rdma-next 0/3] RDMA/hns: Updates for reset process of roce device in hip08 Date: Fri, 23 Nov 2018 23:14:22 +0800 Message-ID: <1542986065-44265-1-git-send-email-xavier.huwei@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Doug and Janson This series mainly include updates for reset process of roce device in hip08. One patch adds support for reset and loading or unloading driver occur simultaneously to ensure work normally, one stops sending mailbox&cmq& doorbell when reset occured or reset is occuring, the last one modifies the name of hns RoCE device's name in order to ensure that the name is consistent before and after reset. This series relies on the the new interfaces in hns NIC driver those had been accepted by David, the related commit as below: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git commit cb7ea80c6dfda472a068d40f4f9755d034b2dfde Best Regards Xavier Wei Hu (Xavier) (3): RDMA/hns: Add support for reset and loading or unloading driver occur simultaneously RDMA/hns: Stop sending mailbox&cmq&doorbell when reset occured or is occuring RDMA/hns: Modify hns RoCE device's name drivers/infiniband/hw/hns/hns_roce_cmd.c | 32 ++- drivers/infiniband/hw/hns/hns_roce_device.h | 30 +++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 323 ++++++++++++++++++++++++++-- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 21 ++ drivers/infiniband/hw/hns/hns_roce_main.c | 4 +- 5 files changed, 382 insertions(+), 28 deletions(-)