svn commit: r190565 - head/sys/dev/drm

Robert Noland rnoland at FreeBSD.org
Mon Mar 30 11:01:44 PDT 2009


Author: rnoland
Date: Mon Mar 30 18:01:42 2009
New Revision: 190565
URL: http://svn.freebsd.org/changeset/base/190565

Log:
  We don't know what these pages are going to be used for, they should be
  un-cached.  This got lost somewhere with all the bus_dma fixups.
  
  MFC after:	3 days

Modified:
  head/sys/dev/drm/drm_pci.c

Modified: head/sys/dev/drm/drm_pci.c
==============================================================================
--- head/sys/dev/drm/drm_pci.c	Mon Mar 30 18:01:12 2009	(r190564)
+++ head/sys/dev/drm/drm_pci.c	Mon Mar 30 18:01:42 2009	(r190565)
@@ -91,7 +91,7 @@ drm_pci_alloc(struct drm_device *dev, si
 	}
 
 	ret = bus_dmamem_alloc(dmah->tag, &dmah->vaddr,
-	    BUS_DMA_WAITOK | BUS_DMA_ZERO, &dmah->map);
+	    BUS_DMA_WAITOK | BUS_DMA_ZERO | BUS_DMA_NOCACHE, &dmah->map);
 	if (ret != 0) {
 		bus_dma_tag_destroy(dmah->tag);
 		free(dmah, DRM_MEM_DMA);


More information about the svn-src-all mailing list