Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1920476ybx; Thu, 7 Nov 2019 19:53:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxQ/OaDK7Tu/t7JtVvAkNxlc5pkl9w+VcqKkp4pBc6/lwPpOj5n81G/1LZu/llJ8H1VOe9R X-Received: by 2002:a50:c30d:: with SMTP id a13mr7823328edb.177.1573185203513; Thu, 07 Nov 2019 19:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573185203; cv=none; d=google.com; s=arc-20160816; b=un1diyQSDP7/SIahoYC/F0xHZDuot97O2YcziQvLbrwxxAAj1wGEACxxU0XYXU0VJf K7atElXoWsVgJYqowLW17tkhH5pLrb1msZO4QHk3zYPN+Ah6ndGad+5dVXnzswgo3cpM UBMWj0pO2AfUpCzw+elkKkPaRMQ1kbWc69o4h4boiEsD8P0lyBeLQgD93Gds8yL6Wa3L goEbRhlXwiHpVv8n//w0BQ2hDK3U6A/4IpcVLrFeBmmTVO/7q7Xv7trHesW3/C+9kOkC GE4h6JiNQ9hJ6rDDzOr2FY4KLS4gva97PNbxZlj4NS9qsZqizYTHopBRpWYOpW38l8/e pRXw== 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=aivP/GpZ1KGYpMt8cndt6JZJWRBCraXZuvgFzKajp8o=; b=g/5Y3E1AlQrD3xAOfSW+cvzowUVzzbEU//shgaJ7tDq/NFWsPSErWHeNPbscrsUKfo DKCLDfF2IPNi4eBOPrnQ62injhxbxI71SiFuH5N4/eEtS0gaF8tJBYALLG6aRmZJdDEF lj+SGtPop3uexdROOkqSaskO7tFIBUgYoil1Ii4sR7BzM5Jkp0SlyrLK5Fjk3+5AWCxR UR4mYQVRgXTJxYXlJkouVExGJtyNojGplkfzdnoxSnzJq2NZVikvsc7xNdFGKEiKJEVw C72E/eoHI+VFB4sBOoD1N6lNjW3zZxJRDDibbNycuYGF+u26RxfE3VDawSWSUaCQ9IOh mC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UhuzaXhw; 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 o19si429241ejj.307.2019.11.07.19.53.00; Thu, 07 Nov 2019 19:53:23 -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=UhuzaXhw; 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 S1729823AbfKHDwT (ORCPT + 99 others); Thu, 7 Nov 2019 22:52:19 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:36739 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbfKHDwS (ORCPT ); Thu, 7 Nov 2019 22:52:18 -0500 Received: by mail-ot1-f65.google.com with SMTP id f10so4070365oto.3; Thu, 07 Nov 2019 19:52:18 -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=aivP/GpZ1KGYpMt8cndt6JZJWRBCraXZuvgFzKajp8o=; b=UhuzaXhwh4V4OtCNmi00QRY7QIuJNsZY7XkdW++ynVvUV5ipDE+Txo4OVE1lAYeXVp HFYurymY/b4axShJS4pi96a4cDFg4XsaEAZuzSDazYZ+xkUuSVfOz7gDMMS5FuNx1I52 4pYCYZIKgFb3PDPoZZoQCegxROP3vtLnD5FWU6EWJ4Ay3Fb9bzqhklkrt9EDA4BgpJSL c3X+TIxl0VX21P7JcSN9qfbQ/2nYxRjh79ikAkYQdFlM/5vRUJdU+SDSV4Ga1sN6DW1w InJb+twr0pq9RiCBWOzBp65fPHyJ4wySAymr2YrkSBU1ZtY0cqzuqo6sAfLmA3aY/keC 89EA== 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=aivP/GpZ1KGYpMt8cndt6JZJWRBCraXZuvgFzKajp8o=; b=nAaV0g10CaQfo9GeVc1AFHv63etf3orQFykrwanD+UuJQkkc/hmi3/yV0Eto8nIevk em6OSxsxvJ/0p5xc9sTIMYSW5cZmDy4WR16SpINoFAe9bmkdZgaRVfNcW+cJ7PN8uYNI MeOcNK776GUGeRe/gODmI97gkTakGZp7PnhQFyayW7d1dEZ+EYqpeYotT4keuScQesZE Kjh4Nlgg2NTDfn8vK+m4xoBdZhgRV9mAtB4o2LtOhx4c8zE/RPjefDDN2f0xg0PkM3F1 N9734Cw89jQ1itrCvQn1WF563f1wtfTTC865IpJHYLHT5wxFhDPpmOm3hzwk81We3ba2 voUw== X-Gm-Message-State: APjAAAVetQz8ybsqOZnSyaw96pH0aoLQkwGUNMmEg8ZSE/udFY10fVPg jSg40GlLgNp3Ql8gDvJ5XFjhs6RZ2iwCtrpZc20= X-Received: by 2002:a9d:39c8:: with SMTP id y66mr6154192otb.181.1573185138031; Thu, 07 Nov 2019 19:52:18 -0800 (PST) MIME-Version: 1.0 References: <20191106140748.13100-1-gch981213@gmail.com> <20191106140748.13100-2-gch981213@gmail.com> In-Reply-To: <20191106140748.13100-2-gch981213@gmail.com> From: Chuanhong Guo Date: Fri, 8 Nov 2019 11:52:06 +0800 Message-ID: Subject: Re: [PATCH 1/2] mtd: mtk-quadspi: add support for memory-mapped flash reading To: linux-mtd@lists.infradead.org, Yingjoe Chen Cc: David Woodhouse , Brian Norris , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Mark Rutland , Matthias Brugger , Tudor Ambarus , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, open list 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 all! On Wed, Nov 6, 2019 at 10:08 PM 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 > > Signed-off-by: Chuanhong Guo > --- > drivers/mtd/spi-nor/mtk-quadspi.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > I'll abandon this patchset and implement DMA reading instead. Regards, Chuanhong Guo