drm/i915: Lazily migrate the objects after hibernation
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 May 2016 06:26:34 +0000 (07:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 May 2016 07:51:39 +0000 (08:51 +0100)
commit975f7ff42edfbad53d65ad63a4f3e7ada8c7538f
treef5ca88d3cd76cdd51749adc6edc9830618cf08cf
parent461fb99c15a705274cf4a8042362f254ceb1529d
drm/i915: Lazily migrate the objects after hibernation

Now that we mark the object domains for having been restored from the
hibernation image, we not need to flush everything during resume and
can instead rely on the normal domain tracking to flush only when
required. The only caveat here are objects that are pinned for use by
the hardware, whose contents must be coherent for when the device
resumes reading from then (shortly afterwards with the driver assuming
the objects are in the correct domain).

References: https://bugs.freedesktop.org/show_bug.cgi?id=94722
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: David Weinehall <david.weinehall@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tested-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463207195-22076-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c