]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fallback to single page GTT mmappings for relocations
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:53 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:47 +0000 (22:36 +0100)
commit61e0498ece39d38b538836bf0137fb41f2241aa7
treea778d7010e0ff371c691ca37dd97c99735f84482
parent8ece9fd98170222e8fc0c259152d864c4f6f1750
drm/i915: Fallback to single page GTT mmappings for relocations

If we cannot pin the entire object into the mappable region of the GTT,
try to pin a single page instead. This is much more likely to succeed,
and prevents us falling back to the clflush slow path.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-14-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c