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

Michał Winiarski
2017-02-23T19:15:57Z

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");