[Intel-gfx] [RFC 11/11] drm/i915/preempt: Show engine preempt state in engine_info debugfs

Michał Winiarski michal.winiarski at intel.com
Thu Feb 23 19:14:21 UTC 2017


Signed-off-by: Michał Winiarski <michal.winiarski at intel.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 10490bf..b71420c 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -3268,6 +3268,10 @@ static int i915_engine_info(struct seq_file *m, void *unused)
 			   engine->hangcheck.seqno,
 			   jiffies_to_msecs(jiffies - engine->hangcheck.action_timestamp));
 
+		seq_printf(m, "\tpreempt [requested %d, finished %d]\n",
+			   engine->preempt_requested,
+			   intel_engine_is_preempt_finished(engine));
+
 		rcu_read_lock();
 
 		seq_printf(m, "\tRequests:\n");
-- 
2.9.3



More information about the Intel-gfx mailing list