]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ff73e8783640e5574ab06f6f327035d7cf8d436
treed5894bdf0be0b846163580e36f0916501cf0a98d
parent2381697f9183adf0ad2cb5c74781404eccea21f2
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