From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [2a01:4f8:101:2a4:0:bc28:b2d8:8] (helo=chuck.antcom.de) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6gor-0002EZ-TY for linux-mtd@lists.infradead.org; Wed, 29 Aug 2012 11:52:26 +0000 Message-ID: <503E0274.7000205@antcom.de> Date: Wed, 29 Aug 2012 13:52:20 +0200 From: Roland Stigge MIME-Version: 1.0 To: dedekind1@gmail.com Subject: Re: ARM: LPC32XX SLC ECC Handling References: <50222E55.5070204@embedded-brains.de> <1345808311.2848.286.camel@sauron.fi.intel.com> <50377989.1050401@antcom.de> <1346229208.2848.441.camel@sauron.fi.intel.com> In-Reply-To: <1346229208.2848.441.camel@sauron.fi.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Sebastian Huber , Linux MTD List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 08/29/2012 10:33 AM, Artem Bityutskiy wrote: >>>> the LPC32XX SLC controller has a ECC feature that covers only >>>> the main data area, but not the OOB data. Is it the >>>> responsibility of the user to protect its OOB data via an >>>> ECC? The LPC32XX MLC controller on the other hand covers the >>>> complete OOB data with its ECC. How can a user determine if >>>> it has to protect its OOB data? >>> >>> I guess it is good idea to CC the author of the drivers. >> >> Thanks for CC'ing, would have missed it. >> >> Yes, it's exactly as Sebastian described - only the MLC >> controller covers OOB in ECC. >> >> At this point, I need to give back the question to the MTD >> maintainers: Is there an API how we can help users at this point? >> I would be happy to implement it. > > Well, I guess from the user's POW the driver either protects OOB > data with ECC or not. There is no interface for detecting this in > MTD, but I do not see why someone could not create it. > > Am I right that we are talking about the situation when OOB and > data areas are covered by different ECCs, or this is about user > writing data +oob at one go, and everything is covered by the same > ECC? In the above case of LPC32xx/MLC NAND (not sure if this is common with other controllers), the controller covers 512 (sub)pages plus some OOB bytes with a single ECC operation, storing it behind those covered OOB. Roland