Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755457AbbDIMBI (ORCPT ); Thu, 9 Apr 2015 08:01:08 -0400 Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:55456 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932667AbbDIMBF (ORCPT ); Thu, 9 Apr 2015 08:01:05 -0400 Date: Thu, 9 Apr 2015 14:00:57 +0200 From: Sebastian Andrzej Siewior To: Jiada Wang Cc: gregkh@linuxfoundation.org, jslaby@suse.cz, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, anton_bondarenko@mentor.com, dirk.behme@de.bosch.com Subject: Re: [PATCH v1 11/15] serial: imx: initialized DMA w/o HW flow enabled Message-ID: <20150409120057.GA12596@breakpoint.cc> References: <1418116296-12082-1-git-send-email-jiada_wang@mentor.com> <1418116296-12082-12-git-send-email-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1418116296-12082-12-git-send-email-jiada_wang@mentor.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1370 Lines: 29 On 2014-12-09 18:11:32 [+0900], Jiada Wang wrote: > From: Anton Bondarenko > > DMA mode for UART can be used even w/o HW flow control with RTS/CTS. > So it need to be initialized and enabled earlier. > > Signed-off-by: Anton Bondarenko > Signed-off-by: Jiada Wang How was this tested? I read you used the Sambe IMX6Q. I have here the Wandboard which is IMX6D and a PBAB01 which is IMX6Q. Both have the same issue with this patch, that is once DMA is enabled I receive the data in question plus one extra byte which is 0x00. That extra byte was not part of transaction. After that, the SDMA driver is handling interrupts like crazing and feeding one byte data (usually 0x00 but sometimes 0x02 not sure if this new or whatever was there before) to the core. Those one byte transaction are bogus of course. My question is how was this tested. Before your patch none of my boards were using DMA because RTS/CTS is not in use and this was a key requirement. Now SDMA goes crazy. Is there a SDMA firmware required for this to work? Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/