From 9ec89d355f7becc682cf9fc4e23571be7a200036 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Sat, 26 Jul 2014 18:14:16 +0000 Subject: [PATCH] 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. --- sys/arm/arm/busdma_machdep-v6.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/arm/arm/busdma_machdep-v6.c b/sys/arm/arm/busdma_machdep-v6.c index f45a5d1e03a..608c650f594 100644 --- a/sys/arm/arm/busdma_machdep-v6.c +++ b/sys/arm/arm/busdma_machdep-v6.c @@ -721,8 +721,6 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags, 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++;