[PATCH/RFC] MTD: Striping layer core

Thomas Gleixner tglx at linutronix.de
Mon Apr 3 02:04:42 EDT 2006


On Mon, 2006-04-03 at 08:06 +0400, Vitaly Wool wrote:
> Nicolas Pitre wrote:
> > IMHO striping NOR and NAND together simply makes no sense.  NOR and NAND 
> > are fundamentally different things when it comes to writing to them, and 
> > apart from evaluation boards where every possible peripheral can be 
> > found you rarely will find both NOR and NAND in the same real life 
> > design.
> >   
> Oh really? What about MP3 player-oriented design with NAND flash as a 
> main storage and NOR flash for kernel/userspace XIP etc?

Granted, but you can not mix the usage of those chips.

Functions like concat or striping can only be used with FLASH of the
same type. NAND and NOR are so fundamentally different it wont work
without some ugly hack around. There is no point to even think about
that.

Also striping on NAND is a seperate topic. Most new hardware designs
have NAND controllers included which provide e.g. hardware based ECC.
Most of the controllers I'm aware of are not really suitable for
striping due to their design. Also striping would require a fundamental
change to the NAND code, as it currently serializes the access to shared
hardware controllers. This seralization needs to be carefully redesigned
to allow striping and even then it depends on the controller and the
overall hardware design (most designs have OR-wired ready/busy pins)
whether it's possible or not.

I have not looked at the patch closely - and I will not until it is in
an acceptable form - but I have the feeling that the striping support
needs more than a bunch of hacks to the core mtd chip support if we do
not want to end up with a complete unmaintainable mess.

	tglx







More information about the linux-mtd mailing list