Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5952759pxv; Thu, 29 Jul 2021 02:40:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjOyRFfy5OuEDb0dyi6JoBuAvftTgSzoeDTsXpbM3AEmOR9swLLe0b2PxrUx7tPxdQzM2f X-Received: by 2002:a92:dc10:: with SMTP id t16mr2843490iln.95.1627551618755; Thu, 29 Jul 2021 02:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627551618; cv=none; d=google.com; s=arc-20160816; b=LGYKFTsevfdlV6+fvfjOsczrh8NrJ8C0imGxr7+XASJG99sxkI4PH7Q2Qi4F9uKokN +FHHKRIC2fL4joivz/2BMtFaqDtCqNFtNAaMsROr+MHTexStP0Tno+WRzl5ZZ1f725oL PxBlcaCw4cFc7E/urw6MsBkuc7jWX4KhuJDy4aFcNrqwVGNeN3/GXYJllwme2kF+B+ty y1hdLIwq18JTCHyHIFURIkdDYJwKfmWWWVk06SE5fsOC3w0MaOH1v/ZYq3SvVw3HMEY5 b0ZKW7LqmiEGN6h5ZS7ow1FPIOZg1KKW00n/nFFxXTRi0TNffdrdtIkkt7uss158C+zJ Oixw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=B/dvDBlAVmnU3AmRJUKJ+wj1nSwJeyhg72/sxegLJw8=; b=L9dLfSIdexqlBbaW3j+wF+MG0GsmwYtL3yJQoMHy7zFltjOmD5cOdSZm8fQjW/f0Pw YrZB57XxDodd0A5QvRcmmzM3jorTxbPvJI4+QlDDeNQs5PC/IL1DH2TnsUS+5i4s7d8Y vIVXRIwa7GkdlgMghAdceXA7twqhKprHM94iXwnNzMMluVj+KAAdeBJQz/YDqIlKfeYq uWoiaTAZF46xTdbmrnr8finnPXBoY4ysgbJZVb7KTL8se8IBfUoOsvbTzYBxXbafYXte 5CuR1wbGjCt8I5WKunG1ahT7O0wIoPreUSO4XKOLTp+Ps9rLq3yKDSF73oeFB/P2nUmL sqBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JiGwE20E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h28si3229189ioz.12.2021.07.29.02.40.06; Thu, 29 Jul 2021 02:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JiGwE20E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235955AbhG2JjW (ORCPT + 99 others); Thu, 29 Jul 2021 05:39:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235933AbhG2JjW (ORCPT ); Thu, 29 Jul 2021 05:39:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E4EA61057; Thu, 29 Jul 2021 09:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627551559; bh=bDAURyhadET89IRU1m1b8zk8bNFLICeWHLbOoJ7WmYI=; h=From:To:Cc:Subject:Date:From; b=JiGwE20En/csSY5rJ9StWSWNMk4nXmxRvbwXOpwRCibBpFSieTZqVtDbSVMOq3aVz HJaCMMSPrtSkJioS4ITSdcoK6LF4SDnrdBUqfnTPNq85XB1Nwo9Z874djamC7d+7WW AtyMIPr5+D4q92ipsIJRkwgr02zhklDX4GgkMOsT4iRLG9X/ezE1yW/+jVykbIDbf7 5r1JuKggLh/CQYUryjfjA8JBU3F6/27LUJ1fkC7YP/3UqohDhoVV6hVXz3WTNTQVgZ dEDA+4t/Skp30e8obvwLSchw289W3Tyyn6mMi4e9R3shob/TwLmFHVa1SFrL8JwBhM FMF6MQ6wLR+Xg== From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe , Christoph Hellwig Cc: Leon Romanovsky , Ariel Elior , Daniel Vetter , David Airlie , Dennis Dalessandro , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Maarten Lankhorst , Maor Gottlieb , Maxime Ripard , Michal Kalderon , Mike Marciniszyn , Mustafa Ismail , Rodrigo Vivi , Roland Scheidegger , Shiraz Saleem , Thomas Zimmermann , VMware Graphics , Weihang Li , Wenpeng Liang , Yishai Hadas , Zack Rusin , Zhu Yanjun Subject: [PATCH rdma-next v3 0/3] SG fix together with update to RDMA umem Date: Thu, 29 Jul 2021 12:39:10 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky Changelog: v3: * Rewrote to new API suggestion * Split for more patches v2: https://lore.kernel.org/lkml/cover.1626605893.git.leonro@nvidia.com * Changed implementation of first patch, based on our discussion with Christoph. https://lore.kernel.org/lkml/YNwaVTT0qmQdxaZz@infradead.org/ v1: https://lore.kernel.org/lkml/cover.1624955710.git.leonro@nvidia.com/ * Fixed sg_page with a _dma_ API in the umem.c v0: https://lore.kernel.org/lkml/cover.1624361199.git.leonro@nvidia.com Maor Gottlieb (3): lib/scatterlist: Provide a dedicated function to support table append lib/scatterlist: Fix wrong update of orig_nents RDMA: Use the sg_table directly and remove the opencoded version from umem drivers/gpu/drm/drm_prime.c | 13 +- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 11 +- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 14 +- drivers/infiniband/core/umem.c | 56 +++--- drivers/infiniband/core/umem_dmabuf.c | 5 +- drivers/infiniband/hw/hns/hns_roce_db.c | 4 +- drivers/infiniband/hw/irdma/verbs.c | 2 +- drivers/infiniband/hw/mlx4/doorbell.c | 3 +- drivers/infiniband/hw/mlx4/mr.c | 4 +- drivers/infiniband/hw/mlx5/doorbell.c | 3 +- drivers/infiniband/hw/mlx5/mr.c | 3 +- drivers/infiniband/hw/qedr/verbs.c | 2 +- drivers/infiniband/sw/rdmavt/mr.c | 2 +- drivers/infiniband/sw/rxe/rxe_mr.c | 2 +- include/linux/scatterlist.h | 54 +++++- include/rdma/ib_umem.h | 11 +- include/rdma/ib_verbs.h | 28 +++ lib/scatterlist.c | 189 ++++++++++++-------- tools/testing/scatterlist/main.c | 38 ++-- 19 files changed, 275 insertions(+), 169 deletions(-) -- 2.31.1