From owner-svn-src-all@FreeBSD.ORG Sat Jul 26 18:14:17 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 65C4C133; Sat, 26 Jul 2014 18:14:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5220A2330; Sat, 26 Jul 2014 18:14:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6QIEH0F052340; Sat, 26 Jul 2014 18:14:17 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6QIEHlL052339; Sat, 26 Jul 2014 18:14:17 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201407261814.s6QIEHlL052339@svn.freebsd.org> From: Ian Lepore Date: Sat, 26 Jul 2014 18:14:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269135 - head/sys/arm/arm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2014 18:14:17 -0000 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++;