mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] drm: Remove unneeded dma sync in ATI pcigart alloc
@ 2008-04-20  0:26 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2008-04-20  0:26 UTC (permalink / raw)
  To: David Airlie; +Cc: linux-kernel, stevewin

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>
---

Probably not stable material as it won't hurt not to remove it.

 drivers/char/drm/ati_pcigart.c |    7 -------
 1 file changed, 7 deletions(-)

--- linux-work.orig/drivers/char/drm/ati_pcigart.c	2008-04-19 16:52:23.000000000 +1000
+++ linux-work/drivers/char/drm/ati_pcigart.c	2008-04-19 16:54:00.000000000 +1000
@@ -167,13 +167,6 @@ int drm_ati_pcigart_init(struct drm_devi
 			page_base += ATI_PCIGART_PAGE_SIZE;
 		}
 	}
-
-	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__)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-20  0:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-20  0:26 [PATCH 2/2] drm: Remove unneeded dma sync in ATI pcigart alloc Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®