Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2001 09:15:06 -0600
From:      Brad Huntting <huntting@glarp.com>
To:        kc5vdj@yahoo.com
Cc:        freebsd-current@FreeBSD.ORG
Subject:   xl0 lock order reversal
Message-ID:  <200107301515.f6UFF6U78512@hunkular.glarp.com>
In-Reply-To: Your message of "Mon, 30 Jul 2001 07:12:58 CDT." <3B654F4A.EB02577@yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
My apologies for not looking into this more throughly before
posting to the list, but I thought someone might be interested.
The first time I run tcpdump after a reboot, I get this kernel
message:

	xl0: promiscuous mode enabled
	lock order reversal
	 1st 0xc04f3fa0 bpf global lock @ ../../../net/bpf.c:365
	 2nd 0xc16beb9c xl0 @ ../../../pci/if_xl.c:2824

I'm running a mostly generic 5.0 kernel built from sources down loaded
Jul 30 03:36 with a 1GHz Athlon system; the only difference from
the GENERIC config is:

	device          acpica
	options         ACPI_DEBUG
	profile         1

On a related note, I've noticed that when doing compiles and other
high load activities, my systems spends allot of time (nearly 50%)
in witness_lock(), which not only has a nested loop in it, but also
seems to do spin locking.  Are spinlock's really a good idea on a
single processor system (which is what I have)?


thanx,
brad


ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2001 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.0-CURRENT #0: Sat Jul 28 13:10:18 MDT 2001
    root@loquacious.glarp.com:/scratch/5.0/src/sys/i386/compile/ACPI
