]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/drm/ati_pcigart.c
drm: fix for non-coherent DMA PowerPC
[linux-2.6-omap-h63xx.git] / drivers / char / drm / ati_pcigart.c
index 35d25d821c38715c8f0dc659ad8c592b84f0a6d5..141f4dfa0a117cdd6639abab27424bc529fae053 100644 (file)
@@ -168,6 +168,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__)