From owner-freebsd-current@FreeBSD.ORG Sat Sep 24 00:52:00 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 66EC416A41F for ; Sat, 24 Sep 2005 00:52:00 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id EAA8543D72 for ; Sat, 24 Sep 2005 00:51:53 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 24 Sep 2005 00:51:52 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp019) with SMTP; 24 Sep 2005 02:51:52 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-current@freebsd.org Date: Sat, 24 Sep 2005 02:51:38 +0200 User-Agent: KMail/1.8.1 References: <1127245262.32486.1.camel@akima.flintsbach.schmalzbauer.de> <200509211651.09666.jhb@FreeBSD.org> In-Reply-To: <200509211651.09666.jhb@FreeBSD.org> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10637785.4pWhvCUMTC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509240251.51025@harrymail> X-Y-GMX-Trusted: 0 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: Sat, 24 Sep 2005 00:52:00 -0000 --nextPart10637785.4pWhvCUMTC Content-Type: multipart/mixed; boundary="Boundary-01=_cMKNDGUbHEZ/7V6" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_cMKNDGUbHEZ/7V6 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Mittwoch, 21. September 2005 22:51 CEST schrieb John Baldwin: > 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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 }, Thanks a lot, now I have my usual kernel but with debuging stuff enabled=20 _and_ the nvidia driver, atached the dmesg. No I see again the LOR #073 and #075, but that's another story I think. The patch eliminated my nvidia-panic and like you stated it won't affect=20 any other things, so I just can vote for including it :) Thanks a lot, =2DHarry --Boundary-01=_cMKNDGUbHEZ/7V6 Content-Type: text/plain; charset="iso-8859-6"; name="dmesg-w-witness-nvidia_bin" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dmesg-w-witness-nvidia_bin" nvidia0: detached nvidia0: mem 0xfd000000-0xfdffffff,0xf0000000-= 0xf3ffffff irq 16 at device 0.0 on pci2 nvidia0: [GIANT-LOCKED] Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...12 6 5 2 3 2 2 2 1 0 0 0 done All buffers synced. Uptime: 1d14h20m50s Shutting down ACPI Rebooting... Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. =46reeBSD 6.0-BETA5 #2: Sat Sep 24 00:43:52 CEST 2005 harry@cale.flintsbach.schmalzbauer.de:/usr/obj/usr/src/sys/CALE WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(TM) CPU 1100MHz (1095.94-MHz 686-class= CPU) Origin =3D "GenuineIntel" Id =3D 0x6b1 Stepping =3D 1 Features=3D0x383fbff real memory =3D 536608768 (511 MB) avail memory =3D 511528960 (487 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 11 on acpi0 pci_link1: irq 9 on acpi0 pci_link2: irq 0 on acpi0 pci_link3: irq 11 on acpi0 pci_link4: irq 11 on acpi0 pci_link5: irq 0 on acpi0 pci_link6: irq 11 on acpi0 pci_link7: irq 10 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf8000000-0xfbfffff= f at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci2: on pcib1 nvidia0: mem 0xfd000000-0xfdffffff,0xf0000000-= 0xf3ffffff irq 16 at device 0.0 on pci2 nvidia0: [GIANT-LOCKED] pcib2: at device 30.0 on pci0 pci1: on pcib2 fxp0: port 0xdf00-0xdf3f mem = 0xfc9fe000-0xfc9fefff irq 20 at device 8.0 on pci1 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:03:47:f0:c2:ef fwohci0: port 0xdc00-0xdc7f mem 0xfc9ff800-0xfc9ffff= f irq 22 at device 10.0 on pci1 fwohci0: OHCI version 1.0 (ROM=3D1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:11:06:00:00:00:75:86 fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:11:06:00:75:86 fwe0: Ethernet address: 02:11:06:00:75:86 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me) firewire0: bus manager 0 (me) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177= ,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xef40-0xef5f i= rq 19 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ichsmb0: port 0xefa0-0xefaf irq 17 = at device 31.3 on pci0 ichsmb0: [GIANT-LOCKED] smbus0: on ichsmb0 smb0: on smbus0 uhci1: port 0xef80-0xef9f i= rq 23 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcm0: port 0xe800-0xe8ff,0xef00-0xef3f irq 17 at dev= ice 31.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: port 0x3f0-0x3f1,0x3f2-0x3f3,0x3f4-0x3f5,0x= 3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acp= i0 sio0: type 16550A, console sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 3 = on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pmtimer0 on isa0 orm0: at iomem 0xcf800-0xd07ff,0xd0800-0xd17ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <12 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uhub2: vendor 0x05e3 USB Hub, class 9/0, rev 1.01/0.05, addr 2 uhub2: 4 ports with 4 removable, bus powered ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 3 ucom1: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 4 uhub3: vendor 0x0424 product 0x0140, class 9/0, rev 1.10/0.00, addr 5 uhub3: 4 ports with 4 removable, self powered ums0: Logitech Trackball, rev 1.10/2.20, addr 6, iclass 3/1 ums0: 3 buttons and Z dir. ums1: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev 1.10/3.00= , addr 7, iclass 3/1 ums1: 3 buttons and Z dir. Timecounter "TSC" frequency 1095943265 Hz quality 800 Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 acd0: CDRW at ata1-master UDMA33 acd1: DVDROM at ata1-slave UDMA33 pcm0: measured ac97 link rate at 55940 Hz GEOM_LABEL: Label for provider ad0s2p1 is ufs/src. GEOM_LABEL: Label for provider ad0s2p2 is ufs/obj. GEOM_LABEL: Label for provider ad0s2p3 is ufs/ports. GEOM_LABEL: Label for provider ad0s2p4 is ufs/tmp. GEOM_LABEL: Label for provider ad0s2p5 is ufs/var. GEOM_LABEL: Label for provider ad0s2p6 is ufs/usr. GEOM_LABEL: Label for provider ad0s2p7 is ufs/compat. GEOM_LABEL: Label for provider ad0s2p8 is ufs/builder. GEOM_LABEL: Label for provider ad0s2p9 is ufs/local. cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device=20 cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata1 bus 0 target 1 lun 0 cd1: Removable CD-ROM SCSI-0 device=20 cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad0s1a lock order reversal 1st 0xc07fa040 Giant (Giant) @ /usr/src/sys/kern/kern_timeout.c:263 2nd 0xc1ed9018 fxp0 (network driver) @ /usr/src/sys/dev/fxp/if_fxp.c:1172 KDB: stack backtrace: kdb_backtrace(c07902f9,c1ed9018,c1e91980,c0778289,c077bb1d) at kdb_backtrac= e+0x2e witness_checkorder(c1ed9018,9,c077bb1d,494,c07966e7) at witness_checkorder+= 0x6c3 _mtx_lock_flags(c1ed9018,0,c077bb1d,494,c1ed5800) at _mtx_lock_flags+0x8a fxp_start(c1ed5800,12c,0,c1ed5800) at fxp_start+0x34 if_start(c1ed5800,0,c07966e7,197,402) at if_start+0x99 ether_output_frame(c1ed5800,c2154100,6,d589dbc8,d589da6c) at ether_output_f= rame+0x21b ether_output(c1ed5800,c2154100,d589dbc8,0,0) at ether_output+0x4be nd6_output(c1ed5800,c1ed5800,c2154100,d589dbc8,0) at nd6_output+0x3c1 ip6_output(c2154100,0,0,1,d589dc30) at ip6_output+0x10ca nd6_ns_output(c1ed5800,0,c21578a8,0,1) at nd6_ns_output+0x3b5 nd6_dad_ns_output(c20aed40,c2157800,107,1,c07fa040) at nd6_dad_ns_output+0x= 4d nd6_dad_timer(c2157800,0,c078d8d1,107,c066b100) at nd6_dad_timer+0x204 softclock(0,0,c0789db1,251,d589dd00) at softclock+0x24e ithread_loop(c1df0280,d589dd38,c0789ba8,30d,fd5daf48) at ithread_loop+0x162 fork_exit(c0584d90,c1df0280,d589dd38) at fork_exit+0xc1 fork_trampoline() at fork_trampoline+0x8 =2D-- trap 0x1, eip =3D 0, esp =3D 0xd589dd6c, ebp =3D 0 --- lock order reversal 1st 0xc244a090 inp (tcpinp) @ /usr/src/sys/netinet/tcp_usrreq.c:372 2nd 0xc1ed9018 fxp0 (network driver) @ /usr/src/sys/dev/fxp/if_fxp.c:1172 KDB: stack backtrace: kdb_backtrace(c07902f9,c1ed9018,c1e91980,c0778289,c077bb1d) at kdb_backtrac= e+0x2e witness_checkorder(c1ed9018,9,c077bb1d,494,c07966e7) at witness_checkorder+= 0x6c3 _mtx_lock_flags(c1ed9018,0,c077bb1d,494,c1ed5800) at _mtx_lock_flags+0x8a fxp_start(c1ed5800,12c,0,c1ed5800) at fxp_start+0x34 if_start(c1ed5800,0,c07966e7,197,202) at if_start+0x99 ether_output_frame(c1ed5800,c280ea00,6,c280ea00,100) at ether_output_frame+= 0x21b ether_output(c1ed5800,c280ea00,dbe35a8c,0,2,c0590001,c2222302,1,c078b8aa,12= c) at ether_output+0x4be arprequest(c1ed5800,dbe35ac0,dbe35b68,c1d944ac,fc0115ac) at arprequest+0x109 arpresolve(c1ed5800,c222f7bc,c2150400,dbe35b64,dbe35b00) at arpresolve+0x40e ether_output(c1ed5800,c2150400,dbe35b64,c222f7bc,c07fade0) at ether_output+= 0x82 ip_output(c2150400,0,dbe35b60,0,0) at ip_output+0x8a7 tcp_output(c244d564,c217f410,c2c6bc00,174,c2c622c8) at tcp_output+0x11ba tcp_usr_connect(c2c622c8,c217f410,c2c6bc00) at tcp_usr_connect+0x12a soconnect(c2c622c8,c217f410,c2c6bc00,c05eced6,8148b40) at soconnect+0x67 kern_connect(c2c6bc00,6,c217f410,c217f410,0) at kern_connect+0x8d connect(c2c6bc00,dbe35d04,c,422,3) at connect+0x41 syscall(3b,bfbf003b,dad4003b,805c000,6) at syscall+0x2c0 Xint0x80_syscall() at Xint0x80_syscall+0x1f =2D-- syscall (98, FreeBSD ELF32, connect), eip =3D 0x293c71af, esp =3D 0xb= fbfdd2c, ebp =3D 0xbfbfdd48 --- --Boundary-01=_cMKNDGUbHEZ/7V6-- --nextPart10637785.4pWhvCUMTC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDNKMmBylq0S4AzzwRAsqvAKCE3LnvmlldoJv/nypJ8nBvDrm90ACfVBkJ rJwnMmMd1LLkKwvLqb8hvXI= =Zvmf -----END PGP SIGNATURE----- --nextPart10637785.4pWhvCUMTC--