From: James Hilliard <james.hilliard1@gmail.com>
To: Robert Jarzmik <robert.jarzmik@free.fr>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Ivan Djelic <ivan.djelic@parrot.com>,
David Woodhouse <David.Woodhouse@intel.com>,
Mike Dunn <mikedunn@newsguy.com>,
Brian Norris <computersforpeace@gmail.com>,
Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
James Hilliard <james.hilliard1@gmail.com>,
stable@vger.kernel.org
Subject: [PATCH 0/5] mtd: docg3: fix spare-area transfers and ECC reporting
Date: Fri, 04 Dec 2026 22:49:26 -0700 [thread overview]
Message-ID: <20261204-submit-docg3-oob-fixes-v1-v1-0-ea0bf6c535ca@gmail.com> (raw)
DiskOnChip G3 exposes eight free bytes in its 16-byte spare area. An
AUTO read can return ECC bytes instead of those free bytes; an OOB-only
write of all eight free bytes is rejected. A later page write can also
pick up stale spare bytes instead of the bytes supplied by its caller.
Use the selected OOB layout for reads and writes. Retire staged bytes
after a successful program of their page or erase of their block pair.
On full-page reads, correct BCH errors in the buffer containing the
affected byte. Report the highest bitflip count across all pages read.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
James Hilliard (5):
mtd: docg3: check whole-page OOB writes in the selected mode
mtd: docg3: invalidate staged OOB on page write and block erase
mtd: docg3: correct BCH errors in the buffer holding the affected byte
mtd: docg3: return the requested spare bytes in the selected OOB mode
mtd: docg3: report the maximum bitflip count across read pages
drivers/mtd/devices/docg3.c | 266 +++++++++++++++++++++-----------------------
1 file changed, 128 insertions(+), 138 deletions(-)
---
base-commit: 4e5457fcbc14d21e7c004c3159e78fc63838029e
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next
change-id: 20261204-submit-docg3-oob-fixes-v1-3ac1e192f872
Best regards,
--
James Hilliard <james.hilliard1@gmail.com>
next reply other threads:[~2026-12-05 5:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 5:49 James Hilliard [this message]
2026-12-05 5:49 ` [PATCH 1/5] mtd: docg3: check whole-page OOB writes in the selected mode James Hilliard
2026-12-05 5:49 ` [PATCH 2/5] mtd: docg3: invalidate staged OOB on page write and block erase James Hilliard
2026-12-05 5:49 ` [PATCH 3/5] mtd: docg3: correct BCH errors in the buffer holding the affected byte James Hilliard
2026-12-05 5:49 ` [PATCH 4/5] mtd: docg3: return the requested spare bytes in the selected OOB mode James Hilliard
2026-12-05 5:49 ` [PATCH 5/5] mtd: docg3: report the maximum bitflip count across read pages James Hilliard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204-submit-docg3-oob-fixes-v1-v1-0-ea0bf6c535ca@gmail.com \
--to=james.hilliard1@gmail.com \
--cc=David.Woodhouse@intel.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=computersforpeace@gmail.com \
--cc=ivan.djelic@parrot.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mikedunn@newsguy.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=robert.jarzmik@free.fr \
--cc=stable@vger.kernel.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®