summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-09-07 09:27:20 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-09-07 17:46:48 +0100
commit40de31df52ffed5e392d607a83e3aea4efb150e6 (patch)
treedf22a10c961a021ff96f5f95f9b296f04e280145 /lib/igt_debugfs.h
parenta4d1158b171ad6774a91562766817d93befdabf6 (diff)
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 <chris@chris-wilson.co.uk> Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'lib/igt_debugfs.h')
-rw-r--r--lib/igt_debugfs.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -191,6 +191,18 @@ void igt_require_hpd_storm_ctl(int fd);
*/
#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:
*
* All of the above DROP_ flags combined.