From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roberto Fichera Subject: Re: fsl_ssi.c: Roberto's problem: ssi hangs after some number of samples Date: Wed, 4 Nov 2015 18:52:12 +0100 Message-ID: <563A45CC.2070605@tekno-soft.it> References: <5634870A.4080206@tekno-soft.it> <563A253C.7080709@tekno-soft.it> <563A380E.8060406@tekno-soft.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.tekno-soft.it (li153-180.members.linode.com [109.74.206.180]) by alsa0.perex.cz (Postfix) with ESMTP id 8C8F4260537 for ; Wed, 4 Nov 2015 18:52:32 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Caleb Crome Cc: Fabio Estevam , "alsa-devel@alsa-project.org" , Shengjiu Wang , Nicolin Chen , "arnaud.mouiche@invoxia.com" , Markus Pargmann , "shawn.guo@linaro.org" , Fabio Estevam List-Id: alsa-devel@alsa-project.org On 11/04/2015 06:41 PM, Caleb Crome wrote: > On Wed, Nov 4, 2015 at 8:53 AM, Roberto Fichera wrote: >> On 11/04/2015 04:33 PM, Roberto Fichera wrote: >>> *RX DMA frame count=36795* >>> RX DMA addr=0x9ef0e000 >>> RX DMA buffer len=16 >>> *TX DMA frame count=36795* >>> TX DMA addr=0x9ee49000 >>> TX DMA buffer len=16 > > I notice your DMA buffer length is very short, which would require > very frequency interrupts to service, right? Can you increase your > DMA buffer length by increasing the period size? Maybe that would > help reduce the likelyhood of a failure. Not sure if this can help! SSI TDM is set to 32 slots but only 2 are masked. So every frame only 2 slots are pushed/pulled from the FIFOs. maxburst is set to pull a block of 8 elements from the FIFOs, DMA cyclic call it period. So the full DMA buffer is filled in buffer size / period DMA iterations. > Although it would be good to > be able to recover from a failure gracefully. Yep! I will try to restart the DMA channels from a failure to see if this might work or not. > -Caleb > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >