[RFC PATCH 0/5] MTD: nandsim: simulate multiple chips

Sheng Yong shengyong1 at huawei.com
Sun Nov 22 20:53:29 EST 2015



On 11/21/2015 3:06 AM, Brian Norris wrote:
> On Wed, Aug 05, 2015 at 08:55:49AM +0000, Sheng Yong wrote:
>> Hi, folks,
>>
>> These patchset add a new module parameter, numchips, to supports to
>> simulate NAND flash with multiple chips.
>>
>> This simulation helps to test and improve generic NAND driver on
>> multiple chips NAND flash.
> 
Hi, Brian

Thanks for your reply.
> I'm not quite sure I understand the real purpose of this feature. Seems
> like you're just testing different corners of the internals of the NAND
> framework, but not actually exposing anything new that an MTD user would
> care about. Care to clarify?
> 
Sorry for I didn't put much explaination in the last mail. Test for multi-
chips NAND flash detection is not the main purpose. The main purpose of doing
this is that if nand_scan_ident() fails to read the first chip, it will not
continue to try to setup the other chips, while if we make an appropriate
partition strategy, the other chips may contains data we expect.

So we think it may worth trying to skip the faulty chips and continue scanning
the other chips and setup the partitions that are not on the faulty chips. We
are not quiet sure if it's correct to do so, but we think simulating a multi-
chip NAND is the first step.

thanks,
Sheng

> Brian
> 
>> MTD test (except for mtd_nandbiterr) are passed. 
>>
>> Thanks,
>> Sheng
>>
>> Sheng Yong (5):
>>   MTD: nandsim: add numchips module parameter
>>   MTD: nandsim: fix column address size of large page
>>   MTD: nandsim: fix page address size
>>   MTD: nandsim: add ADJUST_ROW() to find the real page number
>>   MTD: nandsim: extent outprint messages
>>
>>  drivers/mtd/nand/nandsim.c | 632 +++++++++++++++++++++++++++------------------
>>  1 file changed, 377 insertions(+), 255 deletions(-)
>>
>> -- 
>> 1.8.3.4
>>
> 
> 




More information about the linux-mtd mailing list