svn commit: r269135 - head/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Sat Jul 26 18:14:17 UTC 2014


Author: ian
Date: Sat Jul 26 18:14:16 2014
New Revision: 269135
URL: http://svnweb.freebsd.org/changeset/base/269135

Log:
  Remove completely bogus alignment check -- it's the physical address that
  needs to be aligned, not the virtual, and it doesn't seem worth the cost
  of a vtophys() call just to see if kmem_alloc_contig() works properly.

Modified:
  head/sys/arm/arm/busdma_machdep-v6.c

Modified: head/sys/arm/arm/busdma_machdep-v6.c
==============================================================================
--- head/sys/arm/arm/busdma_machdep-v6.c	Sat Jul 26 18:10:18 2014	(r269134)
+++ head/sys/arm/arm/busdma_machdep-v6.c	Sat Jul 26 18:14:16 2014	(r269135)
@@ -721,8 +721,6 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, voi
 		free(*mapp, M_DEVBUF);
 		*mapp = NULL;
 		return (ENOMEM);
-	} else if ((uintptr_t)*vaddr & (dmat->alignment - 1)) {
-		printf("bus_dmamem_alloc failed to align memory properly.\n");
 	}
 	dmat->map_count++;
 


More information about the svn-src-head mailing list