Skip to content

: mtdoops: fixes and improvements

Simon Kagstrom linux-mtd lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest4 patches 7 repliesIn review
  2. v75 patches 9 repliesSuperseded
  3. v65 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v55 patches14 repliesSuperseded
v44 patches0 repliesSuperseded

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4: mtdoops: Keep track of used/unused mtdoops pages in an arraydrivers/mtd/mtdoops.c+44 -181 reply
2/4: mtdoops: Add a maximum MTD partition sizedrivers/mtd/Kconfig drivers/mtd/mtdoops.c+20 -42 replies
3/4: mtdoops: Make page (record) size configurabledrivers/mtd/mtdoops.c+44 -313 replies
4/4: mtdoops: refactor as a kmsg_dumperdrivers/mtd/Kconfig drivers/mtd/mtdoops.c+96 -12711 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchAnders Grafstrom
1/4R-b
2/4
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v12 thread

Cover letter [PATCH v12 0/4]: mtdoops: fixes and improvements

Hi again!

Here is another round of the mtdoops fixes for Artems tree. The patches are:

1. Keep track of mtdoops page cleanliness in an array. This allows mtdoops_inc_counter to be called during panic (which fails in my case with the current code in mtd->read, although I believe this is MTD-driver dependent).

2. Add a maximum MTD partition size for mtdoops.

3. Make page size configurable to support longer messages. Mainly needed for patch 4, but also allows longer messages to be stored during panics (when the next oops area cannot be erased).

4. Refactor mtdoops as a kmsg_dumper device instead of a console device.

Apart from the changelog in each patch, the patch that removes the always-erase-empty-areas has been dropped.

// Simon