Re: [Intel-gfx] [PATCH 2/3] drm/i915: release the GTT mmaps when going into D3

2013-12-14 Thread Daniel Vetter
On Fri, Dec 13, 2013 at 04:22:40PM -0200, Rodrigo Vivi wrote: > When I saw this I was afraid this force could break userspace somehow, > but Paulo explained me the release with pagefault mechanism. Thanks Paulo. > > Reviewed-by: Rodrigo Vivi Merged all three patches with the small changes added

Re: [Intel-gfx] [PATCH 2/3] drm/i915: release the GTT mmaps when going into D3

2013-12-13 Thread Rodrigo Vivi
When I saw this I was afraid this force could break userspace somehow, but Paulo explained me the release with pagefault mechanism. Thanks Paulo. Reviewed-by: Rodrigo Vivi On Fri, Dec 13, 2013 at 3:22 PM, Paulo Zanoni wrote: > From: Paulo Zanoni > > So we'll get a fault when someone tries to a

[Intel-gfx] [PATCH 2/3] drm/i915: release the GTT mmaps when going into D3

2013-12-13 Thread Paulo Zanoni
From: Paulo Zanoni So we'll get a fault when someone tries to access the mmap, then we'll wake up from D3. v2: - Rebase v3: - Use gtt active/inactive Testcase: igt/pm_pc8/gem-mmap-gtt Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h | 1