Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Missed clflushopt in drm_clflush_virt_range

With this commit:

2a0788dc9bc4 x86: Use clflushopt in drm_clflush_virt_range

If clflushopt is available on the system, we use it instead of clflush
in drm_clflush_virt_range. There were two calls to clflush in this
function, but only one was changed to clflushopt. This patch changes
the other clflush call to clflushopt.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reported-by: Matthew Wilcox <matthew.r.wilcox@intel.com>

Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Cc: H Peter Anvin <h.peter.anvin@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

authored by

Ross Zwisler and committed by
Daniel Vetter
79270968 233fd4ec

+1 -1
+1 -1
drivers/gpu/drm/drm_cache.c
··· 138 138 void *end = addr + length; 139 139 mb(); 140 140 for (; addr < end; addr += boot_cpu_data.x86_clflush_size) 141 - clflush(addr); 141 + clflushopt(addr); 142 142 clflushopt(end - 1); 143 143 mb(); 144 144 return;