svn commit: r190590 - head/sys/dev/malo

Weongyo Jeong weongyo at FreeBSD.org
Tue Mar 31 03:34:55 PDT 2009


Author: weongyo
Date: Tue Mar 31 10:34:54 2009
New Revision: 190590
URL: http://svn.freebsd.org/changeset/base/190590

Log:
  fix a bug that it passed a incorrect flag BUS_DMA_ALLOCNOW to create
  a device specific DMA tag.  On amd64 it could exhaust all of bounce
  pages when bus_dma_tag_create(9) is called at malo_pci_attach() then as
  result in next turn it returns ENOMEM.  This fix a attach fail on amd64.
  
  Pointed by:	yongari
  Tested by:	dchagin
  MFC after:	3 days

Modified:
  head/sys/dev/malo/if_malo_pci.c

Modified: head/sys/dev/malo/if_malo_pci.c
==============================================================================
--- head/sys/dev/malo/if_malo_pci.c	Tue Mar 31 09:54:54 2009	(r190589)
+++ head/sys/dev/malo/if_malo_pci.c	Tue Mar 31 10:34:54 2009	(r190590)
@@ -245,7 +245,7 @@ malo_pci_attach(device_t dev)
 			       BUS_SPACE_MAXADDR,	/* maxsize */
 			       0,			/* nsegments */
 			       BUS_SPACE_MAXADDR,	/* maxsegsize */
-			       BUS_DMA_ALLOCNOW,	/* flags */
+			       0,			/* flags */
 			       NULL,			/* lockfunc */
 			       NULL,			/* lockarg */
 			       &sc->malo_dmat)) {


More information about the svn-src-head mailing list