summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-10-18 13:27:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-10-19 09:07:11 +0100
commit5a803d19c1c6bb0e6f49ceeb51affbbe425105bd (patch)
tree54eb29c5a35c17495dc11ac245a5f1074e78c2e8 /lib/igt_debugfs.h
parent04d4d6f10ec76f7efe459dc96b1f6d91634a79eb (diff)
lib: Add DROP_IDLE
A new flag for an old API; now we can request that the driver flush its idle_worker to release internal caches. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'lib/igt_debugfs.h')
-rw-r--r--lib/igt_debugfs.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h
index 4fa49d21..d90dd7a6 100644
--- a/lib/igt_debugfs.h
+++ b/lib/igt_debugfs.h
@@ -180,6 +180,12 @@ void igt_require_hpd_storm_ctl(int fd);
*/
#define DROP_SHRINK_ALL 0x20
/**
+ * DROP_IDLE:
+ *
+ * Flush the driver's idle_worker, releasing internal caches and wakerefs.
+ */
+#define DROP_IDLE 0x40
+/**
* DROP_ALL:
*
* All of the above DROP_ flags combined.
@@ -189,7 +195,8 @@ void igt_require_hpd_storm_ctl(int fd);
DROP_SHRINK_ALL | \
DROP_RETIRE | \
DROP_ACTIVE | \
- DROP_FREED)
+ DROP_FREED | \
+ DROP_IDLE)
bool igt_drop_caches_has(int fd, uint64_t val);
void igt_drop_caches_set(int fd, uint64_t val);