[BUG] pxa3xx: wait time out when scanning for bb

Sean Nyekjær sean.nyekjaer at prevas.dk
Tue Nov 28 01:12:11 PST 2017


Hi Ezequiel

I'm currently in the process of doing bringup on a custom armada 38x board.
During the firsts boots of the Linux kernel we saw that the NAND driver 
throws a lot of timeout messages.

Like this:
[ 28.321054] pxa3xx-nand f10d0000.flash: Wait time out!!!
[ 28.521054] pxa3xx-nand f10d0000.flash: Wait time out!!!
[ 28.721054] pxa3xx-nand f10d0000.flash: Wait time out!!!

That lead me to investigate the issue and found this thread (quite old):
https://www.spinics.net/lists/arm-kernel/msg488581.html

In the thread some is describing a possible race condition when the NAND 
framework is scanning for bad blocks.
1. I tried enabling PREEMPT with no success.
2. I tried with commenting out the bad block scanning function, with 
success but not very useful :-)
3. I enabled the BBT function in uboot and the kernel, and that 
apparently fixes the problem.

Can we be sure not to see this issue/racecondition when we are up and 
running? Is there any way to test this?

Br
Sean




More information about the linux-mtd mailing list