* JFFS2 on NAND reboot problems
@ 2003-04-10 19:26 Chris Sperandeo
2003-04-10 21:43 ` Thomas Gleixner
2003-04-17 16:17 ` matsunaga
0 siblings, 2 replies; 7+ messages in thread
From: Chris Sperandeo @ 2003-04-10 19:26 UTC (permalink / raw)
To: linux-mtd, tglx
I have pulled the latest from CVS server, applied the changes and retested.
There seems to be no change in behaviour. Any other suggestions?
Regards,
Chris
On Thursday 10 April 2003 02:20, Chris Sperandeo wrote:
> Hi,
>
> Wondering if anyone has experienced a bug described as follows.
>
> I am using the linux powerpc kernel 2.4.21-pre2. We are using a March
> 09 2003 snapshot for MTD/JFFS2 from
> http://www.linux-mtd.infradead.org/.
>
> After rebooting the device we occasionally receive the following: ...
Could you please upgrade to latest CVS and try again ?
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux http://www.linutronix.de
mail: tglx@linutronix.de
Hi,
Wondering if anyone has experienced a bug described as follows.
I am using the linux powerpc kernel 2.4.21-pre2. We are using a March 09
2003 snapshot for MTD/JFFS2 from http://www.linux-mtd.infradead.org/.
After rebooting the device we occasionally receive the following:
*********************************
jffs2_get_inode_nodes(): CRC failed on node at 0x00d8a9c0: Read 0xffffffff,
calculated 0x4deb59e5
jffs2_get_inode_nodes(): Data CRC failed on node at 0x00d89a8c: Read
0xbaa193f5, calculated 0xcdd1fe6c Checked all inodes but still 0x1c20 bytes
of unchecked space? kernel BUG at gc.c:140!
Oops: Exception in kernel mode, sig: 4
NIP: C00A0420 XER: 00000000 LR: C00A0420 SP: C033FF10 REGS: c033fe60 TRAP:
0700
Not tainted
MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c033e000[8] 'jffs2_gcd_mtd1' Last syscall: -1
last math 00000000 last altivec 00000000
PLB0: bear= 0x00000000 acr= 0x00000000 besr= 0x00000000
PLB0 to OPB: bear= 0x00000000 besr0= 0x00000000 besr1= 0x00000000
GPR00: C00A0420 C033FF10 C033E000 00000018 00001030 00000001 00000020 C01F0000
GPR08: 00003DA8 C01A5D04 00000000 C033FE30 82004028 1001F598 00FE4100 007FFF2F
GPR16: 00000000 00000001 007FFF00 FFFFFFFF 00FDF920 00000000 00F9F548 00000002
GPR24: 00000000 C01AB4AC 00000000 FFFFFFFF 00000000 C035CDB8 C03CF0F8
C03CF0C4 Call backtrace: C00A0420 C00A3790 C0006F00
**********************************
It appears that something has gone wrong with the garbage collection thread
(at least that is one of the theories). Inserting a delay before actually
rebooting the device seems to remedy the problem somewhat but does not make
the problem dissappear.
Is it possible that the garbage collection thread is not given enough time to
do its works before the device is rebooted?
Any solution or suggestions on what avenues to a solution would be greatly
appreciated.
Regards,
Chris
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: JFFS2 on NAND reboot problems
2003-04-10 19:26 JFFS2 on NAND reboot problems Chris Sperandeo
@ 2003-04-10 21:43 ` Thomas Gleixner
2003-04-17 16:17 ` matsunaga
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2003-04-10 21:43 UTC (permalink / raw)
To: csperandeo, linux-mtd
On Thursday 10 April 2003 21:26, Chris Sperandeo wrote:
> I have pulled the latest from CVS server, applied the changes and retested.
> There seems to be no change in behaviour. Any other suggestions?
Can you send me a binary image of your flash ?
Turn on JFFS2 debugging to level 1 and log the debug messages on a serial
console. Compress it and send it to me or put it anywhere for download.
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: JFFS2 on NAND reboot problems
2003-04-10 19:26 JFFS2 on NAND reboot problems Chris Sperandeo
2003-04-10 21:43 ` Thomas Gleixner
@ 2003-04-17 16:17 ` matsunaga
2003-04-17 19:05 ` Thomas Gleixner
1 sibling, 1 reply; 7+ messages in thread
From: matsunaga @ 2003-04-17 16:17 UTC (permalink / raw)
To: csperandeo, linux-mtd, tglx
Hi
> Wondering if anyone has experienced a bug described as follows.
>
> I am using the linux powerpc kernel 2.4.21-pre2. We are using a March 09
> 2003 snapshot for MTD/JFFS2 from http://www.linux-mtd.infradead.org/.
>
> After rebooting the device we occasionally receive the following:
>
> *********************************
> jffs2_get_inode_nodes(): CRC failed on node at 0x00d8a9c0: Read 0xffffffff,
> calculated 0x4deb59e5
>
> jffs2_get_inode_nodes(): Data CRC failed on node at 0x00d89a8c: Read
> 0xbaa193f5, calculated 0xcdd1fe6c Checked all inodes but still 0x1c20 bytes
> of unchecked space? kernel BUG at gc.c:140!
> Oops: Exception in kernel mode, sig: 4
> NIP: C00A0420 XER: 00000000 LR: C00A0420 SP: C033FF10 REGS: c033fe60 TRAP:
> 0700
> Not tainted
> MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
> TASK = c033e000[8] 'jffs2_gcd_mtd1' Last syscall: -1
> last math 00000000 last altivec 00000000
> PLB0: bear= 0x00000000 acr= 0x00000000 besr= 0x00000000
> PLB0 to OPB: bear= 0x00000000 besr0= 0x00000000 besr1= 0x00000000
>
> GPR00: C00A0420 C033FF10 C033E000 00000018 00001030 00000001 00000020 C01F0000
> GPR08: 00003DA8 C01A5D04 00000000 C033FE30 82004028 1001F598 00FE4100 007FFF2F
> GPR16: 00000000 00000001 007FFF00 FFFFFFFF 00FDF920 00000000 00F9F548 00000002
> GPR24: 00000000 C01AB4AC 00000000 FFFFFFFF 00000000 C035CDB8 C03CF0F8
> C03CF0C4 Call backtrace: C00A0420 C00A3790 C0006F00
> **********************************
>
> It appears that something has gone wrong with the garbage collection thread
> (at least that is one of the theories). Inserting a delay before actually
> rebooting the device seems to remedy the problem somewhat but does not make
> the problem dissappear.
>
> Is it possible that the garbage collection thread is not given enough time to
> do its works before the device is rebooted?
>
> Any solution or suggestions on what avenues to a solution would be greatly
> appreciated.
It seems to me that the system was rebooted without wbuf flush.
If it is true, another problem I think is that mount process cannot detect the inode inconsistency.
This fs should be designed on the premise that power failure happens.
The last accessing file do not need to be saved, but fs does.
Sorry if this is solved on the latest code...
BR.
Matsunaga.
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: JFFS2 on NAND reboot problems
2003-04-17 16:17 ` matsunaga
@ 2003-04-17 19:05 ` Thomas Gleixner
2003-04-21 16:08 ` matsunaga
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2003-04-17 19:05 UTC (permalink / raw)
To: matsunaga, csperandeo, linux-mtd
On Thursday 17 April 2003 18:17, matsunaga wrote:
> It seems to me that the system was rebooted without wbuf flush.
> If it is true, another problem I think is that mount process cannot detect
> the inode inconsistency. This fs should be designed on the premise that
> power failure happens. The last accessing file do not need to be saved, but
> fs does.
> Sorry if this is solved on the latest code
It is designed this way. But we are neither perfect nor can we predict every
10e12 possibilities to produce a hidden bug.
I cannot reproduce it here.
That's why I asked for a bainary Image of the flash content, but I received
none until now.
We can only solve problems, which are either reproducable or which can be
reproduced by some user supplied pattern / image.
We all do our very best to make this code stable and reliable, but we need the
help from _USERS_ to detect insufficiencies. That's the way open source
software works. If we don't get the requested feedback / help we can only
say: You got the code. Feel free to fix it.
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: JFFS2 on NAND reboot problems
2003-04-17 19:05 ` Thomas Gleixner
@ 2003-04-21 16:08 ` matsunaga
0 siblings, 0 replies; 7+ messages in thread
From: matsunaga @ 2003-04-21 16:08 UTC (permalink / raw)
To: tglx, csperandeo, linux-mtd
> On Thursday 17 April 2003 18:17, matsunaga wrote:
> > It seems to me that the system was rebooted without wbuf flush.
> > If it is true, another problem I think is that mount process cannot detect
> > the inode inconsistency. This fs should be designed on the premise that
> > power failure happens. The last accessing file do not need to be saved, but
> > fs does.
> > Sorry if this is solved on the latest code
>
> It is designed this way. But we are neither perfect nor can we predict every
> 10e12 possibilities to produce a hidden bug.
>
> I cannot reproduce it here.
> That's why I asked for a bainary Image of the flash content, but I received
> none until now.
To tell the truth, I saw the same BUG() last month, but I had other things to fix and put it aside.
Now it is hard for me to reproduce it, too. I might be solved on the updated code.
Sending binary image could reveal confidential information, so he might hesitate to do it...
> We can only solve problems, which are either reproducable or which can be
> reproduced by some user supplied pattern / image.
>
> We all do our very best to make this code stable and reliable, but we need the
> help from _USERS_ to detect insufficiencies. That's the way open source
> software works. If we don't get the requested feedback / help we can only
> say: You got the code. Feel free to fix it.
I understand. We are all users and not guests.
P.S.
It is trivial, but I think gc.c line 125 ic is not necessary, or the name be changed.
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <AEB09EDA2548094C81ED6AA93269F63D01D0520A@siebe001.apac.nokia.com>]
end of thread, other threads:[~2003-04-29 14:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-10 19:26 JFFS2 on NAND reboot problems Chris Sperandeo
2003-04-10 21:43 ` Thomas Gleixner
2003-04-17 16:17 ` matsunaga
2003-04-17 19:05 ` Thomas Gleixner
2003-04-21 16:08 ` matsunaga
[not found] <AEB09EDA2548094C81ED6AA93269F63D01D0520A@siebe001.apac.nokia.com>
2003-04-19 15:58 ` Thomas Gleixner
2003-04-29 15:04 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox