Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> writes: > For debugging context issues, knowing what context the GPU is > loading/using is helpful. > > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > --- > 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@xxxxxxxxxxxxxxx> > 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@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/intel-gfx _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx