aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/scatterlist
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-08-03 10:14:17 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-09-07 10:48:29 +0100
commit5602452e4c9943a81c9cd049d10d37d3f137b0c0 (patch)
treeb1d4541b7679ef36a05d89f0ae0d9ad59d4a7cc2 /tools/testing/scatterlist
parentlib/scatterlist: Introduce and export __sg_alloc_table_from_pages (diff)
downloadlinux-dev-5602452e4c9943a81c9cd049d10d37d3f137b0c0.tar.xz
linux-dev-5602452e4c9943a81c9cd049d10d37d3f137b0c0.zip
drm/i915: Use __sg_alloc_table_from_pages for userptr allocations
With the addition of __sg_alloc_table_from_pages we can control the maximum coalescing size and eliminate a separate path for allocating backing store here. Similar to 871dfbd67d4e ("drm/i915: Allow compaction upto SWIOTLB max segment size") this enables more compact sg lists to be created and so has a beneficial effect on workloads with many and/or large objects of this class. v2: * Rename helper to i915_sg_segment_size and fix swiotlb override. * Commit message update. v3: * Actually include the swiotlb override fix. v4: * Regroup parameters a bit. (Chris Wilson) v5: * Rebase for swiotlb_max_segment. * Add DMA map failure handling as in abb0deacb5a6 ("drm/i915: Fallback to single PAGE_SIZE segments for DMA remapping"). v6: Handle swiotlb_max_segment() returning 1. (Joonas Lahtinen) v7: Rebase. v8: Commit spelling fix. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: linux-kernel@vger.kernel.org Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20170803091417.23677-1-tvrtko.ursulin@linux.intel.com
Diffstat (limited to 'tools/testing/scatterlist')
0 files changed, 0 insertions, 0 deletions