summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@nx6125b.(none)>2007-06-05 18:23:05 +1000
committerDave Airlie <airlied@nx6125b.(none)>2007-06-05 18:23:05 +1000
commit96705ce6644389722f1605571e0a0dfde5568b8f (patch)
tree6d6d5cd3995c37be482f39b226800c7abc63a6ac
parentc9dbe0f2c2248ef8c3ba5718f77922d1c7429e6f (diff)
add wbinvd calls
-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;