summaryrefslogtreecommitdiff
path: root/linux-core/ati_pcigart.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-03-07 11:59:21 +1100
committerDave Airlie <airlied@redhat.com>2008-03-07 11:59:21 +1100
commitf96baf1e1ec10768ea2027f75ebaef46f7d7f30a (patch)
tree1c387c45449a42e5692dcc3d1a62e39dcd8ca53f /linux-core/ati_pcigart.c
parentccae12a837e7b17c4e9211295ecbd18807020742 (diff)
parent2540ea7dc6c0c4f0ebca3370d6ec7359e4276e13 (diff)
Merge branch 'master' of ../../drm into modesetting-101
Diffstat (limited to 'linux-core/ati_pcigart.c')
-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 68029635..93519e5f 100644
--- a/linux-core/ati_pcigart.c
+++ b/linux-core/ati_pcigart.c
@@ -224,6 +224,12 @@ int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *ga
}
}
+ if (gart_info->gart_table_location == DRM_ATI_GART_MAIN)
+ dma_sync_single_for_device(&dev->pdev->dev,
+ bus_address,
+ max_pages * sizeof(u32),
+ PCI_DMA_TODEVICE);
+
ret = 1;
#if defined(__i386__) || defined(__x86_64__)