From owner-freebsd-current@FreeBSD.ORG Wed Aug 17 15:51:17 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 5B42316A41F; Wed, 17 Aug 2005 15:51:17 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8228743D5A; Wed, 17 Aug 2005 15:51:16 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0ILD00F8FIPFF4@ms-dienst.rz.rwth-aachen.de>; Wed, 17 Aug 2005 17:51:15 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 17 Aug 2005 17:51:14 +0200 (MEST) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by relay.rwth-aachen.de (8.13.3/8.13.3/1) with ESMTP id j7HFpEA9024139; Wed, 17 Aug 2005 17:51:14 +0200 (MEST) Received: from moria.hitnet.rwth-aachen.de ([137.226.181.149] helo=haakonia.hitnet.rwth-aachen.de) by bigboss.hitnet.rwth-aachen.de with esmtp (Exim 3.35 #1 (Debian)) id 1E5QCA-000099-00; Wed, 17 Aug 2005 17:51:14 +0200 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 7C70F28439; Wed, 17 Aug 2005 17:50:44 +0200 (CEST) Date: Wed, 17 Aug 2005 17:50:44 +0200 From: Christian Brueffer In-reply-to: <200508171002.56163.jhb@FreeBSD.org> To: John Baldwin Message-id: <20050817155044.GA911@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=sdtB3X0nJg68CQEu; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.6i X-Operating-System: FreeBSD 6.0-BETA2 X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <200508101657.18678.jhb@FreeBSD.org> <20050816091309.GA893@unixpages.org> <200508171002.56163.jhb@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: Locking fixes for my(4) 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, 17 Aug 2005 15:51:17 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 17, 2005 at 10:02:55AM -0400, John Baldwin wrote: > On Tuesday 16 August 2005 05:13 am, Christian Brueffer wrote: > > On Wed, Aug 10, 2005 at 04:57:18PM -0400, John Baldwin wrote: > > > I've fixed up the locking for the my(4) ethernet device driver but ha= ve > > > no hardware to test. Can someone please test these patches? Thanks. > > > > > > http://www.freebsd.org/~jhb/patches/my_locking.patch > > > > This one works fine. >=20 > Thanks for testing! I've just refreshed the sf_locking.patch patch as we= ll (I=20 > think the last version I pointed you at didn't compile) which has the=20 > recursive panic you reported fixed. >=20 panic: mutex sf0 not owned at /usr/home/build/src/sys/kern/kern_mutex.c:300 cpuid =3D 0 KDB: enter: panic [thread pid 220 tid 100071 ] Stopped at kdb_enter+0x30: leave =20 db> tr Tracing pid 220 tid 100071 td 0xc1d83600 kdb_enter(c07945bc,0,c0793ab3,d8945b08,c1d83600) at kdb_enter+0x30 panic(c0793ab3,c1ad7aa0,c0793946,12c,c1ac2acc) at panic+0x14e _mtx_assert(c1ac2acc,1,c0793946,12c,c1ac2a80) at _mtx_assert+0x87 _mtx_unlock_flags(c1ac2acc,0,c08ea1ea,4b9,c1adb800) at _mtx_unlock_flags+0x= 90 sf_init(c1ac2a80,740,c07a88e0,8020690c,c1ac2a80) at sf_init+0x59 ether_ioctl(c1adb800,8020690c,c1d41d00,c05a7f61,0) at ether_ioctl+0x67 sf_ioctl(c1adb800,8020690c,c1d41d00,100,1) at sf_ioctl+0xbc in_ifinit(c1adb800,c1d41d00,c1c49790,0,1) at in_ifinit+0x208 in_control(c1e24de8,8040691a,c1c49780,c1adb800,c1d83600) at in_control+0x986 ifioctl(c1e24de8,8040691a,c1c49780,c1d83600,2) at ifioctl+0x1cd soo_ioctl(c1d81048,8040691a,c1c49780,c19dca80,c1d83600) at soo_ioctl+0x3ef ioctl(c1d83600,d8945d04,c,422,3) at ioctl+0x45d syscall(3b,3b,3b,80beac0,1) at syscall+0x2c0 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip =3D 0x8055473, esp =3D 0xbfbfe5= fc, ebp =3D 0xbfbfee68 --- I can ship you a card, but it would take some time because US customs is pretty anal these days :-/ - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFDA1zUbHYXjKDtmC0RArNbAJ9woAzPXs1NzQKH1jj4XuncN/6gbgCfcLi2 J4stMNKwAfe6uQxEeBOPeSs= =LhNU -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--