From owner-freebsd-current Mon Jul 30 8:15:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from hunkular.glarp.com (hunkular.glarp.com [199.117.25.251]) by hub.freebsd.org (Postfix) with ESMTP id 196CB37B401 for ; Mon, 30 Jul 2001 08:15:13 -0700 (PDT) (envelope-from huntting@hunkular.glarp.com) Received: from hunkular.glarp.com (localhost [127.0.0.1]) by hunkular.glarp.com (8.11.3/8.11.3) with ESMTP id f6UFF6U78512; Mon, 30 Jul 2001 09:15:06 -0600 (MDT) (envelope-from huntting@hunkular.glarp.com) Message-Id: <200107301515.f6UFF6U78512@hunkular.glarp.com> To: kc5vdj@yahoo.com Cc: freebsd-current@FreeBSD.ORG Subject: xl0 lock order reversal In-Reply-To: Your message of "Mon, 30 Jul 2001 07:12:58 CDT." <3B654F4A.EB02577@yahoo.com> Date: Mon, 30 Jul 2001 09:15:06 -0600 From: Brad Huntting Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 AMD Features=0xc0440000<,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: random: mem: Pentium Pro MTRR support enabled WARNING: Driver mistake: destroy_dev on 154/0 Math emulator present apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 acpi0: 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: on acpi0 acpi_tz0: on acpi0 acpi_button0: on acpi0 acpi_pcib0: 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: on acpi_pcib0 pcib1: 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: on pcib1 pci1: at 5.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: 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: at 7.3 (no driver attached) ohci0: mem 0xefffe000-0xefffefff irq 7 at device 7.4 on pci0 usb0: OHCI version 1.0, legacy support usb0: 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: 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, 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: 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: 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: