Received: by 10.213.65.68 with SMTP id h4csp2763673imn; Mon, 2 Apr 2018 13:37:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/m5hEA9XcGpPocGKxgxJwRUDETG+OEUc0VTl+MIpzwiZYGofC7zZnXWv2Uhk6QRvynDvGj X-Received: by 2002:a17:902:28c3:: with SMTP id f61-v6mr11230535plb.114.1522701457622; Mon, 02 Apr 2018 13:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522701457; cv=none; d=google.com; s=arc-20160816; b=h3vlkCks+KovTEY+fbli+oVZMXEtBkXODON84q1jxuPudU9FuV2dtp/KlYNQyoh0F9 E2zn4HX3mlQJ4CU8ZTEdndLdv8ZnwESnTW7O1+oXFAjg64soZ9z6gYYmvqdi25WnMvhZ /UVTGSTlxPGCGXmEKxMXUWq9aQ8zXV+64QCfM66SKTc1oGm7d3/SK/1Va7iLW1HTi/3D d+3LSGVDtWNA7ij9c+7/4X3WXcU8XBAg2C2s6wkMJm1pbnWFJ+dyjrau5u3S4eFoUVIn 5mrtb+ufvNOzEm95yLnDP5v3UKqXpHb7qjlAX46Xrx5OpvWgN3L9du/84NZ9XFjbACx8 XMEQ== 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=WPVF8T7570wJxGyVZAXVfzQC6s+/FmHI/PgtbGxhfvE=; b=ntxE9jKDysnJgX/RLkVs5W0baUDueh3HjucBIKmyP44L+SIM2R3hgYY8rPMFeEAmgf csw4dra8iTCws8UUVJ95HMJfFOd905enuOUm/jU7OLcqjXPrBFVKK25QV1s0lwQsabPZ oz7QMEvDKjp81hDJFXQBtmlx3UasrLcUTH4z0kVeQmRoCiRyaGVWj30a5GfUF801InQx P3rov1cfP3sEf6rZdSPDnYqIsHGQz9FMDf7up0bWAnQvGjBqefEisbGjpSE6TSGm2QGf 1T+RrYKQvG4jq24czzQNECq5b263F9LmvmerrSCmQqYLnqeRuevq6jyP3HR8VlU0UteB dMIA== 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 y40-v6si1101808pla.367.2018.04.02.13.37.23; Mon, 02 Apr 2018 13:37:37 -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 S1756790AbeDBUfw (ORCPT + 99 others); Mon, 2 Apr 2018 16:35:52 -0400 Received: from mail.bootlin.com ([62.4.15.54]:58577 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756412AbeDBUfv (ORCPT ); Mon, 2 Apr 2018 16:35:51 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 0329720713; Mon, 2 Apr 2018 22:35:50 +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 A74B820384; Mon, 2 Apr 2018 22:35:39 +0200 (CEST) Date: Mon, 2 Apr 2018 22:35:39 +0200 From: Boris Brezillon To: Peter Rosin Cc: Alexandre Belloni , Josh Wu , Cyrille Pitchen , linux-kernel@vger.kernel.org, Nicolas Ferre , Marek Vasut , linux-mtd@lists.infradead.org, Richard Weinberger , 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: <20180402223539.6dff3f38@bbrezillon> In-Reply-To: <8e35701f-1bfa-c9c0-62e6-48ed19d7ba37@axentia.se> References: <20180329131054.22506-1-peda@axentia.se> <20180329153322.5e2fc1e7@bbrezillon> <20180329154416.5c1a0013@bbrezillon> <20180402142249.7e076a64@bbrezillon> <20180402212843.164d5d21@bbrezillon> <8e35701f-1bfa-c9c0-62e6-48ed19d7ba37@axentia.se> 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:23:17 +0200 Peter Rosin wrote: > > I don't use devmem2. Is 'readback' information accurate or is it > > always what's been written? Because when you write 0x33 to 0xFFFFECBC, > > 0x33 is read back, but just after that, when you read it again it's 0. > > Looking at the devmem2 source, it seems very likely that the compiler > optimizes out the read and thus outputs what has been written. Yep, had a look too, and it's missing a volatile specifier to prevent that sort of optimizations. > > >> BTW, how do I > >> know which master is in use for the LCD controller? 8 or 9? Both? > > > > It's configurable on a per-layer basis through the SIF bit in > > LCDC_CFG0. The driver tries to dispatch the load on those 2 AHB > > masters [1]. > > Ok, I only have one plane (in this case, i.e. no cursor, no overlays etc), > would that mean that only one master is used? Yep, it's always using the first one (master 8 on a sama5d3). -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com