From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by kanga.kvack.org (Postfix) with ESMTP id 5B8A66B0005 for ; Wed, 22 Jun 2016 11:01:44 -0400 (EDT) Received: by mail-oi0-f69.google.com with SMTP id d132so28575816oig.0 for ; Wed, 22 Jun 2016 08:01:44 -0700 (PDT) Received: from mail-io0-x242.google.com (mail-io0-x242.google.com. [2607:f8b0:4001:c06::242]) by mx.google.com with ESMTPS id 87si1177855iok.107.2016.06.22.08.01.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 08:01:36 -0700 (PDT) Received: by mail-io0-x242.google.com with SMTP id s63so7674444ioi.3 for ; Wed, 22 Jun 2016 08:01:36 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160622005208.GB25106@js1304-P5Q-DELUXE> References: <20160614062456.GB13753@js1304-P5Q-DELUXE> <20160614081125.GA17700@js1304-P5Q-DELUXE> <20160615022325.GA19863@js1304-P5Q-DELUXE> <20160620063942.GA13747@js1304-P5Q-DELUXE> <20160620131254.GO3923@linux.vnet.ibm.com> <20160621064302.GA20635@js1304-P5Q-DELUXE> <20160621125406.GF3923@linux.vnet.ibm.com> <20160622005208.GB25106@js1304-P5Q-DELUXE> From: Geert Uytterhoeven Date: Wed, 22 Jun 2016 17:01:35 +0200 Message-ID: Subject: Re: Boot failure on emev2/kzm9d (was: Re: [PATCH v2 11/11] mm/slab: lockless decision to grow cache) Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Joonsoo Kim Cc: "Paul E. McKenney" , Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Jesper Dangaard Brouer , Linux MM , "linux-kernel@vger.kernel.org" , linux-renesas-soc@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" On Wed, Jun 22, 2016 at 2:52 AM, Joonsoo Kim wrote: > Could you try below patch to check who causes the hang? > > And, if sysalt-t works when hang, could you get sysalt-t output? I haven't > used it before but Paul could find some culprit on it. :) > > Thanks. > > > ----->8----- > diff --git a/mm/slab.c b/mm/slab.c > index 763096a..9652d38 100644 > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -964,8 +964,13 @@ static int setup_kmem_cache_node(struct kmem_cache *cachep, > * guaranteed to be valid until irq is re-enabled, because it will be > * freed after synchronize_sched(). > */ > - if (force_change) > + if (force_change) { > + if (num_online_cpus() > 1) > + dump_stack(); > synchronize_sched(); > + if (num_online_cpus() > 1) > + dump_stack(); > + } I've only added the first one, as I would never see the second one. All of this happens before the serial console is activated, earlycon is not supported, and I only have remote access. Brought up 2 CPUs SMP: Total of 2 processors activated (2132.00 BogoMIPS). CPU: All CPU(s) started in SVC mode. CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.7.0-rc4-kzm9d-00404-g4a235e6dde4404dd-dirty #89 Hardware name: Generic Emma Mobile EV2 (Flattened Device Tree) [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (dump_stack+0x7c/0x9c) [] (dump_stack) from [] (setup_kmem_cache_node+0x140/0x170) [] (setup_kmem_cache_node) from [] (__do_tune_cpucache+0xf4/0x114) [] (__do_tune_cpucache) from [] (enable_cpucache+0xf8/0x148) [] (enable_cpucache) from [] (__kmem_cache_create+0x1a8/0x1d0) [] (__kmem_cache_create) from [] (kmem_cache_create+0xbc/0x190) [] (kmem_cache_create) from [] (shmem_init+0x34/0xb0) [] (shmem_init) from [] (kernel_init_freeable+0x98/0x1ec) [] (kernel_init_freeable) from [] (kernel_init+0x8/0x110) [] (kernel_init) from [] (ret_from_fork+0x14/0x3c) devtmpfs: initialized Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org