summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_debugfs.h')
-rw-r--r--lib/igt_debugfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h
index 5587ad40..aa59f8a8 100644
--- a/lib/igt_debugfs.h
+++ b/lib/igt_debugfs.h
@@ -170,16 +170,25 @@ void igt_require_hpd_storm_ctl(void);
*/
#define DROP_FREED 0x10
/**
+ * DROP_SHRINK_ALL:
+ *
+ * Force all unpinned buffers to be evicted from their GTT and returned to the
+ * system.
+ */
+#define DROP_SHRINK_ALL 0x20
+/**
* DROP_ALL:
*
* All of the above DROP_ flags combined.
*/
#define DROP_ALL (DROP_UNBOUND | \
DROP_BOUND | \
+ DROP_SHRINK_ALL | \
DROP_RETIRE | \
DROP_ACTIVE | \
DROP_FREED)
+bool igt_drop_caches_has(uint64_t val);
void igt_drop_caches_set(uint64_t val);
/*