Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp324734img; Thu, 28 Mar 2019 00:05:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw12/HzdzY37ga2k2IY6Ql6WKVbqGHr+0gRlIy64aIJQLfwz5pm0xl5rS0tavxf/wGE372J X-Received: by 2002:a65:4bce:: with SMTP id p14mr39111945pgr.68.1553756726457; Thu, 28 Mar 2019 00:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553756726; cv=none; d=google.com; s=arc-20160816; b=emQc2GJUEjX0s2jFfMAnuiKQtcPGHAjZ0MBCHenF/iPFKn4IItCOTeH90Ow4xXHSQQ Ms4W0VysbN7FJqxeReMRBargiIxrgiIbSQ6mmMmLVhO44duyy/ARH6J/yXWgeQRBKGZv 2DtPJGZvbk1tqceddrRxERK6EGCCS8/eML+HmSbNNNjnL6T+qncKhCHCCVOMZtQ4vdQc 8jE13GzDY2eCtVk6yYefxRYpmRgaktOSbZOzz322TPrm1cuytNeKsd7cA98F2fre9jaw M+JbEypJFC7dalbm56cfRbxML1ccRw2CPhQSor8KNOLMWlagaroPj/UdMBYBgNwmxwSw XIVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=++Ok3oXtfB9kV66SMuSQbHitfXqKIJTKrn/zYU25Okk=; b=Sw5NX/92h+6mvg4zIi1k1U4m6RjIwQaBmLUqNN5yczzybsQU4NZC+mxjkfwcQkq+d0 H9SCGzLLGwBqmKIN8D0eEufbsYneg4JO6GIAjAs9SnFPi0HyBIiVaqbuLojGqmlOXxrl DDums9+/pfw3+fntaxgYpEVP5mpV8qOhP1UgorErtsnRJT8Vwro3s0c+PA8f0GekkIcQ 4tPk2bozekfgiwtuLBkJ+JVfVlEddYMfxsPx46koHUF3qt+3cw5HZK+zZYH0sZbX6FnW gTCL9kFwCr/ITzTrAvTSYHuA/avX76fReTmbQbBFfRWhOoKknCj1xHIgEzN8v2aZIMuG IQWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=obRSs92j; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si21623840plk.279.2019.03.28.00.05.10; Thu, 28 Mar 2019 00:05:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=obRSs92j; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726358AbfC1HE0 (ORCPT + 99 others); Thu, 28 Mar 2019 03:04:26 -0400 Received: from mail-lj1-f170.google.com ([209.85.208.170]:38991 "EHLO mail-lj1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbfC1HEZ (ORCPT ); Thu, 28 Mar 2019 03:04:25 -0400 Received: by mail-lj1-f170.google.com with SMTP id l7so16619977ljg.6; Thu, 28 Mar 2019 00:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=++Ok3oXtfB9kV66SMuSQbHitfXqKIJTKrn/zYU25Okk=; b=obRSs92j0RvuqIuKlmxe1YCUnraqFUKZB9818+uEGYJTKlnP7aKOMhGWiJ2Fs3WJGC U3TXSm59lAijEyNCb+DhEOzBh702r0hMb84CzaE6o1Lr1/QUroTSeokuYWEUAM4WS6Xd y7ohfkFCvynuqhYKzZ6OqcnJdKyM6Gzgd9W+wzK5f899xWOMbE8gTv4EK3a8qZGVCjCg okZ547InmNoIl8BwG9F+2OB/svr6LH8NiK+TFbX4g8mxHJS2MYEf2/tlmUVL0lzkq1eb EdO0laefxXUv8y0Ds8ST6qmeTxTeGuMdn74Y9TVyyXh9qqGjJbQFDQjTBobdZHwu/JEQ K4hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=++Ok3oXtfB9kV66SMuSQbHitfXqKIJTKrn/zYU25Okk=; b=cGOsWt8YG7FOUQWvZ1CYm2Z4ZCDGIM6MFHQpVhEMUObweWLI6i7erxavpc/5VEgy6k Gl4/ezhagrImBLnrQ2wuGinqzAThdNr15JmG+MBiGNWZNgvAgEzgBr0ItPnr+B0/ZiK5 ZxXCoYnxJFv8VP7ClF2tJ0VM2AdtitdsjoDdfCVRhJpPCSOIe0A0GlKwyPrzyu1OY2Q2 60KtsAxzrTOFXHUlt1KoxOYbX/Jsdd1pX8a6FLClH+mxhJEhtcIHQo6pqbQHtQvSRM4E n/zH3VCXsgEBK/b0R0HdRuAL5MDJjvJXXL9WGQgxgqWnPDtADDqu1aOI7DAixPFdHHLt XWxw== X-Gm-Message-State: APjAAAXBra3XHjVFIUJ6MnvJB9mu7R6xo0Irp2ZQsh69I9i5pf+svIKC V1Wldf4eo9HXL/66qgt1jRE= X-Received: by 2002:a2e:968c:: with SMTP id q12mr21789304lji.36.1553756663541; Thu, 28 Mar 2019 00:04:23 -0700 (PDT) Received: from [192.168.1.10] ([95.174.107.249]) by smtp.gmail.com with ESMTPSA id m10sm4897594lfk.57.2019.03.28.00.04.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 00:04:22 -0700 (PDT) Subject: Re: Issues with i.MX SPI DMA transfers To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= 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 References: <08fcbd65-510f-84f8-d6d6-ff56aa9ca9ad@gmail.com> <20190328065247.uz73lap7ljf5q3tb@pengutronix.de> From: Igor Plyatov Message-ID: Date: Thu, 28 Mar 2019 10:04:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190328065247.uz73lap7ljf5q3tb@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Uwe, > 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. disabling of DMA is not an option, because high throughput required for SPI bus to communicate with DSPs. I'm aware of ERR009165, but as I write some minutes earlier to list, spi0 (alias for ecspi1) and spi1 (alias for ecspi2) work flawless, while spi4 (alias for ecspi5) fails very fast. Does same SDMA script used for all SPI interfaces or scripts are different? Best wishes. -- Igor Plyatov