public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] NAND: nandsim bad block injection
       [not found]   ` <17815.54197.666735.904351@vaishnavi.localdomain>
@ 2007-01-02  8:13     ` Artem Bityutskiy
  0 siblings, 0 replies; only message in thread
From: Artem Bityutskiy @ 2007-01-02  8:13 UTC (permalink / raw)
  To: Vijay Kumar; +Cc: linux-kernel

On Sun, 2006-12-31 at 20:43 +0530, Vijay Kumar wrote:
> Artem Bityutskiy writes:
>  > 1. Suppose we decided to emulate an erase failure for a certain
>  > eraseblock. Then the MTD user re-tries the operation and succeeds.
>  > Shouldn't we start always returning erase errors for this eraseblock
>  > instead?
> 
> You are right. We should be mantaining the bad block state within the
> simulator. I will update the code accordingly.

Well, may be it is also useful to sporadically emulate errors which go
away after re-try.

>  > 2. In case of I/O errors, the correct MTD user should mark the bogus
>  > eraseblock bad. So, after some time we end up with most of our
>  > eraseblocks marked bad which is not very nice.
>  > 
>  > How would you comment this?
> 
> We can have an upper limit on the no. of blocks that can turn bad. It
> can be provided as a module parameter.

Yeah.

Also, one more nice feature would be to emulate bit-flips from time to
time. Just change one bit and let NAND level to fix it using ECC. This
would be good for testing both NAND layer and applications (MTD returns
-EUCLEAN in case of a bit flip, and applications should not panic in
this case - because the bit-flip was corrected). That's just an idea.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-02  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <17810.36897.44930.853654@vaishnavi.localdomain>
     [not found] ` <1167301341.4217.30.camel@sauron>
     [not found]   ` <17815.54197.666735.904351@vaishnavi.localdomain>
2007-01-02  8:13     ` [PATCH] NAND: nandsim bad block injection Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox