From owner-freebsd-current@FreeBSD.ORG Sun Jul 29 05:00:43 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CDB14106564A for ; Sun, 29 Jul 2012 05:00:43 +0000 (UTC) (envelope-from dave-lists-freebsd-current@weller-fahy.com) Received: from tigger.weller-fahy.com (sinecure.xen.prgmr.com [71.19.148.52]) by mx1.freebsd.org (Postfix) with ESMTP id B15038FC0A for ; Sun, 29 Jul 2012 05:00:43 +0000 (UTC) Received: (qmail 28762 invoked from network); 28 Jul 2012 21:56:02 -0700 Received: from unknown (HELO weller-fahy.com) (dave@weller-fahy.com@24.209.97.39) by tigger.weller-fahy.com with AES256-SHA encrypted SMTP; 28 Jul 2012 21:56:02 -0700 Date: Sun, 29 Jul 2012 00:53:55 -0400 From: "David J. Weller-Fahy" To: freebsd-current@freebsd.org Message-ID: <20120729045354.GA1054@weller-fahy.com> Mail-Followup-To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: Mutt/1.5.21+66 (70810a88ce9f) (2011-07-01) Subject: Panic on boot after svn update 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: Sun, 29 Jul 2012 05:00:43 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable So, I recently updated and encountered a panic on boot which is reproducible, and wanted to see if anyone's encountered this before I file a PR. I found a problem in (I think) recent changes to the e1000 driver. I'm running FreeBSD 10-CURRENT as a VirtualBox guest. #v+ FreeBSD fork-pooh 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r238764: Sat Jul 28 = 17:21:47 EDT 2012 root@fork-pooh:/usr/obj/usr/src/sys/GENERIC amd64 #v- I have the Adapter Type set to, "Intel PRO/1000 MT Desktop (82540EM)", and = the following card is detected by pciconf. #v+ dave@fork-pooh:~$ sudo pciconf -l -bcev =2E.. em0@pci0:0:3:0: class=3D0x020000 card=3D0x001e8086 chip=3D0x100e8086 rev=3D= 0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82540EM Gigabit Ethernet Controller' class =3D network subclass =3D ethernet bar [10] =3D type Memory, range 32, base 0xf0000000, size 131072, ena= bled bar [18] =3D type I/O Port, range 32, base 0xd010, size 8, enabled cap 01[dc] =3D powerspec 2 supports D0 D3 current D0 cap 07[e4] =3D PCI-X supports 2048 burst read, 1 split transaction =2E.. #v- With revision 238764 the system boots and connects to the network with no problem. However, if I update to 238770 (as for why 238770, last revision which touched if_lem.c [1])... [1]: http://svnweb.freebsd.org/base/head/sys/dev/e1000/if_lem.c?view=3Dlog #v+ dave@fork-pooh:/usr/src$ sudo svn up -r 238770 Password: Updating '.': U sys/netinet/ip_carp.c U sys/dev/e1000/if_lem.c U sys/dev/usb/serial/uplcom.c U sys/dev/usb/usbdevs Updated to revision 238770. dave@fork-pooh:/usr/src$ cd /usr/obj/ dave@fork-pooh:/usr/obj$ sudo chflags -R noschg * dave@fork-pooh:/usr/obj$ sudo rm -rf * dave@fork-pooh:/usr/obj$ cd /usr/src/ dave@fork-pooh:/usr/src$ sudo make buildkernel dave@fork-pooh:/usr/src$ make installkernel dave@fork-pooh:/usr/src$ sudo shutdown -r now =2E.. #v- Upon reboot, I see... #v+ =2E.. Updating motd:. Starting ntpd. panic: _mtx_lock_sleep: recursed on non-recursive mutex em0 @ /usr/src/sys/dev/e1000/if_lem.c:881 cpuid =3D 0 KDB: enter: panic [ thread pid 12 tid 100025 ] Stopped at kdb_enter+0x3b: movq $0,0x9c4752(%rip) #v- After changing the Network Adapter (in VirtualBox) to "PCnet-PCI II (Am79C970A)" the system boots up correctly (on the same revision), and the network is functional. What other information would be useful in figuring out what's wrong? Regards, --=20 dave [ please don't CC me ] --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iD8DBQFQFMHizahokXOb2UwRAphAAKCkJZfiOM3hRDNct+xqeJ0kj5T5igCcD1fa Tz+QMCvX6ziwyHfW5OyfTUA= =QXwO -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--