diff mbox

[igt,1/4] lib: Add DROP_IDLE

Message ID 20171018123428.25541-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson Oct. 18, 2017, 12:34 p.m. UTC
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>
---
 lib/igt_debugfs.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Joonas Lahtinen Oct. 18, 2017, 1:03 p.m. UTC | #1
On Wed, 2017-10-18 at 13:34 +0100, Chris Wilson wrote:
> 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>

Whole series is;

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

Regards, Joonas
diff mbox

Patch

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
@@ -179,6 +179,12 @@  void igt_require_hpd_storm_ctl(int fd);
  * system.
  */
 #define DROP_SHRINK_ALL 0x20
+/**
+ * DROP_IDLE:
+ *
+ * Flush the driver's idle_worker, releasing internal caches and wakerefs.
+ */
+#define DROP_IDLE 0x40
 /**
  * DROP_ALL:
  *
@@ -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);