From: Leon Romanovsky <leon@kernel.org>
To: unlisted-recipients:; (no To-header on input)
Cc: Leon Romanovsky <leonro@nvidia.com>,
Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@linux.ie>,
dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
Jani Nikula <jani.nikula@linux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
Maor Gottlieb <maorg@nvidia.com>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Roland Scheidegger <sroland@vmware.com>,
VMware Graphics <linux-graphics-maintainer@vmware.com>
Subject: [PATCH rdma-next v3 0/2] Dynamicaly allocate SG table from the pages
Date: Tue, 22 Sep 2020 11:39:56 +0300 [thread overview]
Message-ID: <20200922083958.2150803-1-leon@kernel.org> (raw)
From: Leon Romanovsky <leonro@nvidia.com>
Changelog:
v3:
* Squashed Christopher's suggestion to avoid introduced new API, but extend existing one.
v2: https://lore.kernel.org/linux-rdma/20200916140726.839377-1-leon@kernel.org
* Fixed indentations and comments
* Deleted sg_alloc_next()
* Squashed lib/scatterlist patches into one
v1: https://lore.kernel.org/lkml/20200910134259.1304543-1-leon@kernel.org
* Changed _sg_chain to be __sg_chain
* Added dependency on ARCH_NO_SG_CHAIN
* Removed struct sg_append
v0:
* https://lore.kernel.org/lkml/20200903121853.1145976-1-leon@kernel.org
--------------------------------------------------------------------------
From Maor:
This series extends __sg_alloc_table_from_pages to allow chaining of
new pages to already initialized SG table.
This allows drivers to utilize the optimization of merging contiguous
pages without a need to pre allocate all the pages and hold them in
a very large temporary buffer prior to the call to SG table initialization.
The second patch changes the Infiniband driver to use the new API. It
removes duplicate functionality from the code and benefits the
optimization of allocating dynamic SG table from pages.
In huge pages system of 2MB page size, without this change, the SG table
would contain x512 SG entries.
E.g. for 100GB memory registration:
Number of entries Size
Before 26214400 600.0MB
After 51200 1.2MB
Thanks
Maor Gottlieb (2):
lib/scatterlist: Add support in dynamic allocation of SG table from
pages
RDMA/umem: Move to allocate SG table from pages
drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 12 +-
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 15 +-
drivers/infiniband/core/umem.c | 92 ++----------
include/linux/scatterlist.h | 43 +++---
lib/scatterlist.c | 158 +++++++++++++++-----
lib/sg_pool.c | 3 +-
tools/testing/scatterlist/main.c | 9 +-
7 files changed, 175 insertions(+), 157 deletions(-)
--
2.26.2
WARNING: multiple messages have this Message-ID (diff)
From: Leon Romanovsky <leon@kernel.org>
Cc: David Airlie <airlied@linux.ie>, Maor Gottlieb <maorg@nvidia.com>,
intel-gfx@lists.freedesktop.org,
Roland Scheidegger <sroland@vmware.com>,
linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
VMware Graphics <linux-graphics-maintainer@vmware.com>,
dri-devel@lists.freedesktop.org,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Leon Romanovsky <leonro@nvidia.com>
Subject: [PATCH rdma-next v3 0/2] Dynamicaly allocate SG table from the pages
Date: Tue, 22 Sep 2020 11:39:56 +0300 [thread overview]
Message-ID: <20200922083958.2150803-1-leon@kernel.org> (raw)
From: Leon Romanovsky <leonro@nvidia.com>
Changelog:
v3:
* Squashed Christopher's suggestion to avoid introduced new API, but extend existing one.
v2: https://lore.kernel.org/linux-rdma/20200916140726.839377-1-leon@kernel.org
* Fixed indentations and comments
* Deleted sg_alloc_next()
* Squashed lib/scatterlist patches into one
v1: https://lore.kernel.org/lkml/20200910134259.1304543-1-leon@kernel.org
* Changed _sg_chain to be __sg_chain
* Added dependency on ARCH_NO_SG_CHAIN
* Removed struct sg_append
v0:
* https://lore.kernel.org/lkml/20200903121853.1145976-1-leon@kernel.org
--------------------------------------------------------------------------
From Maor:
This series extends __sg_alloc_table_from_pages to allow chaining of
new pages to already initialized SG table.
This allows drivers to utilize the optimization of merging contiguous
pages without a need to pre allocate all the pages and hold them in
a very large temporary buffer prior to the call to SG table initialization.
The second patch changes the Infiniband driver to use the new API. It
removes duplicate functionality from the code and benefits the
optimization of allocating dynamic SG table from pages.
In huge pages system of 2MB page size, without this change, the SG table
would contain x512 SG entries.
E.g. for 100GB memory registration:
Number of entries Size
Before 26214400 600.0MB
After 51200 1.2MB
Thanks
Maor Gottlieb (2):
lib/scatterlist: Add support in dynamic allocation of SG table from
pages
RDMA/umem: Move to allocate SG table from pages
drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 12 +-
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 15 +-
drivers/infiniband/core/umem.c | 92 ++----------
include/linux/scatterlist.h | 43 +++---
lib/scatterlist.c | 158 +++++++++++++++-----
lib/sg_pool.c | 3 +-
tools/testing/scatterlist/main.c | 9 +-
7 files changed, 175 insertions(+), 157 deletions(-)
--
2.26.2
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Leon Romanovsky <leon@kernel.org>
Cc: David Airlie <airlied@linux.ie>, Maor Gottlieb <maorg@nvidia.com>,
intel-gfx@lists.freedesktop.org,
Roland Scheidegger <sroland@vmware.com>,
linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
VMware Graphics <linux-graphics-maintainer@vmware.com>,
dri-devel@lists.freedesktop.org,
Leon Romanovsky <leonro@nvidia.com>
Subject: [Intel-gfx] [PATCH rdma-next v3 0/2] Dynamicaly allocate SG table from the pages
Date: Tue, 22 Sep 2020 11:39:56 +0300 [thread overview]
Message-ID: <20200922083958.2150803-1-leon@kernel.org> (raw)
From: Leon Romanovsky <leonro@nvidia.com>
Changelog:
v3:
* Squashed Christopher's suggestion to avoid introduced new API, but extend existing one.
v2: https://lore.kernel.org/linux-rdma/20200916140726.839377-1-leon@kernel.org
* Fixed indentations and comments
* Deleted sg_alloc_next()
* Squashed lib/scatterlist patches into one
v1: https://lore.kernel.org/lkml/20200910134259.1304543-1-leon@kernel.org
* Changed _sg_chain to be __sg_chain
* Added dependency on ARCH_NO_SG_CHAIN
* Removed struct sg_append
v0:
* https://lore.kernel.org/lkml/20200903121853.1145976-1-leon@kernel.org
--------------------------------------------------------------------------
From Maor:
This series extends __sg_alloc_table_from_pages to allow chaining of
new pages to already initialized SG table.
This allows drivers to utilize the optimization of merging contiguous
pages without a need to pre allocate all the pages and hold them in
a very large temporary buffer prior to the call to SG table initialization.
The second patch changes the Infiniband driver to use the new API. It
removes duplicate functionality from the code and benefits the
optimization of allocating dynamic SG table from pages.
In huge pages system of 2MB page size, without this change, the SG table
would contain x512 SG entries.
E.g. for 100GB memory registration:
Number of entries Size
Before 26214400 600.0MB
After 51200 1.2MB
Thanks
Maor Gottlieb (2):
lib/scatterlist: Add support in dynamic allocation of SG table from
pages
RDMA/umem: Move to allocate SG table from pages
drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 12 +-
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 15 +-
drivers/infiniband/core/umem.c | 92 ++----------
include/linux/scatterlist.h | 43 +++---
lib/scatterlist.c | 158 +++++++++++++++-----
lib/sg_pool.c | 3 +-
tools/testing/scatterlist/main.c | 9 +-
7 files changed, 175 insertions(+), 157 deletions(-)
--
2.26.2
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next reply other threads:[~2020-09-22 8:40 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 8:39 Leon Romanovsky [this message]
2020-09-22 8:39 ` [Intel-gfx] [PATCH rdma-next v3 0/2] Dynamicaly allocate SG table from the pages Leon Romanovsky
2020-09-22 8:39 ` Leon Romanovsky
2020-09-22 8:39 ` [PATCH rdma-next v3 1/2] lib/scatterlist: Add support in dynamic allocation of SG table from pages Leon Romanovsky
2020-09-22 8:39 ` [Intel-gfx] " Leon Romanovsky
2020-09-22 8:39 ` Leon Romanovsky
2020-09-23 5:42 ` Christoph Hellwig
2020-09-23 5:42 ` [Intel-gfx] " Christoph Hellwig
2020-09-24 8:21 ` Tvrtko Ursulin
2020-09-24 8:21 ` Tvrtko Ursulin
2020-09-25 7:13 ` Leon Romanovsky
2020-09-25 7:13 ` Leon Romanovsky
2020-09-25 7:13 ` Leon Romanovsky
2020-09-25 11:41 ` Tvrtko Ursulin
2020-09-25 11:41 ` Tvrtko Ursulin
2020-09-25 11:58 ` Jason Gunthorpe
2020-09-25 11:58 ` Jason Gunthorpe
2020-09-25 11:58 ` Jason Gunthorpe
2020-09-25 12:29 ` Tvrtko Ursulin
2020-09-25 12:29 ` Tvrtko Ursulin
2020-09-25 12:29 ` Tvrtko Ursulin
2020-09-25 12:34 ` Jason Gunthorpe
2020-09-25 12:34 ` Jason Gunthorpe
2020-09-25 12:34 ` Jason Gunthorpe
2020-09-25 12:13 ` Maor Gottlieb
2020-09-25 12:13 ` Maor Gottlieb
2020-09-25 12:13 ` Maor Gottlieb
2020-09-25 11:55 ` Jason Gunthorpe
2020-09-25 11:55 ` Jason Gunthorpe
2020-09-25 11:55 ` Jason Gunthorpe
2020-09-25 12:18 ` Maor Gottlieb
2020-09-25 12:18 ` Maor Gottlieb
2020-09-25 12:18 ` Maor Gottlieb
2020-09-25 12:33 ` Tvrtko Ursulin
2020-09-25 12:33 ` Tvrtko Ursulin
2020-09-25 12:33 ` Tvrtko Ursulin
2020-09-25 13:39 ` Maor Gottlieb
2020-09-25 13:39 ` Maor Gottlieb
2020-09-25 13:39 ` Maor Gottlieb
2020-09-25 13:54 ` Tvrtko Ursulin
2020-09-25 13:54 ` Tvrtko Ursulin
2020-09-25 13:54 ` Tvrtko Ursulin
2020-09-22 8:39 ` [PATCH rdma-next v3 2/2] RDMA/umem: Move to allocate " Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200922083958.2150803-1-leon@kernel.org \
--to=leon@kernel.org \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=joonas.lahtinen@linux.intel.com \
--cc=leonro@nvidia.com \
--cc=linux-graphics-maintainer@vmware.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=maorg@nvidia.com \
--cc=rodrigo.vivi@intel.com \
--cc=sroland@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.