summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/ati_pcigart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/ati_pcigart.c b/linux-core/ati_pcigart.c
index 91136060..ebf19a2b 100644
--- a/linux-core/ati_pcigart.c
+++ b/linux-core/ati_pcigart.c
@@ -314,6 +314,12 @@ static int ati_pcigart_bind_ttm(drm_ttm_backend_t *backend,
insert_page_into_table(info, page_base, pci_gart + j);
}
+#if defined(__i386__) || defined(__x86_64__)
+ wbinvd();
+#else
+ mb();
+#endif
+
atipci_be->gart_flush_fn(atipci_be->dev);
atipci_be->bound = 1;