Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/execlists: Show the "switch priority hint" in dumps

Show the timeslicing priority hint in engine dumps to aide debugging.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200305135843.2760512-1-chris@chris-wilson.co.uk

+6 -2
+6 -2
drivers/gpu/drm/i915/gt/intel_lrc.c
··· 5317 5317 show_request(m, last, "\t\tE "); 5318 5318 } 5319 5319 5320 - last = NULL; 5321 - count = 0; 5320 + if (execlists->switch_priority_hint != INT_MIN) 5321 + drm_printf(m, "\t\tSwitch priority hint: %d\n", 5322 + execlists->switch_priority_hint); 5322 5323 if (execlists->queue_priority_hint != INT_MIN) 5323 5324 drm_printf(m, "\t\tQueue priority hint: %d\n", 5324 5325 execlists->queue_priority_hint); 5326 + 5327 + last = NULL; 5328 + count = 0; 5325 5329 for (rb = rb_first_cached(&execlists->queue); rb; rb = rb_next(rb)) { 5326 5330 struct i915_priolist *p = rb_entry(rb, typeof(*p), node); 5327 5331 int i;