Skip to content

Fix double counting of S/W ECC engines' ECC stat

YouChing Lin linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: nand: ecc-bch: Fix the double counting of ECC statdrivers/mtd/nand/ecc-sw-bch.c+5 -40 replies
2/2mtd: nand: ecc-hamming: Fix the double counting of ECC statdrivers/mtd/nand/ecc-sw-hamming.c+5 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchYouChing Lin
SeriesT-b
1/2
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] Fix double counting of S/W ECC engines' ECC stat

Hello,

This series fix the double counting of S/W ECC engines' ECC stat

If you use SPI-NAND with SW-ECC engine, the ECC related statistics (ecc_stats.failed & ecc_stats.corrected) will be doubled, because those numbers will be double-counted in ecc-sw-[bch/hamming].c and drivers/mtd/nand/spi/core.c.

This can be found by using nandtest/nandbiterrs validation.

Thanks for your time.

YouChing Lin (2):
mtd: nand: ecc-bch: Fix the double counting of ECC stat
mtd: nand: ecc-hamming: Fix the double counting of ECC stat

 drivers/mtd/nand/ecc-sw-bch.c     | 9 +++++----
 drivers/mtd/nand/ecc-sw-hamming.c | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)
Signature · 1 line
1.9.1