drm/i915: release the GTT mmaps when going into D3
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 13 Dec 2013 17:22:31 +0000 (15:22 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 14 Dec 2013 14:35:52 +0000 (15:35 +0100)
commit48018a57a8f5900e7e53ffaa0adeb784095accfb
treed8a09138528e2ddd712e35eca51fbeec8b3e184c
parent16a3d6ef9f9db6b0e54e6bb756a6b6165166cf44
drm/i915: release the GTT mmaps when going into D3

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 <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
[danvet: Add comment + WARN as discussed with Paulo on irc.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c