Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3759268imm; Mon, 4 Jun 2018 08:49:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJP4SAiQMYOsgmXLRK3CmrTDVFcqFoz3zDxD1Aq3IqT7+vYV5mxS1X41BMCTMA0hscygpYi X-Received: by 2002:a65:5a88:: with SMTP id c8-v6mr17254787pgt.287.1528127347151; Mon, 04 Jun 2018 08:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528127347; cv=none; d=google.com; s=arc-20160816; b=hE6HVSpqf1tf+Gi2LwH9XxU7x4ZZUKB0gvJqAuAapxEqyJpkLWifKZHBI8ljRAKsT7 1xPBgUgih+7LcaShHiVy/vmdLO7pcEUV+4WSsmMzzE9NwHoyVL8K77WmKjWPw58lmfq7 iLMzQpqmG6D8OyCDy8ThEIbtXmIABOwDUkVLUQuFTNeBv6GbMKgaXIWXxs8++9fTQ/Qq O34R0dG5TH57QfG8XQfRxl+fgrAYgDMtY2DtQXiXa5RVCV7khR/ahQ1w/d1YTdOEctig KsE3IwIPEHTrzsG1bSeQeP3bhdYrgi6yPj0ulvidlHXNHE0z5r3B+bjro3F8AyIM8BJ7 hKeA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=u6fr3KjDXg2A1UlwTiJ8ARNNC+WbpGNUzlPY17dkMJQ=; b=sFFUgqEPJOvLOUvhUM7B/JirafakMY97qS43wTvbivLkaQp/0EjmmJ7YjuxTRhJERa gNCphk7zMV6g2oW/d1j1eCoLFJZoapoGT/9oxvcdYjnJOjaah4vaGejMffnGXGPtZy7w S60fa5DKTkuzKiD413xIYypfhhyvqJOOOgPaHGFEGen+LUa9YLQOZbssLPH5Wszptb+G guoNcrq60A1SM3OeZ9YsmQSCouTJbmGlf+z+HOrKf6/CodVWUj3RD24P26i9zMd0gAb1 q1HLChEMmWGzwBE0b0ZRsk9DgzL5XTq2JUupsCpS2/grQ073FcjOiahWwT22o+DRNC4l pDUg== 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 r17-v6si20207531pfg.305.2018.06.04.08.48.52; Mon, 04 Jun 2018 08:49:07 -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 S1751393AbeFDPrC (ORCPT + 99 others); Mon, 4 Jun 2018 11:47:02 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:31984 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbeFDPrA (ORCPT ); Mon, 4 Jun 2018 11:47:00 -0400 X-IronPort-AV: E=Sophos;i="5.49,476,1520924400"; d="scan'208";a="14833495" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Jun 2018 08:46:59 -0700 Received: from localhost.localdomain (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Mon, 4 Jun 2018 08:46:58 -0700 Subject: Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma To: Peter Rosin , Nicolas Ferre , Ludovic Desroches CC: Alexandre Belloni , Marek Vasut , Josh Wu , Cyrille Pitchen , , Boris Brezillon , , Richard Weinberger , Brian Norris , David Woodhouse , , Eugen Hristev 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> From: Tudor Ambarus Message-ID: <28c58ca3-d8ca-7195-3aa2-10d7c703dd65@microchip.com> Date: Mon, 4 Jun 2018 18:46:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) - LCDC to use master 8 (slave 8 DDR2 Port 2) and master 9 (slave 9 DDR2 Port 3). Best, ta