drm/i915: restore gtt on resume in the drm instead of in intel-gtt.ko
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 5 Nov 2010 21:23:30 +0000 (22:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Nov 2010 20:14:46 +0000 (20:14 +0000)
commit76aaf22016caa7764f40e792aaca7b4918312b22
tree88ba0e64ed5c970969df5d70f2ae01fe641d6722
parent93a37f20eabeea4039130527b07453038c07f471
drm/i915: restore gtt on resume in the drm instead of in intel-gtt.ko

This still uses the agp functions to actually reinstate the mappings
(with a gross hack to make agp cooperate), but it wires everything
up correctly for the switchover.

The call to agp_rebind_memory can be dropped because all non-kms drivers
do all their rebinding on EnterVT.

v2: Be more paranoid and flush the chipset cache after restoring gtt
mappings.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-agp.c
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c [new file with mode: 0644]