]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit505f87b151da3a93f06885161ecff593358d8722
treed8a09138528e2ddd712e35eca51fbeec8b3e184c
parentcdc8eec35c871a4b349b8af1bcd2e353693edd26
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