[Bug] mtd: rawnand: gpmi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have been troubleshooting some CAN problems on our imx6ull with a raw nand flash. I normally run with a 4.19 series kernel, but to verify those CAN problems have been resolved in newer kernels i have been trying ~5.3-rc6.

But with that kernel i have run into trouble with ubifs, it throws a lot of errors:
[  188.384572] Not a node, first 24 bytes:
[ 188.384588] 00000000: ff ff ff 00 00 00 00 e4 03 00 00 a0 81 00 00 01 00 00 00 00 00 00 00 00 ........................ [ 188.402976] UBIFS error (ubi0:8 pid 117): ubifs_read_node: bad node type (0 but expected 3) [ 188.411605] UBIFS error (ubi0:8 pid 117): ubifs_read_node: bad node at LEB 46:49888, LEB mapping status 1

I started a bisect from Linux 5.3-rc7 (bad) to 5.2 (good).
And i'm ending up here:

commit ef347c0cfd619a9251e5a2f9ff72e33650a9bccb (HEAD)
Author: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
Date:   Tue May 21 09:06:43 2019 +0200

    mtd: rawnand: gpmi: Implement exec_op

dmesg on boot:
[    1.229431] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xdc
[    1.229472] nand: Toshiba NAND 512MiB 3,3V 8-bit
[ 1.229510] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 128
[    1.229547] ------------[ cut here ]------------
[ 1.229604] WARNING: CPU: 0 PID: 1 at drivers/mtd/nand/raw/internals.h:114 nand_reset_op+0x198/0x1c0
[    1.229633] Modules linked in:
[ 1.229684] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-rc3-00022-gef347c0cfd61 #84
[    1.229709] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 1.229770] [<c011184c>] (unwind_backtrace) from [<c010cc78>] (show_stack+0x10/0x14) [ 1.229825] [<c010cc78>] (show_stack) from [<c0877328>] (dump_stack+0xd4/0x108) [ 1.229880] [<c0877328>] (dump_stack) from [<c0125ffc>] (__warn.part.0+0xa8/0xe8) [ 1.229925] [<c0125ffc>] (__warn.part.0) from [<c012619c>] (warn_slowpath_null+0x40/0x4c) [ 1.229970] [<c012619c>] (warn_slowpath_null) from [<c0568018>] (nand_reset_op+0x198/0x1c0) [ 1.230019] [<c0568018>] (nand_reset_op) from [<c0569d88>] (nand_reset+0x58/0xb4) [ 1.230066] [<c0569d88>] (nand_reset) from [<c056a81c>] (nand_scan_with_ids+0x6ac/0x15bc) [ 1.230112] [<c056a81c>] (nand_scan_with_ids) from [<c05736b8>] (gpmi_nand_probe+0x2b8/0x708) [ 1.230160] [<c05736b8>] (gpmi_nand_probe) from [<c052813c>] (platform_drv_probe+0x48/0x98) [ 1.230208] [<c052813c>] (platform_drv_probe) from [<c0525f7c>] (really_probe+0xec/0x2c8) [ 1.230260] [<c0525f7c>] (really_probe) from [<c05262b4>] (driver_probe_device+0x5c/0x160) [ 1.230303] [<c05262b4>] (driver_probe_device) from [<c0526558>] (device_driver_attach+0x58/0x60) [ 1.230343] [<c0526558>] (device_driver_attach) from [<c05265b8>] (__driver_attach+0x58/0xd0) [ 1.230391] [<c05265b8>] (__driver_attach) from [<c052442c>] (bus_for_each_dev+0x78/0xb8) [ 1.230441] [<c052442c>] (bus_for_each_dev) from [<c052544c>] (bus_add_driver+0x150/0x1dc) [ 1.230484] [<c052544c>] (bus_add_driver) from [<c0527248>] (driver_register+0x74/0x108) [ 1.230528] [<c0527248>] (driver_register) from [<c0103090>] (do_one_initcall+0x80/0x334) [ 1.230576] [<c0103090>] (do_one_initcall) from [<c0c011b4>] (kernel_init_freeable+0x2fc/0x3e4) [ 1.230623] [<c0c011b4>] (kernel_init_freeable) from [<c088fe1c>] (kernel_init+0x8/0x110) [ 1.230668] [<c088fe1c>] (kernel_init) from [<c01010b4>] (ret_from_fork+0x14/0x20)
[    1.230697] Exception stack(0xc8097fb0 to 0xc8097ff8)
[ 1.230733] 7fa0: 00000000 00000000 00000000 00000000 [ 1.230772] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.230806] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.230832] irq event stamp: 104011
[ 1.230875] hardirqs last enabled at (104017): [<c0187e34>] console_unlock+0x3f0/0x5c0 [ 1.230911] hardirqs last disabled at (104022): [<c0187ac8>] console_unlock+0x84/0x5c0 [ 1.230950] softirqs last enabled at (103960): [<c0102540>] __do_softirq+0x320/0x50c [ 1.230992] softirqs last disabled at (103953): [<c012d634>] irq_exit+0x124/0x18c
[    1.231060] ---[ end trace 12b9d19a5aac4c9f ]---
[    1.234710] Bad block table not found for chip 0
[    1.236076] Bad block table not found for chip 0
[    1.236113] Scanning device for bad blocks
[    1.244907] random: fast init done
[    1.701764] Bad eraseblock 798 at 0x00000c780000
[    2.132734] Bad eraseblock 1536 at 0x000018000000
[    2.133094] Bad eraseblock 1537 at 0x000018040000
[    2.434057] Bad block table written to 0x00001ffc0000, version 0x01
[    2.437254] Bad block table written to 0x00001ff80000, version 0x01

I'm here if anything needs testing :-)

--
Best regards,
Sean Nyekjær
Embedded Linux Consultant

+45 42427326
sean@xxxxxxxxxx

Geanix ApS
https://geanix.com
DK39600706

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux