From 40de31df52ffed5e392d607a83e3aea4efb150e6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 7 Sep 2018 09:27:20 +0100 Subject: lib: Cancel all outstanding requests at the end of a test Quite often on catastrophic failure the test leaves a long queue of unterminated batches pending execution. Each runs until hangcheck fires and skips onto the next, leaving us waiting for a very long time at test exit. On older kernels, this gracefully degrades into the existing mechanism. Signed-off-by: Chris Wilson Reviewed-by: Antonio Argenziano --- lib/igt_debugfs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/igt_debugfs.h') diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index ff8612dc..9f81be0a 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -190,6 +190,18 @@ void igt_require_hpd_storm_ctl(int fd); * Flush the driver's idle_worker, releasing internal caches and wakerefs. */ #define DROP_IDLE 0x40 +/** + * DROP_RESET_ACTIVE: + * + * Cancel all outstanding requests by forcing a gpu reset + */ +#define DROP_RESET_ACTIVE 0x80 +/** + * DROP_RESET_SEQNO: + * + * Reset the global request seqno counter back to 0 + */ +#define DROP_RESET_SEQNO 0x100 /** * DROP_ALL: * -- cgit v1.2.3