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)
commit3dbf26ed7b9b40a8cb008ab9ad25703363af815d
tree6871eb57114d71415644cca8a2ff5db32c001938
parenta575c6761757232ea2c7dc9f370640754b90cc69
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