Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1103226yba; Tue, 2 Apr 2019 02:17:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZZBLM8Z0G/1Fa9ciuXSeWw+jlFZrJc9UapQ4wPPC0qwoTIC0OpUaMAfrfLKEL8Ez04b/P X-Received: by 2002:a17:902:694c:: with SMTP id k12mr6778563plt.149.1554196677011; Tue, 02 Apr 2019 02:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554196677; cv=none; d=google.com; s=arc-20160816; b=MRb8rxf9lhvBGVosz9pveiuQffEpMr1/Hnv01buaGoUfYtyc7zRzUnHE0HN1vgHFsX W6kK0mhubU9BeeBKW/PxgtWsk9LoySdeyAjnQ6n9ktTYdDw/59ozNz0y3OWbk+dex2co lRwvGl2vqjbOomgwfjZqmLIS9uLa7YRS+rFyBYWykVVqDqkqf4wunKHQbMbE1JiUYG8k 7oOUV/YUcP+H6IOF/ZrAZROnNEzIRNXqFU+BeiJzmOQgqriPLwHnwlFo84XGdMsaoLKH TNwfF5jZeTpP6ftEdqkMqi5JpCLIyxFbXREwLx7WjUGbNFBvY03kN+fcfpmLBnz0Dpy5 it6w== 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=pco4MTqs2xxgcSHHdU1koP29sUUcMScs/RtlSPm6gPA=; b=ZO9/Kl5BFAKyiUWUCY8WT7+J7NmtQvKNHkRiTD4+YVFQ9DoCCyYPB219vfQxFdaCO6 mCXv/zFCcflQcEYF65vF95pZLVF5lXPjut6+OLbgF7YL/NtqmJzFUQkt21Fz/eGAkzNf fDhCa8bJ9UvrfFE2DjCbMedyEOpVTfns1nVOapX7rVNVhNJEMZPEEXbKX8rsG13PEvnW STenwMU5Dvxa5RgRojbgFngudVNxmHYvBS1M0lT6Q8iq7Oa2gLdy62Af0xedvqnFH1vo 67uMPxMD4974mZAsOJmoLYciitL1Q0+pZ3MlCokkO4zGjI5e00GtsQ9LrHXblRBRRHLf 0s9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=faRnzKB6; 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 j34si10797159pgb.64.2019.04.02.02.17.41; Tue, 02 Apr 2019 02:17:56 -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=faRnzKB6; 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 S1728904AbfDBHUc (ORCPT + 99 others); Tue, 2 Apr 2019 03:20:32 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:41312 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfDBHUc (ORCPT ); Tue, 2 Apr 2019 03:20:32 -0400 Received: by mail-lj1-f195.google.com with SMTP id k8so2178067lja.8; Tue, 02 Apr 2019 00:20:30 -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=pco4MTqs2xxgcSHHdU1koP29sUUcMScs/RtlSPm6gPA=; b=faRnzKB6jXfUsEfqf1HmcugWcx8CDFz0GuXplh8nA3IswlH/cV0VsWRN7A7QxNfio4 v5Q0RM/Gxl+Uy1Se+OfVccqMGrwQ+PMsQyBzDPEnOQy0neEvDOKYv3tVV/PXq12WXq6Z MHLbKUmCUSJFUtZBV2q5nIMkjuie8wushawnwCTM4CtZU5B8juasPJ9KWERwRewGH1C1 oo+hsxfEy+PaAiZpyfILhdQjaQgIH3n+PNPkYeqhigcioAKYNXb0azdQJKD2oIl4/xmV OkhmhPuja6wI9yBLcjNsjS1K+OGIFcgDOzMjpTz8mEBeDLGJIXAszzRJ+R9XOwDqRhKL R2lA== 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=pco4MTqs2xxgcSHHdU1koP29sUUcMScs/RtlSPm6gPA=; b=m6MlZMu1T9DAGN20FTN71mcrHZCpk0v/AFZdN8HoBdZXJ7/4hBS6ctxurwYI9DCiOO SBwD2VnyUME79jcSwOhlygcptqXtGz1ayVUF9HoZbrRyPPHQv7Bt6lJzu7aqSz9Eoyvf GGWbY/BKxk6AgQwKfLKwMg3ML+4kAVNKAYTTW3YinLICzXzvpAaCRF+TEiRI85UZQUTl J6pbSXiIPgJs1x52zMnF2Mr7G+r6tNrSm6e5gOwsdh2iiZF82cFUXJNqte+8C1wjpIcI LNyf0uigXFCWmV3nbMYSAM0jLrfbKRdQ4NVK8Tna55iHl+zLIuFcdyKxy7t5wjsGwmDt +UAA== X-Gm-Message-State: APjAAAX5RtR2atjlhZuXkZrFb28PCjBVS0IOLdQA0YAzCMBzRjHBqEtV hocfQ87hszMPbC7ju7Gj20g= X-Received: by 2002:a2e:3506:: with SMTP id z6mr37301910ljz.72.1554189630089; Tue, 02 Apr 2019 00:20:30 -0700 (PDT) Received: from [192.168.1.10] ([95.174.107.249]) by smtp.gmail.com with ESMTPSA id e2sm2302627lfc.75.2019.04.02.00.20.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 00:20:29 -0700 (PDT) Subject: Re: Issues with i.MX SPI DMA transfers To: Robin Gong , =?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" , dl-linux-imx , Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Mark Brown , "dmaengine@vger.kernel.org" , Vinod Koul , Dan Williams , Andy Duan , Han Xu , Clark Wang References: <08fcbd65-510f-84f8-d6d6-ff56aa9ca9ad@gmail.com> <20190328065247.uz73lap7ljf5q3tb@pengutronix.de> From: Igor Plyatov Message-ID: <95df9334-3d0c-7d13-e431-5a4aa2b9907e@gmail.com> Date: Tue, 2 Apr 2019 10:20:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: 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 Robin Gong, >> Sorry...below another sdma patch(ad0d92d7ba6a) need to be reverted, >> because spi driver may dynamically change burst length. now I have reverted patch ad0d92d7ba6a. Patches 0001-dma-engine-imx-sdma-add-mcu_2_ecspi-script.patch and 0002-spi-spi-imx-fix-ERR009165.patch are applied. Kernel log show messages [   29.202639] imx-sdma 20ec000.sdma: loaded firmware 3.3 [   29.238595] spi_imx 2008000.spi: probed [   29.242802] spi_imx 200c000.spi: probed [   29.245217] spi_imx 2018000.spi: probed SPI DMA transfers still not work. If I test 32 byte transfers, then they work fine. But 64 byte transfers fails always and I see error messages root@cr7:~# spidev_test -D /dev/spidev4.1 -s 1200000 -b 8 -S 64 -I 1 -l spi mode: 0x20 bits per word: 8 max speed: 1200000 Hz (1200 KHz) [  423.686736] spi_master spi4: I/O Error in DMA RX [  423.691392] spidev spi4.1: SPI transfer failed: -110 [  423.696382] spi_master spi4: failed to transfer one message from queue can't send spi message: Connection timed out Aborted (core dumped) I suppose, transfers shorter then 64 bytes made with help of PIO. Robin, is there any chance for you to find some time and look at this issue again? Best wishes. -- Igor Plyatov