]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush all writes before suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 14:41:24 +0000 (15:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 20:42:14 +0000 (21:42 +0100)
commit676b2eba6fe895d009c9a7cc7539750e4a80f023
treef48b648529ea8b7f41cefb1d7b433d5845bdb9d1
parent4b099fc9a3f10a5034fee84598fe6f98845a85f3
drm/i915: Flush all writes before suspend

As we have already suspended the device, this should be a no-op except
for marking that all writes are indeed complete. The downside is that
we then have to walk all the lists of objects for what should be a no-op
(in some cases they will be mmio read to ensure the GGTT writes are
indeed flushed, and clflushes to ensure that cpu writes are in memory).

It seems prudent and the safer course for us to ensure all writes are
flushed to memory before suspend.

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-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c