Skip to content

Commit e0f0754

Browse files
committed
drm: wbinvd is cache coherent.
doing an ipi for the wbinvd case isn't necessary. Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent e7d22bc commit e0f0754

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎drivers/gpu/drm/drm_cache.c‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ drm_clflush_page(struct page *page)
4747
}
4848
#endif
4949

50-
static void
51-
drm_clflush_ipi_handler(void *null)
52-
{
53-
wbinvd();
54-
}
55-
5650
void
5751
drm_clflush_pages(struct page *pages[], unsigned long num_pages)
5852
{
@@ -68,9 +62,8 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
6862

6963
return;
7064
}
71-
#endif
7265

73-
if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0)
74-
DRM_ERROR("Timed out waiting for cache flush.\n");
66+
wbinvd();
67+
#endif
7568
}
7669
EXPORT_SYMBOL(drm_clflush_pages);

0 commit comments

Comments
 (0)