autoresize causes insufficient reservation of PEBs for bad PEB handling
Egli, Samuel
samuel.egli at siemens.com
Tue Jul 7 00:57:55 PDT 2015
Hi Richard
thank you for your reply.
>-----Original Message-----
>From: Richard Weinberger [mailto:richard.weinberger at gmail.com]
>Sent: Montag, 6. Juli 2015 23:40
>To: Egli, Samuel
>Cc: linux-mtd at lists.infradead.org
>Subject: Re: autoresize causes insufficient reservation of PEBs for bad
>PEB handling
>
>[...]
>
>I'm a bit puzzled. Can you please share the full kernel log?
vol_flags=autoresize
https://gist.github.com/anonymous/7a4b790b27aac81421ab
vol_size fixed
https://gist.github.com/anonymous/811eadc9c6592539387a
>Maybe some other UBI warning brings light into that.
>Please also share the output of ubinfo -a with and without autoresize.
ubinfo -a (vol_flags=autoresize):
https://gist.github.com/anonymous/44de06911988fb55a742
ubinfo -a (fix vol_size):
https://gist.github.com/anonymous/e5cfbc0a3606d2d35974
>
>The re-size mechanism will use ubi->avail_pebs for the new volume size.
>ubi->avail_pebs should honor the number of reserved PEBs.
>If you have a lot of bad/corrupted PEBs the situation may be different.
Hmm, is there some special handling of SLC and MLC NAND?
Anyway, here the relevant kernel config:
zcat /proc/config.gz | grep UBI:
CONFIG_TCP_CONG_CUBIC=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_MTD_UBI_GLUEBI is not set
CONFIG_UBIFS_FS=y
# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
# CONFIG_CRYPTO_ANUBIS is not set
Kind regards
Sam
More information about the linux-mtd
mailing list