Received: by 10.192.165.156 with SMTP id m28csp878845imm; Wed, 11 Apr 2018 08:38:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+GB/Ig1nPm75xl5u+2JqMllqIeJHppIn2M3QXt0li16WdCjw/oCYVDIvOYGMiqMS2i27Kp X-Received: by 10.99.100.6 with SMTP id y6mr3823208pgb.254.1523461111376; Wed, 11 Apr 2018 08:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523461111; cv=none; d=google.com; s=arc-20160816; b=thYWgDdJ2TAI+hRH2qYPCEr8dURcc/1zMFu3XemWl2ydz7kK/2gnusyS++mAAiqpM6 epNGmjajBadgPvUaddz77Si52AKT87K+XXDlnBvL5HPi8v4Ji6j6QswWPr3CGXx/Gr9E L/nu3w9Z3NEl0IuInBj+p3oMkJpJ8TcA1G1qD6Ef9JRLr42MZFlQgum+gLO8HYo/k0G+ z7zzu3aV5Ldw5go9+WWE18YQC/wrGdV41UKE+5uwTm8zIzojqTabn3hPjAL/X1Bgkq9W /SO2fdwDM6OoWbRsQjDJRawR+1Zt7F5VOO2jnL/fzW1qBKi/ABymhNCakz8CLCwypOmg WnZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=u951e2d++lWqKke+nJ/hgUkrZFXGOR2hBLffBlhhOt4=; b=Jv6Ap3QyciUYyG5OijHEPvp9Qs01cwAcJ4XL9ZJKctNX8kYsPpk7sIy8TtBvyDWMlr r4Y84DmpeyQtsBeM39KhfTky5+czJiqHUXlfBX1IG1hYnvDbmJFY9fckyuL/TNXlJHcH SEPJCuxRxlbhv2A7snkq7/DF+1EiVSvR3NNBGjwIrPz77Sp708gnIyI0KMuPbC5jHmF9 36cCZx/cvXpKawTXju1J3p5C6oiu2GGoPKkv7cHRKY3NkWM79eX+zXTxcmvsajugICPH YQOgWr30j0z0NIbYgwDq9Ih+fd+1H+HuorLKWbWR7mK8gc42v2QSi6bV2f/8rn6y8RuH YuWQ== 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 o64si969843pfb.245.2018.04.11.08.37.54; Wed, 11 Apr 2018 08:38:31 -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 S1753425AbeDKPeQ (ORCPT + 99 others); Wed, 11 Apr 2018 11:34:16 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55572 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752211AbeDKPeO (ORCPT ); Wed, 11 Apr 2018 11:34:14 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6889D2072F; Wed, 11 Apr 2018 17:34:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 13D5020723; Wed, 11 Apr 2018 17:34:13 +0200 (CEST) Date: Wed, 11 Apr 2018 17:34:11 +0200 From: Boris Brezillon To: Peter Rosin Cc: Nicolas Ferre , Alexandre Belloni , Richard Weinberger , Josh Wu , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Cyrille Pitchen , Brian Norris , David Woodhouse , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma Message-ID: <20180411173411.201765ee@bbrezillon> In-Reply-To: References: <20180329131054.22506-1-peda@axentia.se> <20180329153322.5e2fc1e7@bbrezillon> <20180329154416.5c1a0013@bbrezillon> <20180402142249.7e076a64@bbrezillon> <20180402212843.164d5d21@bbrezillon> <20180402222020.1d344c14@bbrezillon> <20180403091813.5fb5c18c@bbrezillon> <20180411165925.2be0d45b@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Apr 2018 17:10:43 +0200 Peter Rosin wrote: > On 2018-04-11 16:59, Boris Brezillon wrote: > > On Wed, 11 Apr 2018 16:44:10 +0200 > > Peter Rosin wrote: > > > >> Hi Nicolas, > >> > >> Boris asked for your input on this (the datasheet difference appears to > >> have no bearing on the issue) elsewhere in the tree of messages. It's > >> now been a week or so and I'm starting to wonder if you missed this > >> altogether or if you are simply out of office or something? > > > > I was wondering if you had given up on this problem, it seems you did > > not. > > I have my local patch to disable dma for the flash, but local patches > are always a disappointment. I understand that. > > > Did you try forcing the HLCDC to use the 2nd interface (ahb_id=1) > > instead of the first one? > > Just tried, and it's better that way, but the problem still exist and is > very visible on some (but apparently not all) flash accesses. Then your problems are unlikely to go away even with the priority adjustments because the DMAC do not use port 3, and priority stuff are only useful to enforce priority between masters accessing the same slave. I guess the real limitation comes the DRAM link, and asking the CPU to copy data from the NFC SRAM to the the DRAM is probably slowing things enough to let the HLCDC go through with its data transfers. Or maybe it has to do with the CPU data caches that are not immediately flushed to the DRAM when you copy things through the CPU.