]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb51507dee2675c7c7bb4527062472414382f8d60
tree116b08e6ae54198c724f7d3a82e699d8c405fc7f
parent4f655ea30407d39b76a4a306a9c6bb3cae6c1489
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