add wbinvd calls

main
Dave Airlie 2007-06-05 18:23:05 +10:00
parent c9dbe0f2c2
commit 96705ce664
1 changed files with 6 additions and 0 deletions

View File

@ -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); 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->gart_flush_fn(atipci_be->dev);
atipci_be->bound = 1; atipci_be->bound = 1;