From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5864ADE1B0 for ; Wed, 15 Oct 2008 22:49:59 +1100 (EST) Subject: Re: [PROBLEM] Soft lockup on Linux 2.6.27, 2 patches, Cell/PPC64 From: Benjamin Herrenschmidt To: Geert Uytterhoeven In-Reply-To: References: <48F17DE6.106@gmail.com> <1224046194.8157.428.camel@pasglop> <1224062907.8157.446.camel@pasglop> <1224070653.8157.452.camel@pasglop> Content-Type: text/plain Date: Wed, 15 Oct 2008 22:49:52 +1100 Message-Id: <1224071392.8157.455.camel@pasglop> Mime-Version: 1.0 Cc: Linux/PPC Development , Aaron Tokhy Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2008-10-15 at 13:46 +0200, Geert Uytterhoeven wrote: > On Wed, 15 Oct 2008, Benjamin Herrenschmidt wrote: > > > > Well, at the time of the sample, the other CPU indeed -seems- to be in > > > > an IRQ disabled section yes. > > > > > > This is not really a sample. The hardirqs enable/disable is actually tracked > > > using the TRACE_{EN,DIS}ABLE_INTS macros. > > > > That's what I meant. IE. the hardirq state was updated by the stuck CPU > > but sampled by the non-stuck one. ie. the non-stuck one could have > > sampled a transcient value where it happened to have hard irq > > disabled... > > These states are per_cpu. I know, but that doesn't prevent another CPU from peeking at them :-) The question is, was the message printed by the CPU that locked up or by the other one that detected the lockup ? > They do call TRACE_DISABLE_INTS, which records the interrupt being disabled. > So this makes the actual state recording useless... Well, they record that when they disable it. They don't enable it. Can you find a spot where the IRQ is enabled and it's not recorded or a case where it's not disabled and recorded as disabled ? Cheers, Ben.