From patchwork Fri Nov 23 08:26:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lijun Ou X-Patchwork-Id: 10695187 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 0ABDF15A7 for ; Fri, 23 Nov 2018 07:49:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2409291E3 for ; Fri, 23 Nov 2018 07:49:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E43FE2BE32; Fri, 23 Nov 2018 07:49:52 +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 8C2262BE29 for ; Fri, 23 Nov 2018 07:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389946AbeKWScz (ORCPT ); Fri, 23 Nov 2018 13:32:55 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15587 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387669AbeKWScy (ORCPT ); Fri, 23 Nov 2018 13:32:54 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id AEF041D8666B0; Fri, 23 Nov 2018 15:49:47 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.408.0; Fri, 23 Nov 2018 15:49:47 +0800 From: Lijun Ou To: , CC: , Subject: [PATCH v2 for-next 0/4] Misc fixes for hip08 Date: Fri, 23 Nov 2018 16:26:34 +0800 Message-ID: <1542961598-91107-1-git-send-email-oulijun@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 This patch series fix three bugs as well as optimize some codes. Change from V1: 1. Seperate it from the patchset("hns misc updates for 4.20") 2. Add a patch which use cmdq method instead of operating registers of mailbox. Because the hip08 need to limit directly operating register. Lijun Ou (4): RDMA/hns: Init qp context when modify qp from reset to init RDMA/hns: Use the macro instead of qp state transition support RDMA/hns: Fix the bug while use multi-hop of pbl RDMA/hns: Update posting & querying mailbox drivers/infiniband/hw/hns/hns_roce_common.h | 3 - drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 86 +++++++++++++++-------------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 47 ++++++++++++---- drivers/infiniband/hw/hns/hns_roce_mr.c | 4 +- 4 files changed, 82 insertions(+), 58 deletions(-)