]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Apply the full CPU domain markup before freezing
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 14:41:25 +0000 (15:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 20:42:15 +0000 (21:42 +0100)
commita36b991c54c657e01fde8a6fda25920a9ae6b00a
tree18e38016a44715397566ed347d334eb77d6a05fb
parentdfdcbcd00a55cc09469933355ae7a01decc13d27
drm/i915: Apply the full CPU domain markup before freezing

Let's not take any chances by using a shortcut to mark the objects as in
the CPU domain upon freezing (all pages will be written to disk and so
on restore all objects will start from the CPU domain). Currently, we
simply mark the objects as being in the CPU domain, bypassing the
flushes. Let's call the full domain transfer function so that we have
less special case code (and symmetry with the suspend path) even though
it will be mostly redundant.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180601144125.18026-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c