drm/i915: Refactor execbuffer relocation writing
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:52 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:46 +0000 (22:36 +0100)
commitd50415cc6c8395602052b39a1a39290fba3d313e
tree116b08e6ae54198c724f7d3a82e699d8c405fc7f
parentb0dc465f9540a8659ae06be08c6fcfc04c874777
drm/i915: Refactor execbuffer relocation writing

With the introduction of the reloc page cache, we are just one step away
from refactoring the relocation write functions into one. Not only does
it tidy the code (slightly), but it greatly simplifies the control logic
much to gcc's satisfaction.

v2: Add selftests to document the relationship between the clflush
flags, the KMAP bit and packing into the page-aligned pointer.

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-13-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c