[PATCH 1/2] mtd: mtk-quadspi: add support for memory-mapped flash reading
gch981213 at gmail.com
Thu Nov 7 07:34:49 PST 2019
On Thu, Nov 7, 2019 at 9:23 PM Yingjoe Chen <yingjoe.chen at mediatek.com> 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.
More information about the linux-mtd