[Intel-gfx] [PATCH] drm/i915: Reduce frequency of unspecific HSW reg debugging

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 26 08:49:16 PDT 2015


On Wed, Aug 26, 2015 at 06:27:36PM +0300, Mika Kuoppala wrote:
> Chris Wilson <chris at chris-wilson.co.uk> writes:
> 
> > Delay the expensive read on the FPGA_DBG register from once per mmio to
> > once per forcewake section when we are doing the general wellbeing
> > check rather than the targetted error detection. This almost reduces
> > the overhead of the debug facility (for example when submitting execlists)
> > to zero whilst keeping the debug checks around.
> >
> > v2: Enable one-shot mmio debugging from the interrupt check as well as a
> >     safeguard to catch invalid display writes from outside the powerwell.
> >
> 
> Not a particular problem with this patch, but I noticed that
> on skl, we lose the concents of the FPGA_DBG register
> immediately when we clear the forcewake. Without explicit
> write to clear the bit, which is claimed to be sticky.
> 
> On re aquiring forcewake, the register contents is zero :(

Doesn't that defeat the purpose of using the dbg register to detect
accesses outside of the powerwell? I'd ask whether the new behaviour is
documented/intended...
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list