From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolin Chen Subject: Re: fsl_ssi.c: Roberto's problem: ssi hangs after some number of samples Date: Wed, 4 Nov 2015 10:11:45 -0800 Message-ID: <20151104181144.GA4057@Asurada-CZ80> References: <5634870A.4080206@tekno-soft.it> <563A253C.7080709@tekno-soft.it> <563A380E.8060406@tekno-soft.it> <563A45CC.2070605@tekno-soft.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by alsa0.perex.cz (Postfix) with ESMTP id E9816260537 for ; Wed, 4 Nov 2015 19:11:50 +0100 (CET) Received: by padhx2 with SMTP id hx2so51612452pad.1 for ; Wed, 04 Nov 2015 10:11:50 -0800 (PST) Content-Disposition: inline In-Reply-To: <563A45CC.2070605@tekno-soft.it> 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: Roberto Fichera Cc: Fabio Estevam , "alsa-devel@alsa-project.org" , Shengjiu Wang , Caleb Crome , "arnaud.mouiche@invoxia.com" , Markus Pargmann , "shawn.guo@linaro.org" , Fabio Estevam List-Id: alsa-devel@alsa-project.org On Wed, Nov 04, 2015 at 06:52:12PM +0100, Roberto Fichera wrote: > > 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. A smaller period size may course DMA buffer over/underrun -- ALSA over/underrun even though it seems that you didn't report any. And apparently SDMA would get more interrupt/callbacks. I would suggest a larger period size and buffer size although I cannot tie your problem with the size. But you may try.