Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758638Ab3EFVDc (ORCPT ); Mon, 6 May 2013 17:03:32 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:51727 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758597Ab3EFVDW (ORCPT ); Mon, 6 May 2013 17:03:22 -0400 Date: Mon, 6 May 2013 14:02:49 -0700 From: "Paul E. McKenney" To: Dave Jones , Linux Kernel Subject: Re: rcu_init allocation failure trace on bootup Message-ID: <20130506210249.GJ3501@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20130506175647.GA1309@redhat.com> <20130506190522.GD3501@linux.vnet.ibm.com> <20130506192653.GA16819@redhat.com> <20130506194351.GH3501@linux.vnet.ibm.com> <20130506202413.GA1261@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130506202413.GA1261@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13050621-7606-0000-0000-00000B2184E8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3352 Lines: 61 On Mon, May 06, 2013 at 04:24:13PM -0400, Dave Jones wrote: > On Mon, May 06, 2013 at 12:43:51PM -0700, Paul E. McKenney wrote: > > On Mon, May 06, 2013 at 03:26:53PM -0400, Dave Jones wrote: > > > On Mon, May 06, 2013 at 12:05:22PM -0700, Paul E. McKenney wrote: > > > > On Mon, May 06, 2013 at 01:56:47PM -0400, Dave Jones wrote: > > > > > [ 0.000000] RCU debugfs-based tracing is enabled. > > > > > [ 0.000000] RCU lockdep checking is enabled. > > > > > [ 0.000000] ------------[ cut here ]------------ > > > > > [ 0.000000] WARNING: at mm/nobootmem.c:215 ___alloc_bootmem_nopanic+0x3a/0x7d() > > > > > [ 0.000000] Modules linked in: > > > > > [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.9.0+ #128 > > > > > [ 0.000000] Hardware name: /D975XBX, BIOS BX97510J.86A.1209.2006.0601.1340 06/01/2006 > > > > > [ 0.000000] ffffffff819f4246 ffffffff81c01e68 ffffffff816a0db2 ffffffff81c01ea8 > > > > > [ 0.000000] ffffffff8104b1a0 ffffffff819e1078 0000000000000000 0000000000000008 > > > > > [ 0.000000] ffffffffffffffff 0000000000000040 0000000000000000 ffffffff81c01eb8 > > > > > [ 0.000000] Call Trace: > > > > > [ 0.000000] [] dump_stack+0x19/0x1b > > > > > [ 0.000000] [] warn_slowpath_common+0x70/0xa0 > > > > > [ 0.000000] [] warn_slowpath_null+0x1a/0x20 > > > > > [ 0.000000] [] ___alloc_bootmem_nopanic+0x3a/0x7d > > > > > [ 0.000000] [] __alloc_bootmem+0x13/0x39 > > > > > [ 0.000000] [] alloc_bootmem_cpumask_var+0x1a/0x21 > > > > > [ 0.000000] [] rcu_init+0x7f/0x261 > > > > > [ 0.000000] [] ? perf_event_init+0x178/0x181 > > > > > [ 0.000000] [] start_kernel+0x232/0x3d3 > > > > > [ 0.000000] [] ? repair_env_string+0x5e/0x5e > > > > > [ 0.000000] [] x86_64_start_reservations+0x2a/0x2c > > > > > [ 0.000000] [] x86_64_start_kernel+0xcd/0xd1 > > > > > [ 0.000000] ---[ end trace 0acfc82c197165dd ]--- > > > > > [ 0.000000] Experimental no-CBs for all CPUs > > > > > [ 0.000000] Experimental no-CBs CPUs: 0-1. > > > > > [ 0.000000] NO_HZ: Full dynticks CPUs: 1. > > > > > > > > Do you have commit fa0f93cd6a (rcu: Don't allocate bootmem from rcu_init())? > > > > If not, could you please try applying it? > > > > > > That commit isn't in Linus tree. > > > > You are quite right, I am getting ahead of myself. Please see below > > for the patch. > > Doesn't fix it for me. > > Is it this one instead perhaps ? > > 89 #ifndef CONFIG_RCU_NOCB_CPU_NONE > 90 if (!have_rcu_nocb_mask) { > 91 alloc_bootmem_cpumask_var(&rcu_nocb_mask); > 92 have_rcu_nocb_mask = true; > 93 } Hmmm... That was in fact the one that the patch was intended to change. Just out of curiosity, where did the patch apply instead? Thanx, Paul -- 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/