[Intel-gfx] [PATCH 4/5] drm/i915: Show CCID in engine dumps

Mika Kuoppala mika.kuoppala at linux.intel.com
Thu Jun 14 15:21:11 UTC 2018


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

> For debugging context issues, knowing what context the GPU is
> loading/using is helpful.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/intel_engine_cs.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c
> index 875bd466f3bf..5a663dda9fdc 100644
> --- a/drivers/gpu/drm/i915/intel_engine_cs.c
> +++ b/drivers/gpu/drm/i915/intel_engine_cs.c
> @@ -1273,6 +1273,8 @@ static void intel_engine_print_registers(const struct intel_engine_cs *engine,
>  		&engine->execlists;
>  	u64 addr;
>  
> +	if (engine->id == RCS && IS_GEN(dev_priv, 5, 7))
> +		drm_printf(m, "\tCCID: 0x%08x\n", I915_READ(CCID));

You do seem to have an option for other engines as well, but
not through +180 offset :O

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

>  	drm_printf(m, "\tRING_START: 0x%08x\n",
>  		   I915_READ(RING_START(engine->mmio_base)));
>  	drm_printf(m, "\tRING_HEAD:  0x%08x\n",
> -- 
> 2.17.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list