From owner-freebsd-current@FreeBSD.ORG Wed Sep 21 21:12:07 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D367616A420 for ; Wed, 21 Sep 2005 21:12:07 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88DB843D46 for ; Wed, 21 Sep 2005 21:12:00 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.41.233] (Not Verified[10.50.41.233]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Wed, 21 Sep 2005 17:27:49 -0400 From: John Baldwin To: freebsd-current@freebsd.org Date: Wed, 21 Sep 2005 16:51:08 -0400 User-Agent: KMail/1.8 References: <1127245262.32486.1.camel@akima.flintsbach.schmalzbauer.de> In-Reply-To: <1127245262.32486.1.camel@akima.flintsbach.schmalzbauer.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509211651.09666.jhb@FreeBSD.org> Cc: Harald Schmalzbauer Subject: Re: nvidia kld panic with debug kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 21:12:07 -0000 On Tuesday 20 September 2005 03:41 pm, Harald Schmalzbauer wrote: > Hello, > > I get the following panic when using the nvidia driver with a debug > kernel, when I disable INVARIANTS and WITNESS everything is working > fine! > > Here's the trace: > > ACPI APIC Table: > ioapic0: Changing APIC ID to 1 > ioapic0 irqs 0-23 on motherboard > panic: spin lock rm.mutex_mtx not in order list You need to add an entry for "rm.mutex_mtx" to the static spin lock order list in sys/kern/subr_witness.c. Something like this: Index: subr_witness.c =================================================================== RCS file: /usr/cvs/src/sys/kern/subr_witness.c,v retrieving revision 1.201 diff -u -r1.201 subr_witness.c --- subr_witness.c 15 Sep 2005 19:07:14 -0000 1.201 +++ subr_witness.c 21 Sep 2005 20:50:45 -0000 @@ -363,6 +363,7 @@ #ifdef SMP { "ap boot", &lock_class_mtx_spin }, #endif + { "rm.mutex_mtx", &lock_class_mtx_spin }, { "sio", &lock_class_mtx_spin }, #ifdef __i386__ { "cy", &lock_class_mtx_spin }, -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org