svn commit: r232670 - head/sys/dev/pci

John Baldwin jhb at FreeBSD.org
Wed Mar 7 18:57:09 UTC 2012


Author: jhb
Date: Wed Mar  7 18:57:09 2012
New Revision: 232670
URL: http://svn.freebsd.org/changeset/base/232670

Log:
  Remove the PAE-specific 2GB DMA boundary since HEAD now supports a proper 4G
  boundary for PAE.

Modified:
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c	Wed Mar  7 18:53:56 2012	(r232669)
+++ head/sys/dev/pci/pci.c	Wed Mar  7 18:57:09 2012	(r232670)
@@ -70,20 +70,9 @@ __FBSDID("$FreeBSD$");
 #include "pcib_if.h"
 #include "pci_if.h"
 
-/*
- * XXX: Due to a limitation of the bus_dma_tag_create() API, we cannot
- * specify a 4GB boundary on 32-bit targets.  Usually this does not
- * matter as it is ok to use a boundary of 0 on these systems.
- * However, in the case of PAE, DMA addresses can cross a 4GB
- * boundary, so as a workaround use a 2GB boundary.
- */
 #if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
-#ifdef PAE
-#define	PCI_DMA_BOUNDARY	0x80000000
-#else
 #define	PCI_DMA_BOUNDARY	0x100000000
 #endif
-#endif
 
 #define	PCIR_IS_BIOS(cfg, reg)						\
 	(((cfg)->hdrtype == PCIM_HDRTYPE_NORMAL && reg == PCIR_BIOS) ||	\


More information about the svn-src-head mailing list