From owner-freebsd-current@FreeBSD.ORG Thu Sep 3 21:21:20 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1963106566B for ; Thu, 3 Sep 2009 21:21:20 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2538FC14 for ; Thu, 3 Sep 2009 21:21:19 +0000 (UTC) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 253385679; Fri, 04 Sep 2009 00:21:17 +0300 Message-ID: <4AA03346.5010608@FreeBSD.org> Date: Fri, 04 Sep 2009 00:21:10 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Ryan Rogers , current@FreeBSD.org References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: non aligned DMA transfer attempted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 21:21:20 -0000 Ryan Rogers wrote: > I'm having a bit of a problem getting my DVD drive(s) to work correctly. > I'm trying to transfer my DVD collection to my media server, but > whenever I run vobcopy, /var/log/messages gets spammed with: > > acd0: FAILURE - non aligned DMA transfer attempted > acd0: setting up DMA failed > > I added a bit more information to the first message to see if I could > figure out what was actually going on. request->data was 0xd40e0c37, > ch->dma.alignment was 2, and request->bytecount was 2048. Actually I don't understand what for this check was made there. It is busdma infrastructure business to implement buffer bouncing to manage requested alignment. But this check enforces application level to bother with this. Usually it works fine, as memory often allocated aligned. But probably here is some specifics in your application. Could you try to just to comment-out that request->data check? -- Alexander Motin