From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx.dave-tech.it ([2.229.21.40]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zcs7x-0006mE-Gf for linux-mtd@lists.infradead.org; Fri, 18 Sep 2015 09:38:46 +0000 Subject: Re: UBI/UBIFS: dealing with MLC's paired pages To: dedekind1@gmail.com, Richard Weinberger , Boris Brezillon References: <20150917152240.757c9e90@bbrezillon> <1442503239.19983.18.camel@gmail.com> <20150917174642.0c983136@bbrezillon> <55FAEEB1.50401@nod.at> <55FBBA6E.9070203@dave-tech.it> <1442562845.19983.43.camel@gmail.com> Cc: linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , =?UTF-8?B?UWkgV2FuZyDnjovotbcgIihxaXdhbmcpIg==?= , Iwo Mergler , "Jeff Lauruhn (jlauruhn)" From: Andrea Scian Message-ID: <55FBDB8F.2040301@dave-tech.it> Date: Fri, 18 Sep 2015 11:38:23 +0200 MIME-Version: 1.0 In-Reply-To: <1442562845.19983.43.camel@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Boris, Artem, thanks to both of you for you detailed description. I'll follow this development, for sure I'll learn a lot :-) Kind Regards, -- Andrea SCIAN DAVE Embedded Systems Il 18/09/2015 09:54, Artem Bityutskiy ha scritto: > Hi Andrea, > > On Fri, 2015-09-18 at 09:17 +0200, Andrea Scian wrote: >> I perfectly understand the reason why using nandsim (and powercut >> simulator in general) but, AFAIK, the powercut problem is hard to >> "simulate" because the main issue is when the device see a loss of >> power >> in the middle of an operation (page write or block erase) > > This is right, and no doubts real power cuts testing is the most > important thing. > > However, at the beginning, it is very hard to develop if you do not > have a quick way to verify your ideas. Simulation is exactly for this - > to make the first reliable draft. Once that work, you go to the second > stage - real HW testing. > > Real HW testing requires a real power cycle, no guarantees power cut > happens at the right moment, so you may spend hours emulating just one > paired-page case. Compare this to just running a script, and it > emulates you 100 paired-page cases during 10 minutes. And you can > emulate it easily at the interesting places, not just during the main > data writes. > > So, to recap, I suggest emulation to make the first draft, and then > start heavy real testing to shape the final solution. > > Artem. >