public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* MTD: Lots of mtdblock warnings on bootup logs
@ 2023-07-12 13:59 Pintu Agarwal
  2023-07-12 14:22 ` Miquel Raynal
  2023-07-12 14:28 ` Bjørn Mork
  0 siblings, 2 replies; 5+ messages in thread
From: Pintu Agarwal @ 2023-07-12 13:59 UTC (permalink / raw)
  To: open list, linux-fsdevel, linux-mtd, linux-fsdevel, ezequiel,
	Miquel Raynal, bjorn

Hi,

We are getting below warning messages in dmesg logs on a NAND device
for every raw partition.
Kernel: 5.15 ; arm64 ; NAND + ubi + squashfs
We have some RAW partitions and one UBI partition (with ubifs/squashfs volumes).

We are seeing large numbers of these logs on the serial console that
impact the boot time.
[....]
[    9.667240][    T9] Creating 58 MTD partitions on "1c98000.nand":
[....]
[   39.975707][  T519] mtdblock: MTD device 'uefi_a' is NAND, please
consider using UBI block devices instead.
[   39.975707][  T519] mtdblock: MTD device 'uefi_b' is NAND, please
consider using UBI block devices instead.
[....]

This was added as part of this commit:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/mtd/mtdblock.c?h=v5.15.120&id=f41c9418c5898c01634675150696da290fb86796
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/mtd/mtdblock.c?h=v5.15.120&id=e07403a8c6be01857ff75060b2df9a1aa8320fe5

I think this warning was decided after my last year's discussion about
mtdblock vs ubiblock for squashfs.

But these are raw NAND partitions and not mounted by us.

What is the exact meaning of these warnings ?

We have both these configs enabled:
CONFIG_MTD_BLOCK=y
CONFIG_MTD_UBI_BLOCK=y

Through this warning, are we telling that only one of the above config
should be enabled ?
And the recommendation is to use ubi_block and disable mtd_block ?

We are already using ubiblock for mounting squashfs volumes.
But how to get rid of these warnings for raw NAND partitions ?

Is there a way to avoid or we are missing something which we are not aware of?


Thanks,
Pintu

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-12 19:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 13:59 MTD: Lots of mtdblock warnings on bootup logs Pintu Agarwal
2023-07-12 14:22 ` Miquel Raynal
2023-07-12 14:28 ` Bjørn Mork
2023-07-12 18:25   ` Pintu Agarwal
2023-07-12 19:11     ` Bjørn Mork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox