Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp596568pxj; Fri, 11 Jun 2021 06:53:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/CWUqib0avLm7clKcy2UUDWqVKFMZafoVj/FaBEwRSDA8iiBisVkbbiShQrhdLAGuNnYF X-Received: by 2002:a17:906:1c49:: with SMTP id l9mr3842398ejg.39.1623419637303; Fri, 11 Jun 2021 06:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623419637; cv=none; d=google.com; s=arc-20160816; b=zcqSCbCiW6k9WYFinDORkeVGLPYQditXCr2JsF/wcqAhnUiA+UraLtxTXDKikGgmCc Ovz+kN8keHzek3A2gwb2cILMRZBY3V0aGUXpS2sLttBMM5AWmrOfzi+FZpbXDbiwerj6 rQoaHWij4HOc0wW7SKZ4ezdcbIqdBWx0ky3zTVzUVFGZji5zwh2hzbIa9CkjZRvVWfa9 W5XiVVKDVPLkzPayp5KOAMUqXZKgYurgKkZCuXPU0NQCZr+mvmX+XDDb4Gv3KxmjElMt rouLPTUlxT+4XXk9f0TdWb0UgcHF/9Z+rw9aG+Ez3/OC8UtEU2vN2z6bDAkrmPXrUJCN MAgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xVxSNmZANvk4+xXEPZhmdlgwWkhMnsRF27bwwNOdZG8=; b=GCuBOit1OPBBKel7B2GWXZayVM2QxiPTthuqpTJxyhBJH3eUlXI3fzP++2c9DIJsfq Ugd91iDEiw60c9AgfSwqe95nwHN4bKRfD8z6cYZYOKZkevkI8REh1xZcHJopn4IV3OcR ukDLqT+Z9CNlsZ7vwMxpL35In7WzXLKVmVDKlwtbdK58lDpxTOD5vZW+aJgG9uKGLoMQ c2XIaa9SH/GGbBr6i8/WxjDSls7f11zoFxvsRyd5QlrJjXrkKcSdzrRoysnWKijtdS+a x2dIudRNGXM6sXmHjo0nmXo0S+J8Jm7WStxVc9M8qhQid5AiWXOLtt2n2OEYTi/c+bUp B4+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Sgrn7Y/d"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si4808998eds.410.2021.06.11.06.53.34; Fri, 11 Jun 2021 06:53:57 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Sgrn7Y/d"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231461AbhFKNxa (ORCPT + 99 others); Fri, 11 Jun 2021 09:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbhFKNx3 (ORCPT ); Fri, 11 Jun 2021 09:53:29 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB0EC061574; Fri, 11 Jun 2021 06:51:17 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id a19so6600644ljq.12; Fri, 11 Jun 2021 06:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xVxSNmZANvk4+xXEPZhmdlgwWkhMnsRF27bwwNOdZG8=; b=Sgrn7Y/dVZ5kOr4om0rQqu9jRGg39+nyLDYicWqeVx2nZ9X+zJNj+CJOwHlPT+1Wrj nXFlmDUb0Xo9Lh7dlg2DeS0XmhIW0zRjMZ2C4lhE/sI32mfOWFnYNbX2g9VkEhAusHZs Rswn/8EOfge1thH6I+tYzikO23WTeSv27sOXizs2CCOK17B5Oi3rJgxoEBL+S/EcOKBz 7IauTY1u7kujy5CygP5aqFH7nogHvcJY/XYGEwNYeGtGl0TAbltX66XzI9hg0jXZtMh/ 2Y8a3WsMbluns0GKIaW9mSaBXGyeFpJwpRlMLrm9tyA+MWXOHKv+Ph6Qq0v7eEI8mgpo uhNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xVxSNmZANvk4+xXEPZhmdlgwWkhMnsRF27bwwNOdZG8=; b=WSC7n7KN7VpOP7oAItt4icc/tSN4r93OmIn1OhImJV2UxNa3MR7XtxIZnChiX8vy3d yrlgeOQYnagsIZ7NFdUeUfI4zHBYrNAbrdg2FWmrflPsPfQtmAmba1D+1x0b0ONWCZHW RINUzlt5/ebViR0QDI4N6W9TmDNRM4Hep15j+khlQXafRiNLWighUclsz3HLsaX9j9JI Jh9EXHhZC5LAB7xFHqeFIXXT/fJmNqtqugKzAYHM4HgO8fz3hRcQRkGkCdO+EprzG+x2 u8IXVTbz47D0WMqtXK93pO0v7kk1WL+B1vflxtRZVBxCGPHPuLfZ5ZtlA8m2JF/d7p3G lPQA== X-Gm-Message-State: AOAM533G1bWwgkX5ddnBR/cPZUiiQGxMNzwlE3J5RRCvnW8FThsOPbnp ZwVkzMLRNoi6D0nXmtofW4j5Ze4CT9BqvayUpYA= X-Received: by 2002:a05:651c:1193:: with SMTP id w19mr3110192ljo.264.1623419475775; Fri, 11 Jun 2021 06:51:15 -0700 (PDT) MIME-Version: 1.0 References: <1617809456-17693-1-git-send-email-yibin.gong@nxp.com> In-Reply-To: <1617809456-17693-1-git-send-email-yibin.gong@nxp.com> From: Fabio Estevam Date: Fri, 11 Jun 2021 10:51:04 -0300 Message-ID: Subject: Re: [PATCH v14 00/12] add ecspi ERR009165 for i.mx6/7 soc family To: Robin Gong Cc: Vinod , Mark Rutland , Mark Brown , Rob Herring , Catalin Marinas , Will Deacon , Shawn Guo , Sascha Hauer , Martin Fuzzey , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Dan Williams , Matthias Schiffer , Schrempf Frieder , Marco Felsch , Clark Wang , linux-spi , linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Sascha Hauer , dmaengine@vger.kernel.org, NXP Linux Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robin, On Wed, Apr 7, 2021 at 4:15 AM 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. > > PS: > Please get sdma firmware from below linux-firmware and copy it to your > local rootfs /lib/firmware/imx/sdma. > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma Without this series, SPI DMA does not work on i.MX8MM: [ 41.315984] spi_master spi1: I/O Error in DMA RX I applied your series and SPI DMA works now: Reviewed-by: Fabio Estevam Thanks