From patchwork Mon Mar 18 13:23:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiraz Saleem X-Patchwork-Id: 10857607 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 B35E06C2 for ; Mon, 18 Mar 2019 13:24:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96BCF28CE0 for ; Mon, 18 Mar 2019 13:24:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A91328F2F; Mon, 18 Mar 2019 13:24:09 +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 0F51D28CE0 for ; Mon, 18 Mar 2019 13:24:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbfCRNYI (ORCPT ); Mon, 18 Mar 2019 09:24:08 -0400 Received: from mga04.intel.com ([192.55.52.120]:23225 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfCRNYI (ORCPT ); Mon, 18 Mar 2019 09:24:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 06:24:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,494,1544515200"; d="scan'208";a="142983354" Received: from ssaleem-mobl4.amr.corp.intel.com ([10.252.133.160]) by orsmga002.jf.intel.com with ESMTP; 18 Mar 2019 06:24:06 -0700 From: Shiraz Saleem To: dledford@redhat.com, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, "Saleem, Shiraz" Subject: [PATCH rdma-next 0/5] Use correct sizing on buffers holding page DMA addresses Date: Mon, 18 Mar 2019 08:23:35 -0500 Message-Id: <20190318132340.16892-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. 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(-)