From owner-svn-src-all@FreeBSD.ORG Tue Feb 19 22:37:03 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 00C4983B; Tue, 19 Feb 2013 22:37:02 +0000 (UTC) (envelope-from Daan@vitsch.nl) Received: from Prakkezator.VEHosting.nl (Prakkezator6.VEHosting.nl [IPv6:2001:1af8:2100:b020::142]) by mx1.freebsd.org (Postfix) with ESMTP id 842D8CB3; Tue, 19 Feb 2013 22:37:02 +0000 (UTC) Received: from [192.168.72.13] (124-54.bbned.dsl.internl.net [92.254.54.124]) (authenticated bits=0) by Prakkezator.VEHosting.nl (8.14.2/8.14.2) with ESMTP id r1JMawxg061660; Tue, 19 Feb 2013 23:36:58 +0100 (CET) (envelope-from Daan@vitsch.nl) From: Daan Vreeken Organization: Daan - Vitsch Electronics To: Ian Lepore Subject: Re: svn commit: r246881 - head/sys/arm/arm Date: Tue, 19 Feb 2013 23:36:58 +0100 User-Agent: KMail/1.9.10 References: <1361047411-3211857922.60053a5ec5@bliksem.vehosting.nl> <201302162043.r1GKhG1e030867@svn.freebsd.org> In-Reply-To: <201302162043.r1GKhG1e030867@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201302192336.59024.Daan@vitsch.nl> x-ve-auth-version: mi-1.1.7 2011-02-21 - Copyright (c) 2008, 2011 - Daan Vreeken - VEHosting x-ve-auth: authenticated as 'pa4dan' on Prakkezator.VEHosting.nl Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 19 Feb 2013 22:37:03 -0000 Hi Ian, On Saturday 16 February 2013 21:43:16 Ian Lepore wrote: > Author: ian > Date: Sat Feb 16 20:43:16 2013 > New Revision: 246881 > URL: http://svnweb.freebsd.org/changeset/base/246881 > > Log: > In _bus_dmamap_addseg(), the return value must be zero for error, or the > size actually added to the segment (possibly smaller than the requested > size if boundary crossings had to be avoided). Your fix just beat me by minutes to reporting this bug. I'm rebasing a local source tree and ran into a situation where DMA wasn't working without any obvious reason. It turned out to be _bus_dmamap_load_buffer() returning EFBIG to bus_dmamap_load() because of the above. Thanks! -- Ing. Daan Vreeken Vitsch Electronics http://Vitsch.nl/ http://VitschVPN.nl/ tel: +31-(0)40-7113051 KvK nr: 17174380 -- Machines en netwerken op afstand beheren? Vitsch VPN oplossing! Kijk voor meer informatie op: http://www.VitschVPN.nl/