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)
commit95c778daecb5cd5aafcc09ebf1353fdc759b6fd7
tree18e38016a44715397566ed347d334eb77d6a05fb
parent9776f47253c3d953db8f9e33b3d75105f293ca70
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