]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't use GPU relocations prior to cmdparser stalls
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 26 Aug 2017 13:56:20 +0000 (14:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Aug 2017 09:41:33 +0000 (10:41 +0100)
commit7c4067a03c226387a45db53f359254458e50bed5
tree6871eb57114d71415644cca8a2ff5db32c001938
parenteef84a6eab4415bf9ae38db9b51f2a0d2d689a39
drm/i915: Don't use GPU relocations prior to cmdparser stalls

If we are using the cmdparser, we will have to copy the batch and so
stall for the relocations. Rather than prolong that stall by adding more
relocation requests, just use CPU relocations and do the stall upfront.

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