Re: [PATCH] NAND: nandsim bad block injection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 (Битюцкий Артём)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux