Re: flash read performance

Arnaud Mouiche
2008-10-30T08:34:04Z

Hi,

I was faced with the same wondering in the past : bootloader NOR access
was really much faster that Linux one.
Yes, no DMA was used (but the same on bootloader, and anyway that
doesn't impact the data rate, only the CPU load), but even worse, Linux
code was using memcpy_fromio which a basic byte by byte loop copy in the
default ARM implementation.

May be your issues are the same...

Regards,
arnaud

Andre Puschmann a écrit :
> Josh Boyer schrieb:
>
>>> In my opinion the read
>>> performance is very poor, only around 1.2 to 1.4 MB/s depending on the
>>> blocksize. I think it should be possible to get much higher transfer rates.
>>>
>> Why do you think that?
>>
>
> I guess there is something wrong with the timing parameters and/or the
> way the CPU core speaks to the flash controller, which results in long
> wait-states.
> But at least for my understanding, these transfer rates have nothign to
> do with _high speed NOR flashes_ :-)
>
>
>
>> Why do you think that? The chip drivers don't do DMA, so all I/O goes
>> through the CPU.
>>
>
> Yes, DMA is not used. However, the CPU should be strong enough to do
> this transfer faster. On the other hand, my understanding is, DMA brings
> no speed improvements in all cases. It boosts memory transfers without
> adding an extra overhead to the CPU. But in this case, copy data is the
> only task.
>
>
> Regards,
> Andre
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
>