[Intel-gfx] [PATCH] drm/i915/gt: Include the engine's fw-domains in the debug info

Mika Kuoppala mika.kuoppala at linux.intel.com
Fri Jun 5 15:22:59 UTC 2020


Chris Wilson <chris at chris-wilson.co.uk> writes:

> Add engine->fw_domain/active to the pretty printer for debug dumps and
> debugfs.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
> Cc: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota at intel.com>

Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>

> ---
>  drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt/intel_engine_cs.c
> index 8942cf936111..b84848db1bce 100644
> --- a/drivers/gpu/drm/i915/gt/intel_engine_cs.c
> +++ b/drivers/gpu/drm/i915/gt/intel_engine_cs.c
> @@ -1517,6 +1517,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",

This new world of omitting 0x is peculiar :O
-Mika

> +		   engine->fw_domain, atomic_read(&engine->fw_active));
>  
>  	rcu_read_lock();
>  	rq = READ_ONCE(engine->heartbeat.systole);
> -- 
> 2.20.1


More information about the Intel-gfx mailing list