From: Cmmn Ml <cm...@ya...> - 2007-04-23 12:01:02
|
Hi all, We are working on a SH 7705 processor based board. The linux kernel we are using is 2.6.16 with SH linux stable patch (sh--stable--2.6.16). At the moment the linux kernel is running well with basic features. We're getting following problem with flash file system (JFFS2). We have two flash partitions on our system and can be mounted using JFFS2. Once partitions are mounted we can do standard file system operations like create/remove directories, files. But when we try to copy a directory, it copies the files inside the directory and at the end the system crashes with following errors. Further more copying individual file, one by one doesn't make any problem. --------------------------------------------------------------------- Unable to handle kernel paging request at virtual address 004026fc pc = 8c052286 *pde = 0c2dc564 *pte = 0c7f4558 Oops: 0001 [#1] Pid : 3, Comm: events/0 PC is at free_block+0x46/0xf0 PC : 8c052286 SP : 8c5f9f04 SR : 400000f0 TEA : 004026fc Not tainted R0 : 8c395060 R1 : 004026f8 R2 : 00439194 R3 : 00000003 R4 : 8c283000 R5 : 8c262170 R6 : 8c260410 R7 : 8c429bd0 R8 : 8c20d540 R9 : 00000002 R10 : 8c262174 R11 : 00000000 R12 : 8c0ca000 R13 : 8c203d0c R14 : 8c052180 MACH: 0000002e MACL: 66666672 GBR : 00000000 PR : 8c052380 Call trace: [<8c052380>] drain_array_locked+0x50/0xa0 [<8c053814>] cache_reap+0x54/0x190 [<8c052330>] drain_array_locked+0x0/0xa0 [<8c02f20c>] run_workqueue+0xbc/0x140 [<8c0537c0>] cache_reap+0x0/0x190 [<8c02f378>] worker_thread+0xe8/0x170 [<8c032860>] add_wait_queue+0x0/0x40 [<8c032430>] kthread_should_stop+0x0/0x20 [<8c01cc10>] default_wake_function+0x0/0x20 [<8c01cc10>] default_wake_function+0x0/0x20 [<8c03251a>] kthread+0xca/0x120 [<8c02f290>] worker_thread+0x0/0x170 [<8c01cd70>] complete+0x0/0x60 [<8c032430>] kthread_should_stop+0x0/0x20 [<8c012004>] kernel_thread_helper+0x4/0x10 Unable to handle kernel paging request at virtual address 63237302 pc = 63237302 *pde = 00000000 Oops: 0000 [#2] Pid : 711, Comm: cp PC is at 0x63237302 PC : 63237302 SP : 8c2d7bcc SR : 40000000 TEA : 63237302 Not tainted R0 : 63237302 R1 : 00000000 R2 : 00800000 R3 : 00000000 R4 : 8c552400 R5 : 00000000 R6 : 01f0cf48 R7 : 00000044 R8 : 8c55fe28 R9 : 8c2d7bf4 R10 : 8c678508 R11 : 00000000 R12 : 00000002 R13 : 8c55fe00 R14 : 00000000 MACH: 00031035 MACL: 00000010 GBR : 00000000 PR : 8c0fdcca Call trace: [<8c0aff56>] jffs2_flash_direct_writev+0x76/0xc0 [<8c0b12d0>] jffs2_flash_writev+0x50/0x570 [<c0100b3c>] 0xc0100b3c [<8c0cf572>] zlib_tr_flush_block+0xc2/0x4c0 [<8c0cd210>] zlib_deflate+0x0/0x270 [<c0100afc>] 0xc0100afc [<8c0cd210>] zlib_deflate+0x0/0x270 [<8c0a929a>] jffs2_write_dnode+0x1ea/0x4c0 [<8c0a9bde>] jffs2_write_inode_range+0x1fe/0x3b0 [<8c0caae0>] crc32_le+0x0/0xd0 [<8c0c43ac>] memcpy+0x0/0x28 [<8c0a4f8e>] jffs2_commit_write+0x14e/0x2e0 [<8c0c43ac>] memcpy+0x0/0x28 [<8c03ccae>] generic_file_buffered_write+0x38e/0x5a0 [<8c041c8a>] make_ahead_window+0x6a/0x90 [<8c03d494>] __generic_file_aio_write_nolock+0x374/0x3c0 [<8c03d51e>] __generic_file_write_nolock+0x3e/0x70 [<8c032a80>] autoremove_wake_function+0x0/0x30 [<8c032a80>] autoremove_wake_function+0x0/0x30 [<8c054f34>] do_filp_open+0x34/0x50 [<8c03d656>] generic_file_write+0x36/0xc0 [<8c055c2a>] vfs_write+0x7a/0x130 [<8c055d84>] sys_write+0x34/0x70 [<8c014184>] syscall_call+0xc/0xe [<8c055d50>] sys_write+0x0/0x70 Unable to handle kernel paging request at virtual address 60408856 pc = 8c07e31e *pde = 00000000 Oops: 0000 [#3] Pid : 711, Comm: cp PC is at dnotify_flush+0xe/0x80 PC : 8c07e31e SP : 8c2d7ad4 SR : 40000101 TEA : 60408856 Not tainted R0 : 00000000 R1 : 60408856 R2 : 40000100 R3 : 8c2922d0 R4 : 6040882e R5 : 8c5883d0 R6 : 00000000 R7 : 00000000 R8 : 8c2922d0 R9 : 8c5883d0 R10 : 00000000 R11 : 00000001 R12 : 8c5883d0 R13 : 00000000 R14 : 8c0553a0 MACH: 00031035 MACL: 00000000 GBR : 00000000 PR : 8c0553dc Call trace: [<8c0553dc>] filp_close+0x3c/0x70 [<8c021b42>] put_files_struct+0xa2/0x110 [<8c02248e>] do_exit+0x1be/0x700 [<8c016044>] die+0x44/0x60 [<8c0209c0>] printk+0x0/0x20 [<8c01a25c>] do_page_fault+0x1cc/0x2d0 [<8c014090>] ret_from_exception+0x0/0xc [<8c0fdcca>] part_write+0x8a/0xa0 [<8c0aff56>] jffs2_flash_direct_writev+0x76/0xc0 [<8c0b12d0>] jffs2_flash_writev+0x50/0x570 [<c0100b3c>] 0xc0100b3c [<8c0cf572>] zlib_tr_flush_block+0xc2/0x4c0 [<8c0cd210>] zlib_deflate+0x0/0x270 [<c0100afc>] 0xc0100afc [<8c0cd210>] zlib_deflate+0x0/0x270 [<8c0a929a>] jffs2_write_dnode+0x1ea/0x4c0 [<8c0a9bde>] jffs2_write_inode_range+0x1fe/0x3b0 [<8c0caae0>] crc32_le+0x0/0xd0 [<8c0c43ac>] memcpy+0x0/0x28 [<8c0a4f8e>] jffs2_commit_write+0x14e/0x2e0 [<8c0c43ac>] memcpy+0x0/0x28 [<8c03ccae>] generic_file_buffered_write+0x38e/0x5a0 [<8c041c8a>] make_ahead_window+0x6a/0x90 [<8c03d494>] __generic_file_aio_write_nolock+0x374/0x3c0 [<8c03d51e>] __generic_file_write_nolock+0x3e/0x70 [<8c032a80>] autoremove_wake_function+0x0/0x30 [<8c032a80>] autoremove_wake_function+0x0/0x30 [<8c054f34>] do_filp_open+0x34/0x50 [<8c03d656>] generic_file_write+0x36/0xc0 [<8c055c2a>] vfs_write+0x7a/0x130 [<8c055d84>] sys_write+0x34/0x70 [<8c014184>] syscall_call+0xc/0xe [<8c055d50>] sys_write+0x0/0x70 Fixing recursive fault but reboot is needed! Fault in unaligned fixup: 0000 [#4] Pid : 39, Comm: pdflush PC is at sync_sb_inodes+0x74/0x230 PC : 8c075cc4 SP : 8c5d1ef0 SR : 40000100 TEA : d828e43f Not tainted R0 : 00000002 R1 : 8c55547c R2 : d828e43f R3 : 8c50ac90 R4 : 8c555400 R5 : 8c5d1f44 R6 : 8c5c1210 R7 : 8c2e1e14 R8 : 8c55547c R9 : 004027e4 R10 : 8c50ac88 R11 : 8c555400 R12 : 8c555474 R13 : 8c5d1f44 R14 : 8c5d1f44 MACH: 00000140 MACL: 00000118 GBR : 00000000 PR : 8c07603e Call trace: [<8c07603e>] writeback_inodes+0x4e/0x90 [<8c075c50>] sync_sb_inodes+0x0/0x230 [<8c0409ba>] wb_kupdate+0x7a/0x110 [<8c0ba780>] blk_congestion_wait+0x0/0x80 [<8c075ff0>] writeback_inodes+0x0/0x90 [<8c041690>] pdflush+0xf0/0x1b0 [<8c0209c0>] printk+0x0/0x20 [<8c16c130>] schedule+0x0/0x5d0 [<8c040940>] wb_kupdate+0x0/0x110 [<8c03251a>] kthread+0xca/0x120 [<8c0415a0>] pdflush+0x0/0x1b0 [<8c01cd70>] complete+0x0/0x60 [<8c032430>] kthread_should_stop+0x0/0x20 [<8c012004>] kernel_thread_helper+0x4/0x10 Fault in unaligned fixup: 0000 [#5] Pid : 39, Comm: pdflush PC is at shrink_dcache_parent+0x52/0xd0 PC : 8c06b9f2 SP : 8c5d1dc0 SR : 40000101 TEA : 31a28d09 Not tainted R0 : 000000f0 R1 : 8c535678 R2 : 31a28d05 R3 : 8c3017d8 R4 : 8c3018b4 R5 : 8c19c748 R6 : 8c301860 R7 : 8c3017b4 R8 : 00000001 R9 : 8c3018e8 R10 : fffffffd R11 : 8c3018b4 R12 : 8c3018b4 R13 : 8c012310 R14 : 8c080e90 MACH: 00000140 MACL: 0000003c GBR : 00000000 PR : 8c080ea0 Call trace: [<8c080ea0>] proc_pid_flush+0x10/0x30 [<8c021644>] release_task+0xe4/0x180 [<8c02297a>] do_exit+0x6aa/0x700 [<8c0222c0>] next_thread+0x0/0x10 [<8c021560>] release_task+0x0/0x180 [<8c016044>] die+0x44/0x60 [<8c174e64>] __func__.0+0xcd0/0x17539 [<8c0160aa>] die_if_no_fixup+0x4a/0x60 [<8c0168f8>] handle_unaligned_access+0x518/0x550 [<d828e43f>] 0xd828e43f [<8c08c42a>] ext2_update_inode+0x30a/0x360 [<8c016a74>] do_address_error+0x144/0x190 [<8c014090>] ret_from_exception+0x0/0xc [<8c014054>] address_error_store+0x0/0x4 [<d828e43f>] 0xd828e43f [<8c075cc4>] sync_sb_inodes+0x74/0x230 [<8c07603e>] writeback_inodes+0x4e/0x90 [<8c07603e>] writeback_inodes+0x4e/0x90 [<8c075c50>] sync_sb_inodes+0x0/0x230 [<8c0409ba>] wb_kupdate+0x7a/0x110 [<8c0ba780>] blk_congestion_wait+0x0/0x80 [<8c075ff0>] writeback_inodes+0x0/0x90 [<8c041690>] pdflush+0xf0/0x1b0 [<8c0209c0>] printk+0x0/0x20 [<8c16c130>] schedule+0x0/0x5d0 [<8c040940>] wb_kupdate+0x0/0x110 [<8c03251a>] kthread+0xca/0x120 [<8c0415a0>] pdflush+0x0/0x1b0 [<8c01cd70>] complete+0x0/0x60 [<8c032430>] kthread_should_stop+0x0/0x20 [<8c012004>] kernel_thread_helper+0x4/0x10 Fixing recursive fault but reboot is needed! --------------------------------------------------------------------- We're using Solution Engine as the target board and modified the linux-2.6.16.9/drivers/mtd/maps/solutionengine.c file according to our needs. Flash memory type is Spansion (MirrorBit family) S29GLxxxN. If any one knows why this happnes and give us some thoughts on this, it will be a great help. Thank you in advance Cmmn --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. |