[Intel-gfx] [PATCH] i915: suspend/resume GEM when KMS is active

Jesse Barnes jbarnes at virtuousgeek.org
Wed Feb 18 01:11:04 CET 2009


On Tuesday, February 17, 2009 3:54 pm Eric Anholt wrote:
> On Tue, 2009-02-17 at 15:36 -0800, Jesse Barnes wrote:
> > On Tuesday, February 17, 2009 3:13 pm Jesse Barnes wrote:
> > > In the KMS case, we need to suspend/resume GEM as well.  So on suspend,
> > > make sure we idle GEM and stop any new rendering from coming in, and on
> > > resume, re-init the framebuffer and clear the suspended flag.
> > >
> > > Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> >
> > Oops should have included the IRQ bits as well.  We need to do this t
> > properly tear down vblank state and make sure no interrupts come in
> > either after suspend or before resume while the machine is still running.
> >
> > Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
>
> Could we please create a new i915_gem_idle()-like path for the suspend
> that actually waits, instead of spinning for a short while and giving
> up?  I'd really like the BUG_ON from the timeout in that function (the
> timeout being there to handle exiting your hung X Server) to stay out of
> KMS.
>
> Or we should report the failures resulting from the timout better.

Sure, sounds good.  I'll post a new one with that change.

-- 
Jesse Barnes, Intel Open Source Technology Center



More information about the Intel-gfx mailing list