Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3778107imm; Mon, 4 Jun 2018 09:05:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKPgRtFD1ZqJtORyjIcmDBLzJMhgs22eQ8Cuw04S9l00kDyLNMNMPB1E11hqRwr7cuhizRa X-Received: by 2002:a62:4d02:: with SMTP id a2-v6mr21831075pfb.2.1528128310496; Mon, 04 Jun 2018 09:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528128310; cv=none; d=google.com; s=arc-20160816; b=EqfyyvEWsoWcnaYxfW/Zu7qBUI3AX+4uHGyhdxoPAtgAQ3n9cwPgi0as3W4AofCAbM wnP9iB69JMEgUaS0HF+tD4Isz1ZieWsV/A5IQbGCR2WqE2iq55YEj+aFpJB21LO19YWG hdxT9nk6EwVAYJmkYxz7JU1UUG5y+WkirXF0GCh0YQqXBKMTebhX0t622oLUbMThK35K gsPG+rWM8rbdt3g0FhW+Y+fAap3mo/al7ZlD3qiUkSoDpIn8sQpNVM6NCg70sjoowtxW sVcl75q2GeZklHkaq5iQC0+Y4z3Oa8UwxjskFG1FVESD2SeacVkblB7uqYAGpxUkdBU/ yKwQ== 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 :followup-to:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=YR/FQGOTrXCBLN1VknM9a0N5anJKtJYHhrt0xcqT9/E=; b=tgT2fajpVVs0nkVgrK9GFfej4I7ZF/5xd8hjScG2re5h1h1dVVWGxCB0i0s+G/YzqX +S/tcGYEIvHXAt0tamn+uGckooDhKyvx0Rq/h9pgxCcDynby6TZjb7PN/uIdpDmQaD93 FRz5J8ikqbD4u5lrNY6LlibCWk9CM1LeumyHhVTLL0r5bfnmVFWEwb/Ufqv7Eb+WGL2B pMss+NzTMF9rsVrk0FQuHTK5LvPdxua9K32B2yPnOse/I1vMGCmLzR4BDWRAa8LVBx0c ZvpSlmJN0etsPp5hSLrMk25YFWN0LZ0yn+BzSumWqtL2fxD/gmdxbhBjCP1G8iLP+RXP y7UA== 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 i73-v6si17990985pfd.117.2018.06.04.09.04.55; Mon, 04 Jun 2018 09:05:10 -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 S1751532AbeFDQDe (ORCPT + 99 others); Mon, 4 Jun 2018 12:03:34 -0400 Received: from mail.bootlin.com ([62.4.15.54]:53893 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbeFDQDd (ORCPT ); Mon, 4 Jun 2018 12:03:33 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 83C4520733; Mon, 4 Jun 2018 18:03:31 +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 shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-125-111.w90-88.abo.wanadoo.fr [90.88.63.111]) by mail.bootlin.com (Postfix) with ESMTPSA id 261D92069C; Mon, 4 Jun 2018 18:03:31 +0200 (CEST) Date: Mon, 4 Jun 2018 18:03:31 +0200 From: Boris Brezillon To: Tudor Ambarus Cc: Peter Rosin , Nicolas Ferre , Ludovic Desroches , Alexandre Belloni , Marek Vasut , Josh Wu , Cyrille Pitchen , , , Richard Weinberger , Brian Norris , David Woodhouse , Subject: Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma Message-ID: <20180604180331.67299cc3@bbrezillon> In-Reply-To: <28c58ca3-d8ca-7195-3aa2-10d7c703dd65@microchip.com> 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> <959d826d-1a98-ca22-acee-a4548427fcd3@microchip.com> <024079cb-77ad-9c48-e370-e6e8f2de171b@axentia.se> <9c496531-f7b6-4b9d-dd51-0bfb68ead303@axentia.se> <28c58ca3-d8ca-7195-3aa2-10d7c703dd65@microchip.com> Followup-To: Eugen Hristev 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 Mon, 4 Jun 2018 18:46:56 +0300 Tudor Ambarus wrote: > Hi, Peter, > > On 05/28/2018 01:10 PM, Peter Rosin wrote: > > [cut] > > > So, I think I want either > > > > A) the NAND controller to use master 1 DMAC0/IF0 (i.e. slave 8 DDR2 port 2) and > > the LCDC to use master 9 (i.e. slave 9 DDR2 Port 3) > > > > or > > > > B) the NAND controller to use master 2 DMAC0/IF1 (i.e. slave 7 DDR2 port 1, and > > possibly slave 9 DDR2 port 3 (if my previous findings are relevant) and the > > LCDC to use master 8 (i.e. slave 8 DDR2 Port 2) > > My understanding is that "Table 14-3. Master to Slave Access" describes > what connections are allowed between the masters and slaves, while the > PRxSy registers just set the priorities. What happens when you assign > the highest priority to a master to slave connection that is not > allowed? Probably it is ignored, but I'll check with the hardware team. > So I expect that the NAND controller can not use DDR2 port 3 regardless > of the priority set. > > [cut] > > > So, output is as expected and I believe that the patch makes the NAND DMA > > accesses use master 2 DMAC0/IF1 and are thus forced to use slave 7 DDR2 Port 1 > > (and possibly 9). The LCDC is using slave 8 DDR2 Port 2. So there should be no > > slave conflict? > > > > But the on-screen crap remains during NAND accesses. > > No conflict, but you missed to dispatch the load on the LCDC DMA > masters, if I understood correctly. > > So, I think we want to test the following: > - NAND controller to use DMAC0/IF1 (slave 7 DDR2 port 1) As I explained in one of my previous email, it's not that easy to set up, because the SRAM is connected to IF0, and we're using DMA memcpy here. Also, I don't see how it could solve Peter's problem if, even when he switches to LCDC master 9 for the primary overlay, he still keeps experiencing FIFO underruns. > - LCDC to use master 8 (slave 8 DDR2 Port 2) and master 9 (slave 9 DDR2 > Port 3). Except that only works if you have several overlays activated, which AFAIR, is not the case in Peter's setup.