Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1124230ybx; Thu, 7 Nov 2019 07:37:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw0jEfNuwG1RAcDXtbHPA16LOYT7nCCkd0Tluh4qJgKlgeph/Fy93vADeWOwtsJtZwFJn5P X-Received: by 2002:a17:906:f1d9:: with SMTP id gx25mr3613018ejb.156.1573141025805; Thu, 07 Nov 2019 07:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573141025; cv=none; d=google.com; s=arc-20160816; b=TyxyEyZ2BDuJJhgItIgY7WdAUxBQmq7dnETitVuira+hQuQ35J0fn3c3I/nLEyLRRo EEDYiawcUx1reOaN/i8XO8pAIymlSfoUiBFFHCf3+duCD4/j1s8kTAkhWUyRmv18zh9M CSW74Wgpg43RyAW5Mb9b4h5kwOVc9MYM1OJqCir9XahK1GGEPPqwZh0dZo4WTNApeBCs Y8pUiedJKRjSdaQmGzaHvtdCR9ksb68DtpgvNUXU8POtyQbT+t8QyabovSiczhO/h2Sd 0NvInJjKWeQ2pnNSMsedB11pcGSAdAq7XdSl9Q1xol9FFNwa9zdExipRZ1pkZdTtZwr6 gJAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w4Awp6aOhgxlUbwSvEpd03sWLJcXbVuHqaesNRPrPJo=; b=FQqXyTTlIP3Pv+SZq3Wfvb0YGr7y2ssuSUQ7h7nowuua33B3iPrBTOsu0ZKiNbS3Gj 3nTM747zdXiELbE4yXXkvkO+27Db2sFhOdcs5XWGJJhHYtoXkfjCrok9YAO4+7Xh8nxm u5HPyhwrVjd3VDCBaKj5hRQyI6E58y0iOSC86BR1+f/kvL1qw1gkkyjR0onEji3aP6WB qsi46LiaxObqCdBLWZkq4cDMO4jTqBF1tHzxy4cn2e0yjGI9jJOpZhL8TKktuIoIDJTz 49hnabSHiQdVfvY4YxzxOLKXQE+QoFv/dSA+kIrnL4dEr6Cc+u0eEBpyT9ilQCDOe2Jp lLhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ijCUyc5i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si1875912edx.315.2019.11.07.07.36.42; Thu, 07 Nov 2019 07:37:05 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ijCUyc5i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389262AbfKGPfE (ORCPT + 99 others); Thu, 7 Nov 2019 10:35:04 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42168 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389213AbfKGPfD (ORCPT ); Thu, 7 Nov 2019 10:35:03 -0500 Received: by mail-ot1-f67.google.com with SMTP id b16so2356941otk.9; Thu, 07 Nov 2019 07:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w4Awp6aOhgxlUbwSvEpd03sWLJcXbVuHqaesNRPrPJo=; b=ijCUyc5iys61fP5qEnvqB8BCmoBcDMao3mCulvGbWvgt55dkkYzlQq0oJND3XvRnBi YX/rX62aJZPdsgNa5wqocPqqKdiY4uUUBqLXVdkOVPvGzrCzQWan6hlUDPEy6m+8yrx/ ryzXIA6mflIgSgR//YvsyL1BcQ/3ElJPQwUxHHpuzOgUDRau5Aho3VfkvjiXUhq/UMSo L2QLyWG0HdNqsrpkzuBewcFBc4q3C6WsFKch57Su8Q3AFKl/WCGb1LZSgIPs7q2NFUaJ COtnVEMPQS6kzIgp3u/4H2p1rCrdZu6XeNJqzALe+E896Lw+1OuBmqf8O38BJwTTKygZ XYIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w4Awp6aOhgxlUbwSvEpd03sWLJcXbVuHqaesNRPrPJo=; b=a5MPQazJJ7QIqCIpfFY4BzZFlvBIVxsYxB7SjgzFO39oNvuqDnQuaQim/xg0amF8p5 FIXski+SiTBuKgolhYmlKCAEcZuW+ghvz6nC0FVDfp9O3hhs2hWD6jv7iuGWBGWff8Gf es1thO3fysPJ+Jv7GULytk/iQd4eTM6paHNI1f5CP966moUGEVI14t3tk0Qi/i5Q7f13 O18cwUufQEXrsrTWum1IDkoYFl26imNkOBGJXi4q4/PADENNRwrMo2yULHhRqNoiOraS tWACPEguxTiAzU/OVuZmHuu/Z7kXDQs3rg0lqHtB9oUMbB2tS/NlLSUxpZHg+5uMAfe+ rztw== X-Gm-Message-State: APjAAAWx+w1Vl7s/jpLBi+KDiKnotyBZCK5J93aSpsVOgojibSgHTkCr vNl1R8oycCGS+MLebsQbdJezqzU5rHhvdeL1Xjo= X-Received: by 2002:a9d:1b0d:: with SMTP id l13mr1540580otl.84.1573140903023; Thu, 07 Nov 2019 07:35:03 -0800 (PST) MIME-Version: 1.0 References: <20191106140748.13100-1-gch981213@gmail.com> <20191106140748.13100-2-gch981213@gmail.com> <1573132996.8833.3.camel@mtksdaap41> In-Reply-To: <1573132996.8833.3.camel@mtksdaap41> From: Chuanhong Guo Date: Thu, 7 Nov 2019 23:34:49 +0800 Message-ID: Subject: Re: [PATCH 1/2] mtd: mtk-quadspi: add support for memory-mapped flash reading To: Yingjoe Chen Cc: linux-mtd@lists.infradead.org, Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Vignesh Raghavendra , Tudor Ambarus , Richard Weinberger , open list , Rob Herring , linux-mediatek@lists.infradead.org, Miquel Raynal , Matthias Brugger , Brian Norris , David Woodhouse , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Thu, Nov 7, 2019 at 9:23 PM Yingjoe Chen wrote: > > On Wed, 2019-11-06 at 22:07 +0800, Chuanhong Guo wrote: > > PIO reading mode on this controller is ridiculously inefficient > > (one cmd+addr+dummy sequence reads only one byte) > > This patch adds support for reading from memory-mapped flash area > > which increases reading speed from 1MB/s to 5.6MB/s > > This may not be true for all MTK SoC. Which one are you testing? > I tested it on MT7629. There should be a 5x reading speed increment under DMA or direct read mode than PIO mode because PIO mode needs 30 or 36 clocks for every single byte of data while DMA or direct read only needs 24 or 30 clocks for initial command/address/dummy and every byte of data after that only need 8 clocks. Regards, Chuanhong Guo