Re: [Intel-gfx] [PATCH] drm/i915: properly restore the ppgtt page directory on resume

2012-03-28 Thread Ben Widawsky
NVM, Jesse has corrected me on IRC. On Wed, 28 Mar 2012 10:04:09 -0700 Ben Widawsky wrote: > On Wed, 28 Mar 2012 09:05:52 +0200 > Daniel Vetter wrote: > > > On Tue, Mar 27, 2012 at 07:30:11PM -0700, Ben Widawsky wrote: > > > On Thu, 22 Mar 2012 00:14:43 +0100 > > > Daniel Vetter wrote: > > >

Re: [Intel-gfx] [PATCH] drm/i915: properly restore the ppgtt page directory on resume

2012-03-28 Thread Ben Widawsky
On Wed, 28 Mar 2012 09:05:52 +0200 Daniel Vetter wrote: > On Tue, Mar 27, 2012 at 07:30:11PM -0700, Ben Widawsky wrote: > > On Thu, 22 Mar 2012 00:14:43 +0100 > > Daniel Vetter wrote: > > > > > The ppgtt page directory lives in a snatched part of the gtt pte > > > range. Which naturally gets cl

Re: [Intel-gfx] [PATCH] drm/i915: properly restore the ppgtt page directory on resume

2012-03-28 Thread Daniel Vetter
On Tue, Mar 27, 2012 at 07:30:11PM -0700, Ben Widawsky wrote: > On Thu, 22 Mar 2012 00:14:43 +0100 > Daniel Vetter wrote: > > > The ppgtt page directory lives in a snatched part of the gtt pte > > range. Which naturally gets cleared on hibernate when we pull the > > power. Suspend to ram (which i

Re: [Intel-gfx] [PATCH] drm/i915: properly restore the ppgtt page directory on resume

2012-03-27 Thread Ben Widawsky
On Thu, 22 Mar 2012 00:14:43 +0100 Daniel Vetter wrote: > The ppgtt page directory lives in a snatched part of the gtt pte > range. Which naturally gets cleared on hibernate when we pull the > power. Suspend to ram (which is what I've tested) works because > despite the fact that this is a mmio r

[Intel-gfx] [PATCH] drm/i915: properly restore the ppgtt page directory on resume

2012-03-21 Thread Daniel Vetter
The ppgtt page directory lives in a snatched part of the gtt pte range. Which naturally gets cleared on hibernate when we pull the power. Suspend to ram (which is what I've tested) works because despite the fact that this is a mmio region, it is actually back by system ram. Fix this by moving the