]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush everything on switching to the kernel_context
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 26 Nov 2017 21:48:56 +0000 (21:48 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Nov 2017 16:37:15 +0000 (16:37 +0000)
commit35d73b7e78681b130ba26a13c362fef791f0467a
treecc1f7b9c00613a866f4a7db2ac558bcaf9c24f5f
parent80f77964c26b8fa0623ad0bb83ecb5732d55c0e6
drm/i915: Flush everything on switching to the kernel_context

Even though all rendering should have been flushed at the end of the
previous requests, add an extra flush after switching to the
kernel_context. As the switch to the kernel_context is used when idling
the gpu (e.g. suspend), having an extra layer of paranoia to ensure
everything is flushed to memory seems sensible.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171126214856.23702-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_context.c