Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2014 18:14:17 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269135 - head/sys/arm/arm
Message-ID:  <201407261814.s6QIEHlL052339@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407261814.s6QIEHlL052339>