diff options
author | 2020-06-05 15:47:05 +0100 | |
---|---|---|
committer | 2020-06-05 16:29:00 +0100 | |
commit | ac4fc5b38d1abc039d61eecd15c12fc6fbeb7f33 (patch) | |
tree | 80afe5e756c289bd72633bd2f574766dc8b951cd | |
parent | drm/i915: Fix comments mentioning typo in IS_ENABLED() (diff) | |
download | wireguard-linux-ac4fc5b38d1abc039d61eecd15c12fc6fbeb7f33.tar.xz wireguard-linux-ac4fc5b38d1abc039d61eecd15c12fc6fbeb7f33.zip |
drm/i915/gt: Include the engine's fw-domains in the debug info
Add engine->fw_domain/active to the pretty printer for debug dumps and
debugfs.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200605144705.31127-1-chris@chris-wilson.co.uk
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt/intel_engine_cs.c index e37490d459c2..e5141a897786 100644 --- a/drivers/gpu/drm/i915/gt/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/gt/intel_engine_cs.c @@ -1519,6 +1519,8 @@ void intel_engine_dump(struct intel_engine_cs *engine, yesno(!llist_empty(&engine->barrier_tasks))); drm_printf(m, "\tLatency: %luus\n", ewma__engine_latency_read(&engine->latency)); + drm_printf(m, "\tForcewake: %x domains, %d active\n", + engine->fw_domain, atomic_read(&engine->fw_active)); rcu_read_lock(); rq = READ_ONCE(engine->heartbeat.systole); |