OneNAND: read-while-load (known problem)
Hi Adrian,
Quoted 1 line
Do you think there could be a problem with
onenand_check_bufferramalso?
No, onenand_check_bufferram & onenand_update_bufferram is right.
In DDP, actually there's 4 bufferrams
Chip 0: 0, 1
Chip 1: 0, 1
In case read from chip 0 to chip 1, first send command at chip 0: 0 or 1, next we also send command at chip 1: 1 or 0, repectively, in that case. second command will be failed.
To fix this problem, we add some code to check chip boundary condition in DDP. but it's overhead since there's no usage in current MTD
I think it is best way we send the read buffer with block aligned.
Thank you,
Kyungmin Park
------- Original Message -------
Sender : Adrian Hunter<[email protected]>
Date : Jan 08, 2007 16:47
Title : Re: OneNAND: read-while-load (known problem)
Quoted 25 lines · Kyungmin Park
Hi,
FYI: read-while-load known problem in DDP.
Of course it's rare case in MTD. and please don't program like this in upper layer.
If you are using OneNAND DDP (Dual Densidy Package) and you want to read data between chip boundary. you maybe failed to read.
For example, 2Gbit OneNAND DDP has following address
Chip 0:
0x00000000 ~0x08000000 - 1
Chip 1:0x08000000 ~0x10000000 - 1If you want to read from
0x07fff800 to0x80000800 (4KB). it will be failed since each chip has its own bufferram So it don't support read-while-loading between each chip.[Chip 0]
onenand_update_bufferram: 1 addr0x7ffe000, valid = 1
[Chip 0]onenand_update_bufferram: 0 addr0x7ffe800, valid = 1
[Chip 0]onenand_update_bufferram: 1 addr0x7fff000, valid = 1
[Chip 0]onenand_update_bufferram: 0 addr0x7fff800, valid = 1
-> Send next page read, but next page is in chip 1
[Chip 1]onenand_update_bufferram: 1 addr0x8000000, valid = 1 => Actually it's invalid [Chip 1]onenand_update_bufferram: 0 addr0x8000800, valid = 1
[Chip 1]onenand_update_bufferram: 1 addr0x8001000, valid = 1
Quoted 2 lines
Thank you,
Kyungmin Park
I think I see what you mean. It occurs to me that maybe onenand_check_bufferram has the same problem i.e. a different chip is selected to the one that we want to read from. Do you think there could be a problem with onenand_check_bufferram also?
Quoted 6 lines · Kyungmin Park
Hi Adrian,
Quoted 1 line
Do you think there could be a problem with
onenand_check_bufferramalso?No,
onenand_check_bufferram&onenand_update_bufferramis right.
What I meant was this:
1. Read page x from chip 0. It goes to dataRAM 0 in chip 0
2. Read page y from chip 1. It goes to dataRAM 1 in chip 1
3. Read page x from chip 0. Now the read incorrectly comes from dataRAM 0 in chip 1 because that was the last chip selected.
Quoted 8 lines · Adrian Hunter
Quoted 6 lines · Kyungmin Park
Hi Adrian,
Quoted 1 line
Do you think there could be a problem with
onenand_check_bufferramalso?No,
onenand_check_bufferram&onenand_update_bufferramis right.
Quoted 7 lines
What I meant was this:
1. Read page x from chip 0. It goes to dataRAM 0 in chip 0
2. Read page y from chip 1. It goes to dataRAM 1 in chip 1
3. Read page x from chip 0. Now the read incorrectly comes from dataRAM 0 in chip 1 because that was the last chip selected.
Ah, I see now, onenand_check_bufferram only checks the current dataRAM so it won't have the wrong chip selected. Please disregard previous email. Sorry.