From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757157AbbI1JOy (ORCPT ); Mon, 28 Sep 2015 05:14:54 -0400 Received: from smtpbg299.qq.com ([184.105.67.99]:52016 "EHLO smtpbg299.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756803AbbI1JOw (ORCPT ); Mon, 28 Sep 2015 05:14:52 -0400 X-QQ-mid: bizesmtp4t1443431677t639t314 X-QQ-SSF: 01100000002000F0FG42000A0000000 X-QQ-FEAT: y/Yfw/TLgL5FvmesBqv70I0BD8y5XWM+prCuzdF7tIxfJX2P8axNs3ypulIgF STFj09puzv9DDdmduviVxTYWyYbVaxF/kEhEbMowTKGD2GDSUDJG6Yxc+RLIQQCbLdsUoaU tDylEuGS0UNZusfZJgTGU1KUk8lc4R+OCBPYtfk4b/wkN4FU7y2N2fWVzGiQEeNEUZRBLYf C4CzItea4rhQAMcGWaM5IprPeZTcQiGiXUTQG/mXLj2KfmLZy8X6Tgp0SOAung6iQdOSS+a amvg== X-QQ-GoodBg: 0 From: "yitian" To: "'Andy Shevchenko'" , "'Andy Shevchenko'" , "'Viresh Kumar'" Cc: "'Viresh Kumar'" , "'Vinod Koul'" , "'Dan Williams'" , "'dmaengine'" , "'Linux Kernel Mailing List'" References: <025c01d0f858$4d19c790$e74d56b0$@tangramtek.com> <035501d0f9be$8ef49340$acddb9c0$@tangramtek.com> <1443429967.8361.227.camel@linux.intel.com> In-Reply-To: <1443429967.8361.227.camel@linux.intel.com> Subject: RE: [PATCH 1/1] dmaengine: dw: resolve recursion lock when audio playback Date: Mon, 28 Sep 2015 17:14:36 +0800 Message-ID: <037301d0f9ce$1908ca10$4b1a5e30$@tangramtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQIAIkm1tVpVS+KgFhirh+VLH4rJ6ADkII2xAxjhUwQBO3jstwJX6AC0nbbTXGA= Content-Language: zh-cn X-QQ-SENDSIZE: 520 X-QQ-FName: 2D22A97305074297B2D655700DC96523 X-QQ-LocalIP: 127.0.0.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Andy Shevchenko [mailto:andriy.shevchenko@linux.intel.com] > Sent: Monday, September 28, 2015 4:46 PM > To: yitian ; 'Andy Shevchenko' > ; 'Viresh Kumar' > Cc: 'Viresh Kumar' ; 'Vinod Koul' > ; 'Dan Williams' ; > 'dmaengine' ; 'Linux Kernel Mailing List' > > Subject: Re: [PATCH 1/1] dmaengine: dw: resolve recursion lock when > audio playback > > On Mon, 2015-09-28 at 15:23 +0800, yitian wrote: > > > > > > From: Andy Shevchenko [mailto:andy.shevchenko@gmail.com] > > > Sent: Monday, September 28, 2015 3:06 PM > > > To: Viresh Kumar > > > Cc: yitian ; Viresh Kumar > > > ; Andy Shevchenko > > > ; Vinod Koul < > > > vinod.koul@intel.com>; > > > Dan Williams ; dmaengine > > > ; Linux Kernel Mailing List > > > > > > Subject: Re: [PATCH 1/1] dmaengine: dw: resolve recursion > > > > I am not sure if this is a sane way of doing that, and we were > > > > scanning > > > > the descriptors for some valid reason.. > > > > > > Actually one of the patches in a pile sitting in my private repo is > > > also including similar change. In my case the reason is to support > > > cyclic transfers natively. > > > > > > > Yes, i am using DW DMAC to support cyclic transfer. > > Currently it is very easy to get recursion lock crash, but > > after this patch everything is fine on my device. > > What is an actual hardware you are running kernel on? > Hi Andy: I am using a FPGA, with Cortex-A5 core, Designware I2S IP, Designware DMAC IP. What I was done is to run tinyplay and tinycap to test the playback and capture function on the FPGA. With my change, both of them are okay now. I didn't push the patch which added cyclic DMA support for dw DMAC because I didn't make it decent enough yet.