public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH igt 1/4] lib: Add DROP_IDLE
@ 2017-10-18 12:34 Chris Wilson
  2017-10-18 12:34 ` [PATCH igt 2/4] lib: Idle the GT when quiescing the GPU Chris Wilson
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Chris Wilson @ 2017-10-18 12:34 UTC (permalink / raw)
  To: intel-gfx

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(-)

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);
-- 
2.15.0.rc1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-18 22:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-18 12:34 [PATCH igt 1/4] lib: Add DROP_IDLE Chris Wilson
2017-10-18 12:34 ` [PATCH igt 2/4] lib: Idle the GT when quiescing the GPU Chris Wilson
2017-10-18 12:34 ` [PATCH igt 3/4] lib: Flush the driver's internal cache of objects before counting Chris Wilson
2017-10-18 12:34 ` [PATCH igt 4/4] lib: Free all internal buffers before measuring available memory Chris Wilson
2017-10-18 13:03 ` [PATCH igt 1/4] lib: Add DROP_IDLE Joonas Lahtinen
2017-10-18 13:04 ` ✓ Fi.CI.BAT: success for series starting with [1/4] " Patchwork
2017-10-18 22:27 ` ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox