drm/i915: Use remap_io_mapping() to prefault all PTE in a single pass
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 15:54:28 +0000 (16:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 16:13:36 +0000 (17:13 +0100)
commitc58305af1835095ddc25ee6f548ac05915e66ac5
treec397de7bd3efb5dc92ba0feab1a5e0be2b325caa
parentf7bbe7883c3f119714fd09a8ceaac8075ba04dfe
drm/i915: Use remap_io_mapping() to prefault all PTE in a single pass

Very old numbers indicate this is a 66% improvement when remapping the
entire object for fence contention - due to the elimination of
track_pfn_insert and its strcmp.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Testcase: igt/gem_fence_upload/performance
Testcase: igt/gem_mmap_gtt
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160819155428.1670-6-chris@chris-wilson.co.uk
drivers/gpu/drm/Makefile
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_mm.c [new file with mode: 0644]