Calibrating clock(s) ... TSC clock: 1010038034 Hz, i8254 clock: 1193295 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: AMD Athlon(tm) Processor (1009.95-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
Data TLB: 24 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 268369920 (262080K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x00607000 - 0x0ffe7fff, 262017024 bytes (63969 pages)
avail memory = 255184896 (249204K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00fdb40
bios32: Entry = 0xfdb50 (c00fdb50)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf0000+0xdb71
pnpbios: Found PnP BIOS data at 0xc00f7710
pnpbios: Entry = f0000:6604  Rev = 1.0
Other BIOS signatures found:
Preloaded elf kernel "kernel" at 0xc05e1000.
Preloaded elf module "snd_sb16.ko" at 0xc05e109c.
Preloaded elf module "snd_sbc.ko" at 0xc05e113c.
Preloaded elf module "snd_pcm.ko" at 0xc05e11dc.
Preloaded elf module "bktr.ko" at 0xc05e127c.
Preloaded elf module "bktr_mem.ko" at 0xc05e1318.
Preloaded elf module "joy.ko" at 0xc05e13b8.
bktr_mem: memory holder loaded
null: <null device, zero device>
random: <entropy source>
mem: <memory & I/O>
Pentium Pro MTRR support enabled
WARNING: Driver mistake: destroy_dev on 154/0
Math emulator present
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
acpi0: <AMIINT > on motherboard
acpi0: power button is handled as a fixed feature programming model.
acpi0: sleep button is handled as a fixed feature programming model.
Timecounter "ACPI"  frequency 3579545 Hz
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_pcib0: <Host-PCI bridge> on acpi0
pci0: physical bus=0
	map[10]: type 3, range 32, base e8000000, size 26, enabled
	map[14]: type 3, range 32, base eedfe000, size 12, enabled
	map[18]: type 4, range 32, base 0000dc00, size  2, port disabled
found->	vendor=0x1022, dev=0x7006, revid=0x25
	bus=0, slot=0, func=0
	class=06-00-00, hdrtype=0x00, mfdev=1
found->	vendor=0x1022, dev=0x7007, revid=0x01
	bus=0, slot=1, func=0
	class=06-04-00, hdrtype=0x01, mfdev=1
found->	vendor=0x1022, dev=0x7408, revid=0x01
	bus=0, slot=7, func=0
	class=06-01-00, hdrtype=0x00, mfdev=1
	map[20]: type 4, range 32, base 0000f000, size  4, enabled
found->	vendor=0x1022, dev=0x7409, revid=0x07
	bus=0, slot=7, func=1
	class=01-01-8a, hdrtype=0x00, mfdev=0
found->	vendor=0x1022, dev=0x740b, revid=0x03
	bus=0, slot=7, func=3
	class=06-80-00, hdrtype=0x00, mfdev=0
	map[10]: type 1, range 32, base efffe000, size 12, enabled
found->	vendor=0x1022, dev=0x740c, revid=0x06
	bus=0, slot=7, func=4
	class=0c-03-10, hdrtype=0x00, mfdev=0
	intpin=d, irq=7
	map[10]: type 3, range 32, base eedff000, size 12, enabled
found->	vendor=0x109e, dev=0x0350, revid=0x12
	bus=0, slot=10, func=0
	class=04-00-00, hdrtype=0x00, mfdev=0
	intpin=a, irq=9
	map[10]: type 4, range 32, base 0000de00, size  7, enabled
	map[14]: type 1, range 32, base efffff80, size  7, enabled
found->	vendor=0x10b7, dev=0x9055, revid=0x24
	bus=0, slot=12, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	intpin=a, irq=10
	powerspec 1  supports D0 D1 D2 D3  current D0
pci0: <PCI bus> on acpi_pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pcib1:   secondary bus     1
pcib1:   subordinate bus   1
pcib1:   I/O decode        0xc000-0xcfff
pcib1:   memory decode     0xeee00000-0xefefffff
pcib1:   prefetched decode 0xe2c00000-0xe6cfffff
pci1: physical bus=1
	map[10]: type 3, range 32, base e4000000, size 25, enabled
	map[14]: type 1, range 32, base efefc000, size 14, enabled
	map[18]: type 1, range 32, base ef000000, size 23, enabled
found->	vendor=0x102b, dev=0x0525, revid=0x04
	bus=1, slot=5, func=0
	class=03-00-00, hdrtype=0x00, mfdev=0
	intpin=a, irq=11
	powerspec 2  supports D0 D3  current D0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at 5.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 756 ATA66 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xf000
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI probe 00 00
ata0-slave: ATAPI probe 00 00
ata0: mask=03 stat0=50 stat1=00
ata0-master: ATA probe 01 a5
ata0: devices=01
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xf008
ata1: mask=03 ostat0=50 ostat2=00
ata1-master: ATAPI probe 14 eb
ata1-slave: ATAPI probe 00 00
ata1: mask=03 stat0=00 stat1=00
ata1: devices=04
ata1: at 0x170 irq 15 on atapci0
pci0: <bridge, PCI-unknown> at 7.3 (no driver attached)
ohci0: <AMD-756 USB Controller> mem 0xefffe000-0xefffefff irq 7 at device 7.4 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <AMD-756 USB Controller> on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ums0: In Focus Cable Wizard \M-3, rev 1.00/1.01, addr 2, iclass 3/1
ums0: 3 buttons
ugen0: Logitech, Inc. Camera, rev 1.00/1.00, addr 3
bktr0: <BrookTree 848A> mem 0xeedff000-0xeedfffff irq 9 at device 10.0 on pci0
brooktree0: PCI bus latency is 32.
bktr0: buffer size 3555328, addr 0x5000000
bktr0: GPIO is 0x00fffff7
bktr0: Detected a DPL34-1@-@0 at 0x84
bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner, dpl3518a dolby.
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xde00-0xde7f mem 0xefffff80-0xefffffff irq 10 at device 12.0 on pci0
xl0: Ethernet address: 00:10:4b:c8:8f:a0
xl0: media options word: a
xl0: found MII/AUTO
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpf: xl0 attached
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0
npx0: <math processor> on motherboard
npx0: INT 16 interface
ata-: ata0 already exists, using ata2 instead
ata-: ata1 already exists, using ata3 instead
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
sc-: sc0 already exists, using sc1 instead
vga-: vga0 already exists, using vga1 instead
ex_isa_identify()
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
ata2 failed to probe at port 0x1f0 irq 14 on isa0
ata3 failed to probe at port 0x170 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0065
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000
psm0: current command byte:0065
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
joy0 at port 0x201 on isa0
pmtimer0 on isa0
ppc0: parallel port not found.
ppc0: <Parallel port> failed to probe at irq 7 on isa0
sbc0: <SoundBlaster 16> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0
sbc0: setting card to irq 5, drq 1, 5
pcm0: <SB16 DSP 4.11> on sbc0
pcm: setmap 6b8000, 1000; 0xcc3c5000 -> 6b8000
pcm: setmap 6ba000, 1000; 0xcc3c6000 -> 6ba000
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: irq maps: 0x1 0x9 0x1 0x1
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc1: no video adapter is found.
sc1: <System console> failed to probe on isa0
vga1: <Generic ISA VGA> failed to probe on isa0
isa_probe_children: probing PnP devices
adv0: Invalid baseport of 0xcf8 specified. Nearest valid baseport is 0x330.  Failing probe.
adv0: Invalid baseport of 0x20 specified. Nearest valid baseport is 0x100.  Failing probe.
adv0: Invalid baseport of 0x0 specified. Nearest valid baseport is 0x100.  Failing probe.
adv0: Invalid baseport of 0x40 specified. Nearest valid baseport is 0x100.  Failing probe.
adv0: Invalid baseport of 0x70 specified. Nearest valid baseport is 0x100.  Failing probe.
adv0: Invalid baseport of 0x61 specified. Nearest valid baseport is 0x100.  Failing probe.
unknown: <PNP0800> failed to probe at port 0x61 on isa0
unknown: <PNP0F03> can't assign resources
unknown: <PNP0F03> at irq 12 on isa0
unknown: <PNP0303> can't assign resources
unknown: <PNP0303> at port 0x60 on isa0
unknown: <PNP0700> can't assign resources
unknown: <PNP0700> at port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 on isa0
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> at port 0x2e8-0x2ef irq 3 on isa0
unknown: <PNP0510> can't assign resources
unknown: <PNP0510> at port 0x2e8-0x2ef irq 3 on isa0
unknown: <PNP0510> can't assign resources
unknown: <PNP0510> at port 0x2e8-0x2ef irq 3 on isa0
unknown: <PNP0400> can't assign resources
unknown: <PNP0400> at port 0x3bc-0x3bf irq 5 on isa0
unknown: <PNP0401> can't assign resources
unknown: <PNP0401> at port 0x3bc-0x3bf,0x7bc-0x7bf irq 5 on isa0
BIOS Geometries:
 0:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: faith0 attached
bpf: lo0 attached
bpf: ppp0 attached
Profiling kernel, textsize=2910800 [c01326e0..c03f9130]
ad0: success setting UDMA4 on AMD chip
Creating DISK ad0
ad0: <ST340823A/3.39> ATA-4 disk at ata0-master
ad0: 38166MB (78165360 sectors), 77545 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, 1 depth queue, UDMA66
ad0: piomode=4 dmamode=2 udmamode=5 cblid=1
ata1-master: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata1-master: success setting UDMA2 on AMD chip
acd0: <MATSHITADVD-ROM SR-8585/1W21> DVD-ROM drive at ata1 as master
acd0: read 10546KB/s (12041KB/s), 512KB buffer, UDMA33
acd0: Reads: CD-R, CD-RW, CD-DA stream, DVD-ROM, DVD-R, DVD-RAM, packet
acd0: Writes:
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable trayacd0: Medium: 120mm data disc, unlocked
Mounting root from ufs:/dev/ad0s1d
ad0s1: type 0xa5, start 63, end = 20161574, size 20161512 : OK
WARNING: / was not properly dismounted
start_init: trying /sbin/init
acpi_tz0: notified of zone configuration change
Linux ELF exec handler installed
linprocfs registered
xl0: promiscuous mode enabled
lock order reversal
 1st 0xc04f3fa0 bpf global lock @ ../../../net/bpf.c:365
 2nd 0xc16beb9c xl0 @ ../../../pci/if_xl.c:2824
xl0: promiscuous mode disabled

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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