aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/ati_pcigart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ati_pcigart.c b/drivers/gpu/drm/ati_pcigart.c
index 2cd827a56ff..7972ec8762c 100644
--- a/drivers/gpu/drm/ati_pcigart.c
+++ b/drivers/gpu/drm/ati_pcigart.c
@@ -77,7 +77,7 @@ int drm_ati_pcigart_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info
77 if (!entry->busaddr[i]) 77 if (!entry->busaddr[i])
78 break; 78 break;
79 pci_unmap_page(dev->pdev, entry->busaddr[i], 79 pci_unmap_page(dev->pdev, entry->busaddr[i],
80 PAGE_SIZE, PCI_DMA_TODEVICE); 80 PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
81 } 81 }
82 82
83 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) 83 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN)
@@ -145,7 +145,7 @@ int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *ga
145 for (i = 0; i < pages; i++) { 145 for (i = 0; i < pages; i++) {
146 /* we need to support large memory configurations */ 146 /* we need to support large memory configurations */
147 entry->busaddr[i] = pci_map_page(dev->pdev, entry->pagelist[i], 147 entry->busaddr[i] = pci_map_page(dev->pdev, entry->pagelist[i],
148 0, PAGE_SIZE, PCI_DMA_TODEVICE); 148 0, PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
149 if (entry->busaddr[i] == 0) { 149 if (entry->busaddr[i] == 0) {
150 DRM_ERROR("unable to map PCIGART pages!\n"); 150 DRM_ERROR("unable to map PCIGART pages!\n");
151 drm_ati_pcigart_cleanup(dev, gart_info); 151 drm_ati_pcigart_cleanup(dev, gart_info);