Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Remove unneeded dma sync in ATI pcigart alloc

Now that the ATI pcigart code uses dma_alloc_coherent, we don't need
the dma_sync_single_for_device() that we used to have here.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Benjamin Herrenschmidt and committed by
Dave Airlie
f1c3e67e 5ff64611

-7
-7
drivers/char/drm/ati_pcigart.c
··· 167 167 page_base += ATI_PCIGART_PAGE_SIZE; 168 168 } 169 169 } 170 - 171 - if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) 172 - dma_sync_single_for_device(&dev->pdev->dev, 173 - bus_address, 174 - max_pages * sizeof(u32), 175 - PCI_DMA_TODEVICE); 176 - 177 170 ret = 1; 178 171 179 172 #if defined(__i386__) || defined(__x86_64__)