]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pass vma to relocate entry
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 14:05:17 +0000 (15:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 15:54:04 +0000 (16:54 +0100)
commit2578ced239b85beed02ca71626fbe1af0d7dbcda
treed2804ec66dc5f12b5658454cbc766cddb0f03e13
parentcbd9e1045a318d3943c46ba767be77488fbc5173
drm/i915: Pass vma to relocate entry

We can simplify our tracking of pending writes in an execbuf to the
single bit in the vma->exec_entry->flags, but that requires the
relocation function knowing the object's vma. Pass it along.

Note we have only been using a single bit to track flushing since

commit 0f849b3a800fae1db986f3a55f3d13238e3c6ca6
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Jun 13 20:45:19 2012 +0200

    drm/i915: disable flushing_list/gpu_write_list

unconditionally flushed all render caches before the breadcrumb and

commit 3aff16c1fb6fcad42585a120353fef7c63942dc9
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sat Jul 21 12:25:01 2012 +0200

    drm/i915: Replace the complex flushing logic with simple invalidate/flush all

did away with the explicit GPU domain tracking. This was then codified
into the ABI with NO_RELOC in

commit ac0313b46de36986fa777f3e60581fa4e295096d
Author: Daniel Vetter <daniel.vetter@ffwll.ch> # Oi! Patch stealer!
Date:   Thu Jan 17 22:23:36 2013 +0100

    drm/i915: Allow userspace to hint that the relocations were known

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_execbuffer.c