From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpauth01.csee.onr.siteprotect.com ([64.26.60.145]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KUrhW-00015P-RA for linux-mtd@lists.infradead.org; Sun, 17 Aug 2008 23:30:23 +0000 Message-ID: <48A8B486.5070900@boundarydevices.com> Date: Sun, 17 Aug 2008 16:30:14 -0700 From: Troy Kisky MIME-Version: 1.0 To: frans Subject: Re: [RESUBMIT] [PATCH] [MTD] NAND nand_ecc.c: rewrite for improved performance References: <1218472202.2977.12.camel@pmac.infradead.org> <1218535872.2977.133.camel@pmac.infradead.org> <48A48330.70105@boundarydevices.com> <1218789997.3184.64.camel@pmac.infradead.org> <1218793271.3184.77.camel@pmac.infradead.org> <1218795140.3184.84.camel@pmac.infradead.org> <48A5D154.2000409@boundarydevices.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org, David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > + if (nr_bits == 11) { /* correctable error */ This is a necessary, but NOT sufficient condition to determine that it is a 1 bit error. Big MAYBE below This is probably why you passed the big endian test. It was seeing every read as a single bit error and silently correcting. Adding a debug print when correcting or failing to correct would be useful. Troy