Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp323870ybk; Wed, 13 May 2020 00:51:59 -0700 (PDT) X-Google-Smtp-Source: APiQypLA4URYR/Q1QQuNpEuv9SYPeQJGTg4K899/AjiPjMu819BgCScwDYtQd7M3iNiHq7GL3w4B X-Received: by 2002:a50:9e2c:: with SMTP id z41mr13204008ede.193.1589356319391; Wed, 13 May 2020 00:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589356319; cv=none; d=google.com; s=arc-20160816; b=id+efncmrQMcVq0NhVg/uDOwY+IFhfIqzEZwMEwqXDAPpOnyxA/cCf7fragbJejAoE pLgsJ9gInlDy1sq8bHfZEpqbMOB1k61Xq12qxzEawLgMrOOcP55r7DsHcG9BN8FskLpN ygPggGA5HThBtUp1BFIuBYWhUXAN+Se5HTONmYSJ5Exa3yGYWyl4NqjkhqlVaQfBap1Y MfV+JWK5rwIuZh21Fp/by55MjBGFInNLSNLvK3KkJH2TSOsvb0/KMWae7v7143bwSWEQ bMx3se6bd21nTKP2bwBS0U7Gkq8UmWAe8R3dOrdgZLYT3IKh87003rfBqA3RGZdWEsBb M2XQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Zc7qHuMSelzkHW1qXKvscU+unDvpGI6A2+IahqDt7RM=; b=ekCiorocsKszmAAzyefp1b+YbF0DzteF5D9Vm6yYbj60VxsUGm9n2epSOR0GaXS98W cLtNlQd1jjmp3MNDLt8NTvUUdFvAptDYcBBRzTcJvqefVdlIw4WvTY1Q3hVBdaZYRhTU MS/0JV+x4skgJQNawKLDC/y2dimi3QrgpoCQC+xJNpi8hr+TqXF/Y43YFVvFwqu/f5tJ tKbwZpsm2lnaBKsxAWNpfUrGg1b9Q3ljvqErqdnJMc1FcTk4iF2sei53VnZBKQDt6BoB xrq7KyM6dWB964sYDLsqKS+aMxQd+MDgO4NlYG+lKyfztwt8iJHcGXuVcUTWvCw+FOEd c2oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o61si9197672edb.125.2020.05.13.00.51.36; Wed, 13 May 2020 00:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730047AbgEMHU1 (ORCPT + 99 others); Wed, 13 May 2020 03:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729726AbgEMHU1 (ORCPT ); Wed, 13 May 2020 03:20:27 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78880C061A0E for ; Wed, 13 May 2020 00:20:26 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYlgb-0000qH-Qw; Wed, 13 May 2020 09:20:13 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jYlgb-0008CI-1k; Wed, 13 May 2020 09:20:13 +0200 Date: Wed, 13 May 2020 09:20:13 +0200 From: Sascha Hauer To: Robin Gong Cc: vkoul@kernel.org, shawnguo@kernel.org, u.kleine-koenig@pengutronix.de, robh+dt@kernel.org, festevam@gmail.com, dan.j.williams@intel.com, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, l.stach@pengutronix.de, martin.fuzzey@flowbird.group, kernel@pengutronix.de, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v7 RESEND 00/13] add ecspi ERR009165 for i.mx6/7 soc family Message-ID: <20200513072012.GB15934@pengutronix.de> References: <1589218356-17475-1-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1589218356-17475-1-git-send-email-yibin.gong@nxp.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:15:45 up 83 days, 14:46, 109 users, load average: 0.44, 0.27, 0.28 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@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 On Tue, May 12, 2020 at 01:32:23AM +0800, Robin Gong wrote: > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > transfer to be send twice in DMA mode. Please get more information from: > https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding > new sdma ram script which works in XCH mode as PIO inside sdma instead > of SMC mode, meanwhile, 'TX_THRESHOLD' should be 0. The issue should be > exist on all legacy i.mx6/7 soc family before i.mx6ul. > NXP fix this design issue from i.mx6ul, so newer chips including i.mx6ul/ > 6ull/6sll do not need this workaroud anymore. All other i.mx6/7/8 chips > still need this workaroud. This patch set add new 'fsl,imx6ul-ecspi' > for ecspi driver and 'ecspi_fixed' in sdma driver to choose if need errata > or not. > The first two reverted patches should be the same issue, though, it > seems 'fixed' by changing to other shp script. Hope Sean or Sascha could > have the chance to test this patch set if could fix their issues. > Besides, enable sdma support for i.mx8mm/8mq and fix ecspi1 not work > on i.mx8mm because the event id is zero. It's not nice to break SPI support when the new firmware is not present and I think we can do better. Wouldn't it be possible to fall back to PIO in this case? Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |