projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
513d4c3
)
pcigart: fixup memset + remove wbinvd
author
Dave Airlie
<airlied@redhat.com>
Wed, 6 Aug 2008 05:56:08 +0000
(15:56 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 6 Aug 2008 05:56:08 +0000
(15:56 +1000)
linux-core/ati_pcigart.c
patch
|
blob
|
history
diff --git
a/linux-core/ati_pcigart.c
b/linux-core/ati_pcigart.c
index
48c7988
..
9b95429
100644
(file)
--- a/
linux-core/ati_pcigart.c
+++ b/
linux-core/ati_pcigart.c
@@
-90,7
+90,7
@@
int drm_ati_alloc_pcigart_table(struct drm_device *dev,
if (gart_info->table_handle == NULL)
return -ENOMEM;
if (gart_info->table_handle == NULL)
return -ENOMEM;
- memset(gart_info->table_handle, 0, gart_info->table_size);
+ memset(gart_info->table_handle
->vaddr
, 0, gart_info->table_size);
return 0;
}
EXPORT_SYMBOL(drm_ati_alloc_pcigart_table);
return 0;
}
EXPORT_SYMBOL(drm_ati_alloc_pcigart_table);
@@
-205,11
+205,7
@@
int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *ga
ret = 1;
ret = 1;
-#if defined(__i386__) || defined(__x86_64__)
- wbinvd();
-#else
mb();
mb();
-#endif
done:
gart_info->addr = address;
done:
gart_info->addr = address;
@@
-265,11
+261,7
@@
static int ati_pcigart_bind_ttm(struct drm_ttm_backend *backend,
gart_insert_page_into_table(info, page_base, pci_gart + j);
}
gart_insert_page_into_table(info, page_base, pci_gart + j);
}
-#if defined(__i386__) || defined(__x86_64__)
- wbinvd();
-#else
mb();
mb();
-#endif
atipci_be->gart_flush_fn(atipci_be->dev);
atipci_be->gart_flush_fn(atipci_be->dev);