Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756704Ab3CNK3Q (ORCPT ); Thu, 14 Mar 2013 06:29:16 -0400 Received: from mga14.intel.com ([143.182.124.37]:19890 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756205Ab3CNK3P (ORCPT ); Thu, 14 Mar 2013 06:29:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,843,1355126400"; d="scan'208";a="270649736" Message-ID: <1363257009.11441.97.camel@sauron.fi.intel.com> Subject: Re: MTD : Kernel oops when remounting ubifs as read/write From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Mark Jackson Cc: "linux-mtd@lists.infradead.org" , "linux-omap@vger.kernel.org" , lkml , adrian.hunter@intel.com Date: Thu, 14 Mar 2013 12:30:09 +0200 In-Reply-To: <51419E3A.8030007@mimc.co.uk> References: <5134CEF9.5070502@mimc.co.uk> <1363087506.3348.62.camel@sauron.fi.intel.com> <51405F3A.3090901@mimc.co.uk> <1363252425.11441.94.camel@sauron.fi.intel.com> <51419E3A.8030007@mimc.co.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.3 (3.6.3-2.fc18) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1756 Lines: 43 On Thu, 2013-03-14 at 09:54 +0000, Mark Jackson wrote: > On 14/03/13 09:13, Artem Bityutskiy wrote: > > On Wed, 2013-03-13 at 11:12 +0000, Mark Jackson wrote: > >> Sorry ... this just locks up the unit. > > > > OK, I've reproduced the issue with 3.9-rc2 in nandsim, see the details > > below. The patch I proposed did not get the error path correctly, but it > > does fix the issue. > > > > I think what you treat as "lockup" is the fixup process. UBIFS basically > > reads the entire UBI volume and writes it back. And it uses the atomic > > change UBI service, which means it also calculates CRC of everything it > > writes. And this all just takes a lot of time. This has to be done only > > once on the first mount. > > Okay ... I've retried, but how long is "a lot of time" ? > > I've waited 15 minutes and still nothing. > > And I can see that there's no activity on the NAND chip select !?! > > I'll put some debug info into the fixup routines to see if I can trace what's going on. Just to make sure - try this last patch I sent. I did test it with nandsim at least, and I am sure it works. I did not test at all the first one. And yes, debug messages would be useful, just do not forget to add the 'ignore_loglevel' kernel boot option, otherwise you won't see the messages on your console, since they are of KERN_DEBUG level. You may have other issues which cause lockup, e.g., in driver level. It makes sense to validate your flash with MTD test modules. -- Best Regards, Artem Bityutskiy -- 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/