From patchwork Thu Mar 28 16:49:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiraz Saleem X-Patchwork-Id: 10875407 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 4D69D14DE for ; Thu, 28 Mar 2019 16:50:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36B4428BB3 for ; Thu, 28 Mar 2019 16:50:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A0E628DE7; Thu, 28 Mar 2019 16:50:23 +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 1C70E28BB3 for ; Thu, 28 Mar 2019 16:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725849AbfC1QuU (ORCPT ); Thu, 28 Mar 2019 12:50:20 -0400 Received: from mga07.intel.com ([134.134.136.100]:60971 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727237AbfC1QuT (ORCPT ); Thu, 28 Mar 2019 12:50:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2019 09:50:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,281,1549958400"; d="scan'208";a="311206819" Received: from ssaleem-mobl4.amr.corp.intel.com ([10.255.33.154]) by orsmga005.jf.intel.com with ESMTP; 28 Mar 2019 09:50:17 -0700 From: Shiraz Saleem To: dledford@redhat.com, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, "Saleem, Shiraz" Subject: [PATCH v1 rdma-next 0/5] Use correct sizing on buffers holding page DMA addresses Date: Thu, 28 Mar 2019 11:49:42 -0500 Message-Id: <20190328164947.13232-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 patchset updates certain drivers that incorrectly size their internal buffers to hold the page DMA addresses while iterating the DMA-mapped umem SGL. It is a precursor series to adding page combining for umem SGLs. v0->v1: *Use ib_umem_num_pages() accessor as opposed to umem->npages to size the buffers. Selvin Xavier (1): RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses Shiraz Saleem (4): RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses RDMA/mthca: Use correct sizing on buffers holding page DMA addresses RDMA/rxe: Use correct sizing on buffers holding page DMA addresses RDMA/rdmavt: Use correct sizing on buffers holding page DMA addresses drivers/infiniband/hw/bnxt_re/ib_verbs.c | 25 ++++++++-------- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 27 ++++++++--------- drivers/infiniband/hw/bnxt_re/qplib_fp.h | 9 ++---- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 4 +-- drivers/infiniband/hw/bnxt_re/qplib_res.c | 43 +++++++++++++++++----------- drivers/infiniband/hw/bnxt_re/qplib_res.h | 8 +++++- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 4 +-- drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 +- drivers/infiniband/hw/cxgb4/mem.c | 2 +- drivers/infiniband/hw/mthca/mthca_provider.c | 2 +- drivers/infiniband/sw/rdmavt/mr.c | 2 +- drivers/infiniband/sw/rxe/rxe_mr.c | 2 +- 12 files changed, 72 insertions(+), 58 deletions(-)