Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp316433img; Wed, 27 Mar 2019 23:55:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+7sCT459zTKMtxmkI/z8Ct+OIWGG4x4jCSu2AFAXqtlJY6Qt60nDpMTRqJVAv0TdxAPfv X-Received: by 2002:a65:6644:: with SMTP id z4mr38570584pgv.198.1553756104076; Wed, 27 Mar 2019 23:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553756104; cv=none; d=google.com; s=arc-20160816; b=YF7GPRRPpRxvxDjjqHKUlWmLzK06b5lPfocSiwdTDn9rcaWx/J43m9iQYfnI16icbp m+Qn+3uqtnr0ILqQjUeT7TgilrZ5nffjR350zhzzO8J9iw1NRSjieGFILtp+PCSGmUw+ t9Wr3lPm5icfZp0b08UTMbQo+sfTEjBWRs0GFifBdaYk99ZQuAwCmbEyD7kTPIqsHFPp Ro8Z94NxkHWAkiB25lA2MGwDWyHJ5AmcC6+KB4qViLQAhsya8AofIKpXGyklQ9XgiK0k 9bjuQ0fNPtxBnFbIaJ8bPDmmHT2OINRWMXevpummbHqyLY/sVGab2ULz+yILuU+ekgIU J3Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dUfUNsOQi7AfvvK9tXlSB0KBkdqslgk1Gk+cLhtdAT0=; b=zepUygLTo5VreUWmdfk5DgnptcWAtziqGeyuzRHp5CZGwdiIbvrJPT41EiF//znd6m YQb5CRGxf0lj6xwlo9KCsmplvqiC0WbFASV5evt6zlpRdNPzG6YdXhmmtM+WaYDPiMMa kLwTaqOyST2jPKngCZgQN/eQtcV/zOdl7KD7u1+o9iDIdddhP15BVWWIAlfpniKr9ofq DD2pgG5NKLKtoqqggNfvGL3hfH7bZ6zI/tKOpRDNvBHorYn2tZIQLDD+hrCCwhQfJrde TdMCXZdOBni5vsU0hJ2N3+LKDgioxcT17QZH5KGbqCGBty6R4UCQ+YsDRvqg9/6gipx+ mxCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 75si20194363pgb.230.2019.03.27.23.54.48; Wed, 27 Mar 2019 23:55:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726348AbfC1Gww (ORCPT + 99 others); Thu, 28 Mar 2019 02:52:52 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:37505 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfC1Gww (ORCPT ); Thu, 28 Mar 2019 02:52:52 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h9Ou9-0005ZQ-Ge; Thu, 28 Mar 2019 07:52:49 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1h9Ou7-0004CP-Nf; Thu, 28 Mar 2019 07:52:47 +0100 Date: Thu, 28 Mar 2019 07:52:47 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Igor Plyatov Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, NXP Linux Team , Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Mark Brown , dmaengine@vger.kernel.org, Vinod Koul , Dan Williams , Andy Duan , Han Xu , Robin Gong , Clark Wang Subject: Re: Issues with i.MX SPI DMA transfers Message-ID: <20190328065247.uz73lap7ljf5q3tb@pengutronix.de> References: <08fcbd65-510f-84f8-d6d6-ff56aa9ca9ad@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <08fcbd65-510f-84f8-d6d6-ff56aa9ca9ad@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Igor, On Wed, Mar 27, 2019 at 08:40:00PM +0300, Igor Plyatov wrote: > please, help to resolve two issues with SPI DMA transfers at i.MX6Q > platform. > > First issue is > ?[ 4465.008003] spi_master spi0: I/O Error in DMA RX > > Second issue is duplication for one of received bytes. > > Probably, these issues related to each one. This is probably the same problem I hit some time ago. Check ERR009165 in the errata. You either need to disable DMA or need a fixed sdma-Script. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |