From afcd950cafea6e27b739fe7772cbbeed37d05b8b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 10 Jun 2015 15:58:01 +0100 Subject: [PATCH] drm: Avoid the double clflush on the last cache line in drm_clflush_virt_range() As the clflush operates on cache lines, and we can flush any byte address, in order to flush all bytes given in the range we issue an extra clflush on the last byte to ensure the last cacheline is flushed. We can can the iteration to be over the actual cache lines to avoid this double clflush on the last byte. Signed-off-by: Chris Wilson Cc: Imre Deak Reviewed-by: Imre Deak Signed-off-by: Daniel Vetter --- Reading git-format-patch failed