Skip to contentSkip to conversation

nand driver bug?

DISCUSSION Dmitry Konyshev 2 participants 4 messages Apr 14, 2004 – Apr 15, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi everybody,

The driver happens to fall in BUG in nand_select_chip when writing
the last page of a device. It's trying to select_chip in nand_write_ecc even in case there's nothing left to write.

wbr, Dmitry.

#1 lore raw
Quoted 5 lines · Dmitry Konyshev

Hi everybody,

The driver happens to fall in BUG in nand_select_chip when writing
the last page of a device. It's trying to select_chip in nand_write_ecc even in case there's nothing left to write.

Yep, you're right. I noticed this already and fixed it, but did not yet commit it, as I changed a lot of other things.
Should be fixed until tomorrow morning

Signature · 8 lines
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]
#2 lore raw
Quoted 11 lines · Thomas Gleixner
Quoted 5 lines

The driver happens to fall in BUG in nand_select_chip when writing
the last page of a device. It's trying to select_chip in nand_write_ecc even in case there's nothing left to write.

Yep, you're right. I noticed this already and fixed it, but did not yet commit it, as I changed a lot of other things. Should be fixed until tomorrow morning

Any changes should be done in boards' drivers? Fresh CVS version oopses in nand_scan.

wbr, Dmitry

#3 lore raw
Quoted 11 lines · Dmitry Konyshev
Quoted 7 lines · Thomas Gleixner
Quoted 3 lines

The driver happens to fall in BUG in nand_select_chip when writing
the last page of a device. It's trying to select_chip in nand_write_ecc even in case there's nothing left to write.

Yep, you're right. I noticed this already and fixed it, but did not yet commit it, as I changed a lot of other things.
Should be fixed until tomorrow morning

Any changes should be done in boards' drivers? Fresh CVS version oopses in nand_scan.

Yep. I'm writing a short summary at the moment.
Please check the changes in autcpu12.c

We need one additional buffer. The size is oobsize * pages per block, e.g. blocksize 16384
pagesize 512
= 32 pages per block
* 16 byte oob
= 512 byte buffer
The pointer must be set before calling nand_scan

Signature · 8 lines
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]