From: "Jared Hulbert" <jaredeh@gmail.com>
To: "Anders Grafström" <grfstrm@users.sourceforge.net>
Cc: Linux-MTD Mailing List <linux-mtd@lists.infradead.org>,
Alexey Korolev <akorolev@infradead.org>
Subject: Re: cfi_cmdset_0001.c: Excessive erase suspends
Date: Fri, 18 Apr 2008 19:47:48 -0700 [thread overview]
Message-ID: <6934efce0804181947s16bd8874uf17b3528c8dab229@mail.gmail.com> (raw)
In-Reply-To: <48091C7A.1070709@users.sourceforge.net>
> > A solution might be an small delay before a
> > write suspends the erase.
> >
>
> udelay(100) right before the suspend command seems to work for me.
> It reduces the suspend count to about 1700 and no errors reported
> by JFFS2.
good.
Not sure how/if that sort of fix can be merged.
So you didn't see this kind of problem with older kernels?
> I ran this routine in a standalone test program from u-boot:
>
> void test_flash_erase_suspend(void)
> {
> }
>
> The delay loop doing 3500 loops seems to be the critical one.
Interesting. I'm going to talk with some people...
> Most of the time I get something like this, which I assume
> means 'Operation abort'.
>
> Status 00a000a0
Yes, bit 5 is erase error. You've got to expect data to be bad under
those circumstances.
> Status 00a00080
> aa690000
you have 2 parts in parallel, right? So the chip on the high order
word is expected to be garbage, erase error and all. But the lower
word chip confuses me, that shouldn't happen.
Alexey, what do you think?
next prev parent reply other threads:[~2008-04-19 2:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 20:38 cfi_cmdset_0001.c: Excessive erase suspends Anders Grafström
2008-04-18 15:02 ` Alexey Korolev
2008-04-18 16:35 ` Jamie Lokier
2008-04-18 17:54 ` Jared Hulbert
2008-04-18 22:11 ` Anders Grafström
2008-04-19 2:47 ` Jared Hulbert [this message]
2008-04-19 9:18 ` Joakim Tjernlund
2008-04-19 13:47 ` Anders Grafström
2008-04-19 17:01 ` Joakim Tjernlund
2008-04-24 14:34 ` Alexey Korolev
2008-04-24 21:02 ` Anders Grafström
2008-04-25 9:59 ` Alexey Korolev
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=6934efce0804181947s16bd8874uf17b3528c8dab229@mail.gmail.com \
--to=jaredeh@gmail.com \
--cc=akorolev@infradead.org \
--cc=grfstrm@users.sourceforge.net \
--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