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

drm: wbinvd is cache coherent.

doing an ipi for the wbinvd case isn't necessary.

Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Dave Airlie and committed by
Dave Airlie
e0f0754f e7d22bc3

+2 -9
+2 -9
drivers/gpu/drm/drm_cache.c
··· 47 47 } 48 48 #endif 49 49 50 - static void 51 - drm_clflush_ipi_handler(void *null) 52 - { 53 - wbinvd(); 54 - } 55 - 56 50 void 57 51 drm_clflush_pages(struct page *pages[], unsigned long num_pages) 58 52 { ··· 62 68 63 69 return; 64 70 } 65 - #endif 66 71 67 - if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0) 68 - DRM_ERROR("Timed out waiting for cache flush.\n"); 72 + wbinvd(); 73 + #endif 69 74 } 70 75 EXPORT_SYMBOL(drm_clflush_pages);