From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from caramon.arm.linux.org.uk (caramon.arm.linux.org.uk [IPv6:2002:4e20:1eda::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 85565B6FA3 for ; Mon, 23 Apr 2012 19:50:48 +1000 (EST) Date: Mon, 23 Apr 2012 10:50:13 +0100 From: Russell King - ARM Linux To: Boojin Kim Subject: Re: [PATCH 5/9] dmaengine: provide a common function for completing a dma descriptor Message-ID: <20120423095013.GL24211@n2100.arm.linux.org.uk> References: <20120306223321.GD15201@n2100.arm.linux.org.uk> <056201cd2135$10ea5b70$32bf1250$%kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <056201cd2135$10ea5b70$32bf1250$%kim@samsung.com> Sender: Russell King - ARM Linux Cc: 'Stephen Warren' , 'Linus Walleij' , 'Srinidhi Kasagar' , 'Vinod Koul' , 'Dan Williams' , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Apr 23, 2012 at 06:40:06PM +0900, Boojin Kim wrote: > I met a problem on DMA cyclic mode (DMA_CYCLIC) for sound playback. > Kernel BUG occurs during DMA transfer with DMA cyclic mode. > This patch makes the cookies into zero. But, cookies should be kept > during cyclic mode because cyclic mode re-uses the cookies. The protection is there to prevent cookies being accidentally re-used. If you're running a cyclic transfer, even then you shouldn't be completing the same cookie time and time again - I think Vinod also concurs with this. I think our preference is for cyclic transfers to entire remain uncompleted, or to get a new cookie each time they allegedly "complete".