From mboxrd@z Thu Jan 1 00:00:00 1970 From: NeilBrown Subject: Re: OMAP34xx Date: Thu, 16 Feb 2012 11:25:14 +1100 Message-ID: <20120216112514.13202562@notabene.brown> References: <20120208231551.GA9009@kroah.com> <20120209004731.GA11343@kroah.com> <4F3374F0.3080002@bitmer.com> <20120209133739.GB2590@sirena.org.uk> <20120209183624.GJ1426@atomide.com> <1329343056.5686.6.camel@cumari> <87ehtvlkjf.fsf@ti.com> <4F3C4A0E.1000707@deeprootsystems.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/JL4UARxdb/2Oy+X4DpzIQzB"; protocol="application/pgp-signature" Return-path: Received: from cantor2.suse.de ([195.135.220.15]:44203 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396Ab2BPAZ2 (ORCPT ); Wed, 15 Feb 2012 19:25:28 -0500 In-Reply-To: <4F3C4A0E.1000707@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Kevin Hilman Cc: Kevin Hilman , Luciano Coelho , Tony Lindgren , Mark Brown , Jarkko Nikula , Greg KH , Paul Walmsley , Grazvydas Ignotas , Russell King - ARM Linux , linux-omap@vger.kernel.org, Arnd Bergmann , Olof Johansson --Sig_/JL4UARxdb/2Oy+X4DpzIQzB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 15 Feb 2012 16:13:02 -0800 Kevin Hilman wrote: > On 02/15/2012 03:54 PM, Kevin Hilman wrote: > > Luciano Coelho writes: > > > > [...] > > > >> I just tried this on my Panda and I keep getting this kind of BUGs. It > >> spams my console so much that is pretty much unusable: > >> > >> [ 336.172302] BUG: sleeping function called from invalid context at i= nclude/linux/freezer.h:46 > >> [ 336.181213] in_atomic(): 0, irqs_disabled(): 128, pid: 1618, name: = ntpd > >> [ 336.181213] INFO: lockdep is turned off. > >> [ 336.181213] irq event stamp: 0 > >> [ 336.181213] hardirqs last enabled at (0): [< (null)>] (null) > >> [ 336.201660] hardirqs last disabled at (0): [] copy_proces= s+0x3ec/0x105c > >> [ 336.209625] softirqs last enabled at (0): [] copy_proces= s+0x3ec/0x105c > >> [ 336.217498] softirqs last disabled at (0): [< (null)>] (null) > >> [ 336.217498] [] (unwind_backtrace+0x0/0x148) from [] (dump_stack+0x20/0x24) > >> [ 336.232879] [] (dump_stack+0x20/0x24) from [] (= __might_sleep+0x130/0x134) > >> [ 336.232879] [] (__might_sleep+0x130/0x134) from [] (do_signal+0x54/0x600) > >> [ 336.250793] [] (do_signal+0x54/0x600) from [] (= do_notify_resume+0x60/0x6c) > >> [ 336.250793] [] (do_notify_resume+0x60/0x6c) from [] (work_pending+0x24/0x28) > >> > >> I have also seen this in 3.3-rc3 (both on Panda (OMAP4460) and on Blaze > >> (OMAP4430) boards) and I was hoping your tree would have the fix for i= t, > >> but it doesn't. :( The device boots and seems to work otherwise, but > >> this is annoying and looks shaky. > >> > >> I saw something related to this in another thread from a few months ag= o, > >> and one patch proposal by Russell, but I didn't find any conclusion or > >> any related patch queued up for upstream. > >> > >> Is there any solution for this? I use a tuned .config (attached) and n= ot > >> the one generated by omap2plus_defconfig (which I didn't try as > >> vanilla). > > > > I see the same thing with your ~/.config, but I don't think this is OMAP > > specific. I suspect this will happen on any ARM platform that has > > CONFIG_DEBUG_ATOMIC_SLEEP=3Dy. > > > > It appears to be a problem with the recently added audit support for > > ARM, since reverting the commit below makes this BUG go away. >=20 > False alarm. reverting the audit commit didn't make the problem go=20 > away. It was gone only because I also disabled=20 > CONFIG_DEBUG_ATOMIC_SLEEP. :/ >=20 > To debug this further, you might bisect it back to v3.2 because the=20 > problem isn't there in v3.2 I "fixed" this by applying https://lkml.org/lkml/2011/8/25/231 as shown here: http://neil.brown.name/git?p=3Dgta04;a=3Dcommitdiff;h=3Db43a97aefed9990811e= d95676db58538f7279eb6 because google found some email that suggested it. It worked but I didn't even try to understand the patch. NeilBrown --Sig_/JL4UARxdb/2Oy+X4DpzIQzB Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iQIVAwUBTzxM6jnsnt1WYoG5AQIGFRAAqzvirQNVBSRnM2b36AptpK+EX8CENSpH KfVzNtdup5AkvWB7xCRpRQ9tj7Nu3ofW8zDQG4G2qb/cR/oRbz8Invl/Dp4mb5OQ af5If3ZW/wv+e7HNIrQ0+HWJCRSuIeteT9375a0W/3gvFJ2ljyEQOiv9AW4kVdbQ 11Ik7SBaRRPMAwvmlqDkWwqyJNL1DoQug86HZTaVq0PAlTcGc1g0ohsnqAolXCCK sHUF3GPdVHP+ed4zHBHLdBvuJ7eHjx3v7kAgZjQEAxuvyW0UQksEngWTz5/UvfTc uZHccWeCzWwzU3ikRU1YIyU86S5ok7GhDVcICHWrO6+U+AerbseDWlC0Gi47KxAA jeW/xVtZ2ldtMUsdrvHb4ddF5OQCt02QO6VSXR8+vjjQB0Y6h3r75weyqJtCVH7j +NQWmfLkZROfIyjnb+vCLJOxF1GzcKJsrv8XHDWOh8mjIkn23W5thezSMQLrOKqV WcD05QSS/S44wdCGiK8RUAhrwLKpxttaV1E2cxwObRxeHXm/yIvTfObbWEQr7qAJ kMeNcJbnaeibsrP4vRWy0iSktuq/22ALtywor3Jb9DwR9mgjmdsOlotQAh0KCEhI wbXIbYuL42oXZKLE70vKOjRlYG1R4LXlbdhYEwfLdVrDR7qwH3CE5z5W1ocIDjIN GRRxcrxb17U= =F0pq -----END PGP SIGNATURE----- --Sig_/JL4UARxdb/2Oy+X4DpzIQzB--