Re: [RFCv2 16/19] drm/i915: Sanity check all registers for matching fw domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 11, 2017 at 06:25:59PM +0000, Matthew Auld wrote:
> On 20 December 2016 at 13:08, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote:
> > +       for_each_set_bit(offset, valid, FW_RANGE) {
> > +               i915_reg_t reg = { offset };
> > +
> > +               intel_uncore_forcewake_reset(dev_priv, false);
> > +               check_for_unclaimed_mmio(dev_priv);
> hmm, what do we need this for ?

It clears the debug register before every test - so that we know the
only thing the debug register is complaining about is the I915_READ()
sandwiched in between. The reset is there to ensure that the fw is
turned off and the timer disabled, so that we have a vanilla state
every time with the powerwell off. Hopefully.
 
> > +
> > +               (void)I915_READ(reg);
> > +               if (check_for_unclaimed_mmio(dev_priv)) {

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux