From: "Julianne C." <juliannerc@gmail.com>
To: linux-mtd <linux-mtd@lists.infradead.org>
Subject: OneNAND: Rate of write errors
Date: Thu, 22 Feb 2007 10:35:35 -0600 [thread overview]
Message-ID: <e167438e0702220835gbc5562fl4dc0bc4bd879f649@mail.gmail.com> (raw)
Further thought about the numerous write errors to the OneNAND part
got me thinking about the symptoms, i.e., when we see the -EBADMSG
error return, there is no corresponding fault reported in the ECC
status register. Consequently, we concluded that the bufferram may be
getting corrupted before the data is ever committed to the NAND array.
Hence, we rewrote the code for the setup as follows in the
onenand_write procedure:
do
{
this->write_bufferram (mtd,
ONENAND_DATARAM,
wbuf,
0,
mtd->writesize);
ret = onenand_do_check_bufferram (mtd,
ONENAND_DATARAM,
wbuf,
0,
mtd->writesize);
if (ret != 0) // then
{
retrys = retrys + 1;
printk (KERN_WARNING
"onenandwrite: bad buffer ram, retrying (%d)\n",
retrys);
} // end if
} while (ret != 0 &&
retrys < max_retrys);
if (retrys >= max_retrys) // then
{
ret = -EBADMSG;
break;
} // end if
With max_retrys set to three (we have seen double attempts) to make
this work all the time. There are no more errors reported back to the
JFFS2 system, and the file system cleanly mounts and unmounts.
This does verify the suspicion that the buffer was corrupted before it
was committed. Does anyone have any idea how or why the data in the
bufferram might be corrupted?
Julianne C.
next reply other threads:[~2007-02-22 16:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 16:35 Julianne C. [this message]
2007-02-23 8:04 ` OneNAND: Rate of write errors Adrian Hunter
2007-02-26 0:41 ` Kyungmin Park
-- strict thread matches above, loose matches on Subject: below --
2007-02-22 0:21 Julianne C.
2007-02-22 9:28 ` Adrian Hunter
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=e167438e0702220835gbc5562fl4dc0bc4bd879f649@mail.gmail.com \
--to=juliannerc@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/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