[Intel-gfx] [PATCH] drm/i915/selftests: Wake the device before executing requests on the GPU

Chris Wilson chris at chris-wilson.co.uk
Fri Dec 1 10:43:46 UTC 2017


Quoting Mika Kuoppala (2017-12-01 10:40:24)
> Chris Wilson <chris at chris-wilson.co.uk> writes:
> 
> > To execute a requests requires us to have first woken the device, using
> > the rpm wakeref (as the request needs to write to hardware to setup the
> > context/ppGTT and execute on the GPU). So call intel_runtime_pm_get()
> > around queuing the request; the request itself will then carry a wakeref
> > until completion.
> >
> > References: https://bugs.freedesktop.org/show_bug.cgi?id=103994
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> > Cc: Matthew Auld <matthew.auld at intel.com>
> 
> Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>

Ta, answers on a postcard if you can explain why this is not happening
on every run!
-Chris


More information about the Intel-gfx mailing list