Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751989AbdFTLoe (ORCPT ); Tue, 20 Jun 2017 07:44:34 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36170 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbdFTLoc (ORCPT ); Tue, 20 Jun 2017 07:44:32 -0400 Date: Tue, 20 Jun 2017 21:44:16 +1000 From: Nicholas Piggin To: Abdul Haleem Cc: linuxppc-dev , linux-kernel , linux-next , stephen Rothwell , mpe , akpm@linux-foundation.org, sachinp Subject: Re: [BUG][next-20170619][347de24] PowerPC boot fails with Oops Message-ID: <20170620214416.1d3b6373@roar.ozlabs.ibm.com> In-Reply-To: <1497943165.6789.10.camel@abdul.in.ibm.com> References: <1497943165.6789.10.camel@abdul.in.ibm.com> Organization: IBM X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 931 Lines: 39 On Tue, 20 Jun 2017 12:49:25 +0530 Abdul Haleem wrote: > Hi, > > commit: 347de24 (powerpc/64s: implement arch-specific hardlockup > watchdog) > > linux-next fails to boot on PowerPC Bare-metal box. > > Test: boot > Machine type: Power 8 Bare-metal > Kernel: 4.12.0-rc5-next-20170619 > gcc: version 4.8.5 > > > In file arch/powerpc/kernel/watchdog.c > > void soft_nmi_interrupt(struct pt_regs *regs) > { > unsigned long flags; > int cpu = raw_smp_processor_id(); > u64 tb; > > if (!cpumask_test_cpu(cpu, &wd_cpus_enabled)) > return; > > >>> nmi_enter(); Thanks for the report. This is due to emergency stacks not zeroing preempt_count, so they get garbage here, and it just trips the BUG_ON(in_nmi()) check. Don't think it's a bug in the proposed new powerpc watchdog. (at least I was able to reproduce your bug and fix it by fixing the stack init). Thanks, Nick