From patchwork Mon Feb 11 15:24:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiraz Saleem X-Patchwork-Id: 10806105 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 EB304922 for ; Mon, 11 Feb 2019 15:26:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D97BE2A9DC for ; Mon, 11 Feb 2019 15:26:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDE3F2AA6D; Mon, 11 Feb 2019 15:26:04 +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 6A2A12A9DC for ; Mon, 11 Feb 2019 15:26:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390595AbfBKP0C (ORCPT ); Mon, 11 Feb 2019 10:26:02 -0500 Received: from mga14.intel.com ([192.55.52.115]:58112 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390591AbfBKP0B (ORCPT ); Mon, 11 Feb 2019 10:26:01 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2019 07:26:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,359,1544515200"; d="scan'208";a="115319370" Received: from ssaleem-mobl4.amr.corp.intel.com ([10.122.129.109]) by orsmga006.jf.intel.com with ESMTP; 11 Feb 2019 07:26:00 -0800 From: Shiraz Saleem To: dledford@redhat.com, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, "Saleem, Shiraz" Subject: [rdma-next 00/12] Adapt drivers to handle page combining on umem SGEs Date: Mon, 11 Feb 2019 09:24:56 -0600 Message-Id: <20190211152508.25040-1-shiraz.saleem@intel.com> X-Mailer: git-send-email 2.8.3 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 From: "Saleem, Shiraz" This patch set serves as precursor series to updating ib_umem_get to combine contiguous PAGE_SIZE pages in umem SGEs. Drivers are updated to unfold larger SGEs into PAGE_SIZE elements when walking the umem DMA-mapped SGL. The for_each_sg_dma_page variant is used where applicable to iterate the pages of the SGL and get the page DMA address. Additionally, umem->page_shift usage is purged in drivers as its only relevant for ODP MRs. Use system page size and shift instead. This series is dependent on the new scatterlist API for_each_sg_dma_page https://www.spinics.net/lists/linux-rdma/msg75195.html RFC-->v0: * drop RFC tag. Shiraz, Saleem (12): RDMA/bnxt_re: Use for_each_sg_dma_page iterator on umem SGL RDMA/mthca: Use for_each_sg_dma_page iterator on umem SGL RDMA/i40iw: Use for_each_sg_dma_page iterator on umem SGL RDMA/hns: Use for_each_sg_dma_page iterator on umem SGL RDMA/cxgb4: Use for_each_sg_dma_page iterator on umem SGL RDMA/cxgb3: Use for_each_sg_dma_page iterator on umem SGL RDMA/vmw_pvrdma: Use for_each_sg_dma_page iterator on umem SGL RDMA/qedr: Use for_each_sg_dma_page iterator on umem SGL RDMA/ocrdma: Use for_each_sg_dma_page iterator on umem SGL RDMA/nes: Use for_each_sg_dma_page iterator on umem SGL RDMA/rxe: Use for_each_sg_page iterator on umem SGL RDMA/rdmavt: Adapt to handle non-uniform sizes on umem SGEs drivers/infiniband/hw/bnxt_re/ib_verbs.c | 23 ++- drivers/infiniband/hw/bnxt_re/qplib_res.c | 9 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 29 ++-- drivers/infiniband/hw/cxgb4/mem.c | 33 ++-- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 7 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 25 ++- drivers/infiniband/hw/hns/hns_roce_mr.c | 88 +++++------ drivers/infiniband/hw/hns/hns_roce_qp.c | 5 +- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 35 ++--- drivers/infiniband/hw/mthca/mthca_provider.c | 36 ++--- drivers/infiniband/hw/nes/nes_verbs.c | 205 +++++++++++-------------- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 56 +++---- drivers/infiniband/hw/qedr/verbs.c | 68 ++++---- drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c | 21 +-- drivers/infiniband/sw/rdmavt/mr.c | 34 ++-- drivers/infiniband/sw/rxe/rxe_mr.c | 13 +- 16 files changed, 306 insertions(+), 381 deletions(-)