From patchwork Thu Jun 7 18:09:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dann frazier X-Patchwork-Id: 926492 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 411tps1W8dz9s3x; Fri, 8 Jun 2018 04:09:25 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fQzLZ-0006Iv-6X; Thu, 07 Jun 2018 18:09:17 +0000 Received: from complete.lackof.org ([198.49.126.79]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1fQzLX-0006He-IG for kernel-team@lists.ubuntu.com; Thu, 07 Jun 2018 18:09:15 +0000 Received: from localhost (50-201-118-110-static.hfc.comcastbusiness.net [50.201.118.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by complete.lackof.org (Postfix) with ESMTPSA id B143533E00CF for ; Thu, 7 Jun 2018 12:09:08 -0600 (MDT) Date: Thu, 7 Jun 2018 12:09:08 -0600 From: dann frazier To: kernel-team@lists.ubuntu.com Subject: [PULL][SRU Bionic] ROCE/hns updates Message-ID: <20180607180908.GA2799@xps13.dannf> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.0 (2018-05-17) X-Virus-Scanned: clamav-milter 0.99.4 at complete.lackof.org X-Virus-Status: Clean X-Spam-Status: No, score=0.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on complete.lackof.org X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1770974 Like hns3, the ROCE hns driver is under heavy development upstream, and the current version in bionic is not usable (it relies on hns3, which crashes on boot). Instead of surgically applying individual bug fixes, let's pull in all the driver-local changes from linux-next to address various issues (crashes, endian fixes, etc), and leave us with an upstream-aligned base to ease future maintenance. One patch required trivial backporting (it was applied on top of a change that I skipped because it wasn't restricted to ROCE/hns), the rest are all clean cherry-picks. The following changes since commit 8019da40b729efc0dd3786baa0ab85c7e8768a24: UBUNTU: SAUCE: floppy: Do not copy a kernel pointer to user memory in FDGETPRM ioctl (2018-06-05 15:53:19 +0200) are available in the Git repository at: git://git.launchpad.net/~dannf/ubuntu/+source/linux/+git/linux hns-roce-bionic for you to fetch changes up to 3b2b3ae82a0ad5941f675ea92040b0c8f482e776: RDMA/hns: Implement the disassociate_ucontext API (2018-06-07 11:28:50 -0600) ---------------------------------------------------------------- Andy Shevchenko (1): RDMA/hns: Replace __raw_write*(cpu_to_le*()) with LE write*() Jason Gunthorpe (1): RDMA/hns: Use structs to describe the uABI instead of opencoding Leon Romanovsky (1): RDMA/hns: Drop local zgid in favor of core defined variable Wei Hu(Xavier) (5): RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust RDMA/hns: Increase checking CMQ status timeout value RDMA/hns: Add reset process for RoCE in hip08 RDMA/hns: Fix the illegal memory operation when cross page RDMA/hns: Implement the disassociate_ucontext API Yixian Liu (1): RDMA/hns: Add 64KB page size support for hip08 oulijun (29): RDMA/hns: Remove unnecessary operator RDMA/hns: Add names to function arguments in function pointers RDMA/hns: Fix misplaced call to hns_roce_cleanup_hem_table RDMA/hns: Fix a bug with modifying mac address RDMA/hns: Use free_pages function instead of free_page RDMA/hns: Bugfix for init hem table RDMA/hns: Intercept illegal RDMA operation when use inline data RDMA/hns: Fix the qp context state diagram RDMA/hns: Only assign mtu if IB_QP_PATH_MTU bit is set RDMA/hns: Remove some unnecessary attr_mask judgement RDMA/hns: Only assign dqpn if IB_QP_PATH_DEST_QPN bit is set RDMA/hns: Adjust the order of cleanup hem table RDMA/hns: Update assignment method for owner field of send wqe RDMA/hns: Submit bad wr RDMA/hns: Fix a couple misspellings RDMA/hns: Add rq inline flags judgement RDMA/hns: Bugfix for rq record db for kernel RDMA/hns: Load the RoCE dirver automatically RDMA/hns: Update convert function of endian format RDMA/hns: Add return operation when configured global param fail RDMA/hns: Not support qp transition from reset to reset for hip06 RDMA/hns: Fix the bug with rq sge RDMA/hns: Set desc_dma_addr for zero when free cmq desc RDMA/hns: Enable inner_pa_vld filed of mpt RDMA/hns: Set NULL for __internal_mr RDMA/hns: Fix the bug with NULL pointer RDMA/hns: Bugfix for cq record db for kernel RDMA/hns: Move the location for initializing tmp_len RDMA/hns: Rename the idx field of db weiyongjun (A) (1): RDMA/hns: Remove unnecessary platform_get_resource() error check drivers/infiniband/hw/hns/hns_roce_cmd.c | 3 + drivers/infiniband/hw/hns/hns_roce_cq.c | 1 + drivers/infiniband/hw/hns/hns_roce_device.h | 22 ++- drivers/infiniband/hw/hns/hns_roce_hem.c | 12 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 15 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 281 ++++++++++++++++++++-------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 7 +- drivers/infiniband/hw/hns/hns_roce_main.c | 84 ++++++++- drivers/infiniband/hw/hns/hns_roce_mr.c | 8 +- drivers/infiniband/hw/hns/hns_roce_pd.c | 15 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 12 +- include/uapi/rdma/hns-abi.h | 5 + 12 files changed, 351 insertions(+), 114 deletions(-) Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza