Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2005 02:51:38 +0200
From:      Emanuel Strobl <Emanuel.strobl@gmx.net>
To:        freebsd-current@freebsd.org
Cc:        Harald Schmalzbauer <harry@schmalzbauer.de>
Subject:   Re: nvidia kld panic with debug kernel
Message-ID:  <200509240251.51025@harrymail>
In-Reply-To: <200509211651.09666.jhb@FreeBSD.org>
References:  <1127245262.32486.1.camel@akima.flintsbach.schmalzbauer.de> <200509211651.09666.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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: <D815EA EA81510A>
> > ioapic0: Changing APIC ID to 1
> > ioapic0 <Version 2.0> 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: <GeForce4 MX 440 with AGP8X> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  =3D 536608768 (511 MB)
avail memory =3D 511528960 (487 MB)
ACPI APIC Table: <D815EA EA81510A>
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
acpi0: <D815EA D815EPFV> on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 9 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 0 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 11 on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 11 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 0 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 11 on acpi0
pci_link7: <ACPI PCI Link LNKH> 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: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82815 (i815 GMCH) host to PCI bridge> mem 0xf8000000-0xfbfffff=
f at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci2: <PCI bus> on pcib1
nvidia0: <GeForce4 MX 440 with AGP8X> mem 0xfd000000-0xfdffffff,0xf0000000-=
0xf3ffffff irq 16 at device 0.0 on pci2
nvidia0: [GIANT-LOCKED]
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib2
fxp0: <Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet> port 0xdf00-0xdf3f mem =
0xfc9fe000-0xfc9fefff irq 20 at device 8.0 on pci1
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:03:47:f0:c2:ef
fwohci0: <VIA Fire II (VT6306)> 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: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> 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: <SBP-2/SCSI over FireWire> 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: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177=
,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xef40-0xef5f i=
rq 19 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> 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: <Intel 82801BA (ICH2) SMBus controller> port 0xefa0-0xefaf irq 17 =
at device 31.3 on pci0
ichsmb0: [GIANT-LOCKED]
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xef80-0xef9f i=
rq 23 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> 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: <Intel ICH2 (82801BA)> port 0xe800-0xe8ff,0xef00-0xef3f irq 17 at dev=
ice 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Analog Devices AD1885 AC97 Codec>
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <floppy drive controller> 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: <ECP parallel printer port> 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: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xcf800-0xd07ff,0xd0800-0xd17ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <12 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> 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 <Seagate ST380011A 3.04> at ata0-master UDMA100
acd0: CDRW <LITE-ON DVD+RW LDW-401S/ES0K> at ata1-master UDMA33
acd1: DVDROM <DV-516E/3.01> 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: <LITE-ON DVD+RW LDW-401S ES0K> 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: <TEAC DV-516E 3.01> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509240251.51025>