]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3db0d632a04012631bc70455aa2019092fc21ea
treef5ca88d3cd76cdd51749adc6edc9830618cf08cf
parente22f9bfe66930437ae73ffbd9a642938179b6108
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