]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Almagamate clflushes on suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 21:43:31 +0000 (21:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jan 2021 20:46:35 +0000 (20:46 +0000)
commitfcd1ae9dc28a7ef4bf17dfe46a71d4338d25356d
tree1369af42a4b09d5f3cb5a886e2f4ee6acdbdefd3
parenta97cdd7a0e3ed170c763b740cdfe8146992c6dc8
drm/i915/gem: Almagamate clflushes on suspend

When flushing objects larger than the CPU cache it is preferrable to use
a single wbinvd() rather than overlapping clflush(). At runtime, we
avoid wbinvd() due to its system-wide latencies, but during
singlethreaded suspend, no one will observe the imposed latency and we
can opt for the faster wbinvd to clear all objects in a single hit.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210119214336.1463-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_pm.c