drm/i915: Forcibly flush unwanted requests in drop-caches
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Sep 2018 08:33:37 +0000 (09:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Sep 2018 11:02:05 +0000 (12:02 +0100)
commit6b048706f407f138293f06db31f88370f970db3a
treed5894bdf0be0b846163580e36f0916501cf0a98d
parente0ff7a7cddeff8ab2445f9d33f2416f8f89f9bca
drm/i915: Forcibly flush unwanted requests in drop-caches

Add a mode to debugfs/drop-caches to flush unwanted requests off the GPU
(by wedging the device and resetting). This is very useful if a test
terminated leaving a long queue of hanging batches that would ordinarily
require a round trip through hangcheck for each.

It reduces the inter-test operation to just a write into drop-caches to
reset driver/GPU state between tests.

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