5.2-CURRENT yesterday: GIANT-LOCKED, lock order reversal

From: Chris Shenton <chris_at_shenton.org>
Date: Mon, 12 Apr 2004 13:03:54 -0400
Built world and new kernel from yesterday's CVSup and noticed a bunch
of [GIANT-LOCKED] in the bootup.  Then, after it came up, it spewed
errors about lock order reversal. I'm not clueful enough to understand
what it's trying to tell me :-(

Here's a "uname -a" info, then the dmesg output with GIANT-LOCK and
lock order reversal. Should I be concerned? Any work-arounds?  Thanks.


FreeBSD PECTOPAH.shenton.org 5.2-CURRENT FreeBSD 5.2-CURRENT #20: 
Sun Apr 11 23:01:54 EDT 2004
root_at_PECTOPAH.shenton.org:/usr/obj/usr/src/sys/PECTOPAH i386



Copyright (c) 1992-2004 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.
FreeBSD 5.2-CURRENT #20: Sun Apr 11 23:01:54 EDT 2004
    root_at_PECTOPAH.shenton.org:/usr/obj/usr/src/sys/PECTOPAH
WARNING: WITNESS option enabled, expect reduced performance.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0867000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc08671f4.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1799.81-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 671023104 (639 MB)
avail memory = 646942720 (616 MB)
Pentium Pro MTRR support enabled
random: <entropy source, Software, Yarrow>
cpu0 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL PE600SC> on motherboard
acpi0: [GIANT-LOCKED]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
pcibios: BIOS version 2.10
Found $PIR table, 7 entries at 0xc00fc310
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 2 INTA is routed to irq 10
pcib0: slot 7 INTA is routed to irq 5
pcib0: slot 15 INTA is routed to irq 3
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 0xecc0-0xecff mem 0xfe100000-0xfe11ffff irq 10 at device 2.0 on pci0
em0: Bus reserved 0x20000 bytes for rid 0x10 type 3 at 0xfe100000
em0: Bus reserved 0x40 bytes for rid 0x18 type 4 at 0xecc0
em0: [GIANT-LOCKED]
em0: Ethernet address: 00:c0:9f:0f:a3:ff
em0:  Speed:N/A  Duplex:N/A
amr0: <LSILogic MegaRAID> mem 0xfeb00000-0xfeb0ffff irq 5 at device 7.0 on pci0
amr0: Bus reserved 0x10000 bytes for rid 0x10 type 3 at 0xfeb00000
amr0: [GIANT-LOCKED]
amr0: <LSILogic CERC ATA100/4ch> Firmware 6.61, BIOS 1.01, 16MB RAM
pci0: <display, VGA> at device 8.0 (no driver attached)
atapci0: <ServerWorks CSB6 UDMA100 controller> port 0x8b0-0x8bf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1 on pci0
atapci0: Bus reserved 0x10 bytes for rid 0x20 type 4 at 0x8b0
ohci0: <OHCI (generic) USB controller> mem 0xfe120000-0xfe120fff irq 3 at device 15.2 on pci0
ohci0: Bus reserved 0x1000 bytes for rid 0x10 type 3 at 0xfe120000
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
isab0: <PCI-ISA bridge> at device 15.3 on pci0
isa0: <ISA bus> on isab0
fdc0: cannot reserve I/O port range (1 ports)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 1 on acpi0
ppc0: Generic chipset (ECP/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
fdc0: cannot reserve I/O port range (1 ports)
orm0: <Option ROMs> at iomem 0xec000-0xeffff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: cannot reserve I/O port range (6 ports)
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1799810164 Hz quality 800
Timecounters tick every 10.000 msec
amrd0: <LSILogic MegaRAID logical drive> on amr0
amrd0: 19068MB (39051264 sectors) RAID 1 (optimal)
amrd1: <LSILogic MegaRAID logical drive> on amr0
amrd1: 114428MB (234348544 sectors) RAID 1 (optimal)
Mounting root from ufs:/dev/amrd0s1a
WARNING: /home was not properly dismounted
WARNING: /more was not properly dismounted
em0: Link is up 100 Mbps Full Duplex

lock order reversal
 1st 0xc52e6c38 filedesc structure (filedesc structure) _at_ /usr/src/sys/kern/sys_generic.c:902
 2nd 0xc072b6c0 Giant (Giant) _at_ /usr/src/sys/fs/specfs/spec_vnops.c:387
Stack backtrace:
backtrace(0,ffffffff,c07329a0,c07329c8,c070203c) at backtrace+0x12
witness_checkorder(c072b6c0,9,c06ab173,183) at witness_checkorder+0x593
_mtx_lock_flags(c072b6c0,0,c06ab173,183) at _mtx_lock_flags+0x67
spec_poll(dc844af0,dc844b10,c058f0e6,dc844af0,c071f4e0) at spec_poll+0x10e
spec_vnoperate(dc844af0) at spec_vnoperate+0x13
vn_poll(c5216ee0,40,c1bb8d80,c506ce70) at vn_poll+0x3a
selscan(c506ce70,dc844ba4,dc844b94,4,c0754ee0) at selscan+0xf5
kern_select(c506ce70,4,bfbfe4e0,0,0) at kern_select+0x31d
select(c506ce70,dc844d14,5,3,202) at select+0x45
syscall(2f,2f,2f,ffffffff,0) at syscall+0x217
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (93), eip = 0x282ba183, esp = 0xbfbfe47c, ebp = 0xbfbfe598 ---
Received on Mon Apr 12 2004 - 08:03:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:50 UTC