drm/i915: Shrink objects prior to hibernation
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 19:02:18 +0000 (20:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 19:07:46 +0000 (20:07 +0100)
commit7aab2d534e35177cb08aed4075aa200b368ad496
tree789ac068d68203f17da04de0276e7ed350ff99ae
parent851ba2d6977d6ada31366ae0b791a69132f2c8a7
drm/i915: Shrink objects prior to hibernation

In an attempt to keep the hibernation image as same as possible, let's
try and discard any unwanted pages and our own page arrays.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160909190218.16831-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c