From patchwork Thu Apr 9 04:04:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Miller X-Patchwork-Id: 25750 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id E7B69DDE26 for ; Thu, 9 Apr 2009 14:05:11 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750734AbZDIEFK (ORCPT ); Thu, 9 Apr 2009 00:05:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751003AbZDIEFJ (ORCPT ); Thu, 9 Apr 2009 00:05:09 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:45430 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750734AbZDIEFI (ORCPT ); Thu, 9 Apr 2009 00:05:08 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 1833935C4AC; Wed, 8 Apr 2009 21:04:58 -0700 (PDT) Date: Wed, 08 Apr 2009 21:04:57 -0700 (PDT) Message-Id: <20090408.210457.60079516.davem@davemloft.net> To: mroos@linux.ee Cc: sparclinux@vger.kernel.org Subject: Re: inconsistent lock state in 2.6.29-rc6 From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From: Meelis Roos Date: Wed, 4 Mar 2009 09:51:50 +0200 (EET) > This another problem from my 6-CPU E3000 - just got it while compiling > 2.6.29-rc7 but the compilation continues fine. > > [ 412.896568] ================================= > [ 412.964373] [ INFO: inconsistent lock state ] > [ 413.016474] 2.6.29-rc6 #2 > [ 413.047705] --------------------------------- > [ 413.099822] inconsistent {softirq-on-W} -> {in-softirq-W} usage. > [ 413.171717] cc1/2007 [HC0[0]:SC1[1]:HE0:SE0] takes: > [ 413.230048] (call_function_lock){-+..}, at: [<000000000049003c>] generic_smp_call_function_interrupt+0x11c/0x1c0 > [ 413.353010] {softirq-on-W} state was registered at: Please try this patch: --- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index f1c8208..1de47d2 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c @@ -119,9 +119,9 @@ void __cpuinit smp_callin(void) while (!cpu_isset(cpuid, smp_commenced_mask)) rmb(); - ipi_call_lock(); + ipi_call_lock_irq(); cpu_set(cpuid, cpu_online_map); - ipi_call_unlock(); + ipi_call_unlock_irq(); /* idle thread is expected to have preempt disabled */ preempt_disable();