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)
commite8cb909ac3abbcac5184825638903a2b9a225725
treea778d7010e0ff371c691ca37dd97c99735f84482
parentd50415cc6c8395602052b39a1a39290fba3d313e
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