Received: by 10.213.65.68 with SMTP id h4csp2762074imn; Mon, 2 Apr 2018 13:35:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Tr0YeJeWcKGzD52YmCVoV6kNicYIY5eMU79paS0j7omVRK+tT2OJIC6A8pwH7ggIQyGva X-Received: by 10.101.83.7 with SMTP id m7mr7178483pgq.1.1522701335978; Mon, 02 Apr 2018 13:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522701335; cv=none; d=google.com; s=arc-20160816; b=Ykriszl7gkBOwt07vwA0qAsyLtCUrqEM7GAfUASsQ/vQW59e0dOW10pb2LpuqEfqzt 1xZMFz/GRpHckc+zcZIh5IIy7MAzYQUH6gIF1ibKHNZdNk2EQ9jSJxBCL2cxoQXu/CGZ pOtCOKy+S0UloT6l3wp/dmFHpjdaeFRtlksdSTkGZXZkAA5SVurJz/fzsUF8tMQTDYru avYfDfOGjcFpLEy7W5CAfM+Yh8eAEqMto0XmsiCKCnAl0miclY1K3AMPqEnpVekAcWy7 GllodUQz1RcpOXQ0gqlYWqIapeWkKb4rbNnrNc5vBvavnh9BCv4S9xearYpFCwsU56// 4pNA== 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=h9mc7QkLwDW7y9yrZuUE9nFBQ3RbmuLsIn81YJrjcHQ=; b=o0LkIxBi730g/3AVxMxNDmIFvT75K7ScoDvvoyv5ezB9CiasIWx5eIbHZ5uaAYDHe/ R7KGqFRX6X+h3jHyIOYk04NEJJAJ27pbkrHuwpThmruR5A1ctOA3aj6tg2M3W3c2Imr9 RgUcnt8Kr049R64IYD29Xp6UKUn2QG2+YmH+LT6D6xPZVTFYkSV+P/gCMBSOvg0mSx+z 7OV7p5e4XypAMaFAuqkfcXnTFrpmbfrScToM7fMVQ5+F9SzhHMCMmGvj80jpr7ot3eDq X1U0SxbL7BGwba2zfX/Dcjd1mhrcR++Qdqh7uhOuYZVtHmhvzNcMfQIK2Pyfh/etpJYb iTIA== 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 z22-v6si1109033plo.270.2018.04.02.13.35.22; Mon, 02 Apr 2018 13:35:35 -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 S1756791AbeDBUcp (ORCPT + 99 others); Mon, 2 Apr 2018 16:32:45 -0400 Received: from mail.bootlin.com ([62.4.15.54]:58464 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756412AbeDBUco (ORCPT ); Mon, 2 Apr 2018 16:32:44 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id AE4082075F; Mon, 2 Apr 2018 22:32:43 +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 (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 62EC220787; Mon, 2 Apr 2018 22:32:33 +0200 (CEST) Date: Mon, 2 Apr 2018 22:32:32 +0200 From: Boris Brezillon To: Peter Rosin Cc: Alexandre Belloni , Richard Weinberger , Cyrille Pitchen , Nicolas Ferre , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Josh Wu , 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: <20180402223232.6213f409@bbrezillon> In-Reply-To: <20180402222020.1d344c14@bbrezillon> References: <20180329131054.22506-1-peda@axentia.se> <20180329153322.5e2fc1e7@bbrezillon> <20180329154416.5c1a0013@bbrezillon> <20180402142249.7e076a64@bbrezillon> <20180402212843.164d5d21@bbrezillon> <20180402222020.1d344c14@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 Mon, 2 Apr 2018 22:20:20 +0200 Boris Brezillon wrote: > > > > > And > > > which DDR slave is the target? 7, 8, 9 or 10? More than one? > > > > This, I don't know. I guess all of them can be used. > > Looks like I was wrong. According to "Table 15-3. SAMA5D3 Master to > Slave Access", LCDC port 0 can only access DDR port 2 and LCDC port 1 > can only access DDR port 3. > > Can you try to write 0x3 to 0xFFFFECCC and 0x30 to 0xFFFFECD4? > Oh, one more thing. Changing the priority won't necessarily solve your problem because of that: " If more than one master requests the slave bus, regardless of the respective masters priorities, no master will be granted the slave bus for two consecutive runs. A master can only get back-to-back grants so long as it is the only requesting master. " To solve that, you'll have to play with MATRIX_MCFGy.ULBT (make sure DMAC0 and DMAC1 have a small enough ULBT that is not 0) or MATRIX_SCFGx.SLOT_CYCLE (that one is probably harder to get right since it's expressed in AHB clock cycles). -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com