Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933458Ab1ESP7y (ORCPT ); Thu, 19 May 2011 11:59:54 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:59430 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933014Ab1ESP7x (ORCPT ); Thu, 19 May 2011 11:59:53 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZGAL3gIhJoH/9Aa5kXMOoLaHETQjNQrGTXnMCtW5i6dpUPSj85quj+njJg8JZzWKEh 54NwH8DKaz6GVoVTnbMHEtQJiwxw1KYL/mXe3gkZe8BiKn1h1+qUyXgnS8UWbgzKvK0O zepTEiqXoAlH1+mZzBuFoSGpwnXNcUbWi519Y= MIME-Version: 1.0 In-Reply-To: References: <1305196419.2713.84.camel@localhost> <1305751647-3122-1-git-send-email-bengardiner@nanometrics.ca> Date: Thu, 19 May 2011 11:59:52 -0400 Message-ID: Subject: Re: [PATCH] UBIFS: don't fail on -EBADMSG when fixing free space From: "Matthew L. Creech" To: Ben Gardiner Cc: Artem Bityutskiy , Adrian Hunter , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1011 Lines: 27 On Thu, May 19, 2011 at 9:28 AM, Ben Gardiner wrote: > > So I guess my particular situation is a problem with the davinci nand > driver's ECC for 0xFF data and is _not_ covered by the free space > fixup? > Yeah, that's what it sounds like. Can you reproduce the -EBADMSG with a simpler test case that leaves UBI/UBIFS out of the equation? Maybe enable write-verify in U-Boot and try using "nand write" again, or use mtd-utils "nandwrite" from an initramfs image then try to read back the data -- that should give a simpler test case that shows whether the ECC handling of empty space is wrong. If so, that probably needs to be fixed at the MTD level, since it will affect more than this particular UBIFS case. -- Matthew L. Creech -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/