From owner-freebsd-current@FreeBSD.ORG Tue Aug 10 07:06:06 2004 Return-Path: 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 4E0D516A4CE; Tue, 10 Aug 2004 07:06:06 +0000 (GMT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD99443D41; Tue, 10 Aug 2004 07:06:05 +0000 (GMT) (envelope-from mike@urgle.com) Received: from guylian.urgle.com ([80.177.40.54]) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 1BuQhw-000Mb1-0X; Tue, 10 Aug 2004 07:06:04 +0000 Received: from mike by guylian.urgle.com with local (Exim 4.32; FreeBSD) id 1BuQhv-0007JK-Sh; Tue, 10 Aug 2004 07:06:03 +0000 Date: Tue, 10 Aug 2004 08:06:03 +0100 From: Mike Bristow To: Robert Watson Message-ID: <20040810070603.GA27291@urgle.com> References: <1092044482.20927.35.camel@singsing.eng.demon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: panic: mutex vr0 not owned at ...if_vr.c:571 when doing ifconfig X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 10 Aug 2004 07:06:06 -0000 On Mon, Aug 09, 2004 at 06:41:43PM -0400, Robert Watson wrote: > Hmm. I actually committed a slightly different patch as if_vr.c:1.93 to > acquire the lock around vr_setcfg() in vr_miibus_statchg(). Could you > check that that also solves the problem? When I tried that, it booted but paniced as soon as I ran 'ifconfig vr0 media blah': # ifconfig vr0 media 100baseTX panic: _mtx_lock_sleep: recursed on non-recursive mutex vr0 @ +/usr/src/sys/pci/if_vr.c:506 cpuid = 1 KDB: enter: panic [thread 100089] Stopped at kdb_enter+0x30: leave db> trace kdb_enter(... panic(... _mtx_lock_sleep _mtx_lock_flags vr_miibus_statchg miibus_statchg mii_phy_update amphy_service mii_mediachg vr_init_locked vr_init vr_ifmdia_upd ifmedia_ioctl vr_ioctl ifhwioctl ifioctl syscall Xint0x80_syscall -- You dont have to be illiterate to use the Internet, but it help's.