From owner-freebsd-current Fri Jun 7 3:47:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from hpdi.ath.cx (pc1-nfds1-5-cust34.not.cable.ntl.com [80.4.34.34]) by hub.freebsd.org (Postfix) with ESMTP id DA04E37B403 for ; Fri, 7 Jun 2002 03:46:44 -0700 (PDT) Received: from hpdi.ath.cx (localhost.hpdi.net [127.0.0.1]) by hpdi.ath.cx (8.12.3/8.12.3) with ESMTP id g57Afxq0000697 for ; Fri, 7 Jun 2002 11:42:00 +0100 (BST) (envelope-from hitenp@hpdi.ath.cx) Received: (from hitenp@localhost) by hpdi.ath.cx (8.12.3/8.12.3/Submit) id g57AfwDH000696 for current@FreeBSD.org; Fri, 7 Jun 2002 11:41:58 +0100 (BST) Date: Fri, 7 Jun 2002 11:41:58 +0100 From: Hiten Pandya To: current@FreeBSD.org Subject: Lock information from SMP Kernel of June 7 Message-ID: <20020607104158.GA581@hpdi.ath.cx> Reply-To: hiten@uk.FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Operating-System: FreeBSD hpdi.ath.cx 5.0-CURRENT FreeBSD 5.0-CURRENT Organisation: Hiten Pandya, Leicester LE5 3NF, United Kingdom X-PGP-Key: http://www.pittgoth.com/~hiten/pubkey.asc 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 --7iMSBzlTiPOCCT2k Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. As I am building an SMP kernel after a long time in -CURRENT. I thought people will find it useful if I posted the output from my dmesg which is showing a big amount of lock order related warnings. Hope this helps. Also, there is one problem I found (?), which when we pass the loader "boot -d", it goes into the debugger, which is what it should do, but from the DDB debugger, if we type "show locks"; then the kernel/debugger panics with some witness related message. I cant get more info on this one because I dont have a serial console. Is this some sort of a mistake which I am making? Also, when I load the sound driver, I get a whole lot of lock order problems. My soundcard is SoundBlaster Live! 1024, which uses the pcm driver in conjuction with snd_emu10k1 (both loader as kernel modules). If the given information hasn't helped at all, then I apologise for the inconvenience. Thanks. Regards. P.S. MPTable Output, dmesg(1) output attached. --=20 Hiten Pandya http://storm.uk.FreeBSD.org/~hiten Finger hiten@storm.uk.FreeBSD.org for PGP public key -- 4FB9 C4A9 4925 CF97 9BF3 ADDA 861D 5DBD E4E3 03C3=20 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" Content-Transfer-Encoding: quoted-printable Copyright (c) 1992-2002 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: Fri Jun 7 09:48:11 BST 2002 hitenp@hpdi.ath.cx:/c1/obj/data/dev/src/sys/SMP5 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "eventhandler" locke= d from /data/dev/src/sys/kern/subr_eventhandler.c:162 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "eventhandler" locke= d from /data/dev/src/sys/kern/subr_eventhandler.c:162 Preloaded elf kernel "/boot/kernel/kernel" at 0xc03fa000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc03fa0a8. Calibrating clock(s) ... TSC clock: 733403736 Hz, i8254 clock: 1193254 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: Pentium III/Pentium III Xeon/Celeron (733.37-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x683 Stepping =3D 3 Features=3D0x383fbff real memory =3D 536805376 (524224K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00424000 - 0x1ffe7fff, 532430848 bytes (129988 pages) avail memory =3D 517844992 (505708K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 SMP: CPU0 apic_initialize(): lint0: 0x00000700 lint1: 0x00010400 TPR: 0x00000010 SVR: 0x000001ff FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 bios32: Found BIOS32 Service Directory header at 0xc00fdad0 bios32: Entry =3D 0xfdae0 (c00fdae0) Rev =3D 0 Len =3D 1 pcibios: PCI BIOS entry at 0xf0000+0xdb01 pnpbios: Found PnP BIOS data at 0xc00f6a10 pnpbios: Entry =3D f0000:58e4 Rev =3D 1.0 Other BIOS signatures found: /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "sf_bufs list lock" = locked from /data/dev/src/sys/kern/uipc_syscalls.c:1556 null: mem: Pentium Pro MTRR support enabled VESA: information block 56 45 53 41 00 03 00 01 00 01 01 00 00 00 22 00=20 00 01 00 02 11 03 07 01 00 01 1a 01 00 01 2f 01=20 00 01 00 01 01 01 02 01 03 01 04 01 05 01 06 01=20 07 01 08 01 09 01 0a 01 0b 01 0c 01 0e 01 0f 01=20 VESA: 33 mode(s) found VESA: v3.0, 32768k memory, flags:0x1, mode table:0xc0359642 (1000022) VESA: NVidia VESA: NVidia Corporation NV10 Reference Board Chip Rev A1 random: SMP: CPU0 bsp_apic_configure(): lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000010 SVR: 0x000001ff pci_open(1): mode 1 addr port (0x0cf8) is 0x80000060 pci_open(1a): mode1res=3D0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=3D060000] [hdr=3D00] is there (id=3D06911106) Using $PIR table, 8 entries at 0xc00f7100 npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: power button is handled as a fixed feature programming model. ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 ACPI timer looks GOOD min =3D 1, max =3D 2, width =3D 2 Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_cpu0: on acpi0 acpi_cpu1: on acpi0 acpi_tz0: on acpi0 acpi_button0: on acpi0 acpi_pcib0: port 0xcf8-0xcff on acpi0 pci0: physical bus=3D0 map[10]: type 3, range 32, base e0000000, size 26, enabled found-> vendor=3D0x1106, dev=3D0x0691, revid=3D0xc4 bus=3D0, slot=3D0, func=3D0 class=3D06-00-00, hdrtype=3D0x00, mfdev=3D0 powerspec 2 supports D0 D3 current D0 found-> vendor=3D0x1106, dev=3D0x8598, revid=3D0x00 bus=3D0, slot=3D1, func=3D0 class=3D06-04-00, hdrtype=3D0x01, mfdev=3D0 found-> vendor=3D0x1106, dev=3D0x0686, revid=3D0x22 bus=3D0, slot=3D7, func=3D0 class=3D06-01-00, hdrtype=3D0x00, mfdev=3D1 map[20]: type 4, range 32, base 0000ffa0, size 4, enabled found-> vendor=3D0x1106, dev=3D0x0571, revid=3D0x10 bus=3D0, slot=3D7, func=3D1 class=3D01-01-8a, hdrtype=3D0x00, mfdev=3D0 powerspec 2 supports D0 D3 current D0 map[20]: type 4, range 32, base 0000c800, size 5, enabled found-> vendor=3D0x1106, dev=3D0x3038, revid=3D0x10 bus=3D0, slot=3D7, func=3D2 class=3D0c-03-00, hdrtype=3D0x00, mfdev=3D0 intpin=3Dd, irq=3D10 powerspec 2 supports D0 D3 current D0 found-> vendor=3D0x1106, dev=3D0x3057, revid=3D0x30 bus=3D0, slot=3D7, func=3D4 class=3D0c-05-00, hdrtype=3D0x00, mfdev=3D0 powerspec 2 supports D0 D3 current D0 map[10]: type 1, range 32, base dffee000, size 12, enabled map[14]: type 4, range 32, base 0000cc00, size 6, enabled map[18]: type 1, range 32, base dfe00000, size 20, enabled found-> vendor=3D0x8086, dev=3D0x1229, revid=3D0x08 bus=3D0, slot=3D9, func=3D0 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 intpin=3Da, irq=3D5 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type 4, range 32, base 0000d000, size 8, enabled map[14]: type 1, range 32, base dffeff00, size 8, enabled found-> vendor=3D0x10ec, dev=3D0x8139, revid=3D0x10 bus=3D0, slot=3D10, func=3D0 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 intpin=3Da, irq=3D9 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type 4, range 32, base 0000d400, size 5, enabled found-> vendor=3D0x1102, dev=3D0x0002, revid=3D0x07 bus=3D0, slot=3D11, func=3D0 class=3D04-01-00, hdrtype=3D0x00, mfdev=3D1 intpin=3Da, irq=3D10 powerspec 1 supports D0 D1 D2 D3 current D0 map[10]: type 4, range 32, base 0000dc00, size 3, enabled found-> vendor=3D0x1102, dev=3D0x7002, revid=3D0x07 bus=3D0, slot=3D11, func=3D1 class=3D09-80-00, hdrtype=3D0x00, mfdev=3D1 powerspec 1 supports D0 D1 D2 D3 current D0 map[10]: type 1, range 32, base dfff0000, size 16, enabled map[14]: type 4, range 32, base 0000d800, size 3, enabled found-> vendor=3D0x14f1, dev=3D0x1033, revid=3D0x08 bus=3D0, slot=3D12, func=3D0 class=3D07-80-00, hdrtype=3D0x00, mfdev=3D0 intpin=3Da, irq=3D11 powerspec 2 supports D0 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 0x9000-0x9fff pcib1: memory decode 0xdda00000-0xdfafffff pcib1: prefetched decode 0xcd800000-0xdd8fffff pci1: physical bus=3D1 map[10]: type 1, range 32, base de000000, size 24, enabled map[14]: type 3, range 32, base d0000000, size 27, enabled found-> vendor=3D0x10de, dev=3D0x0110, revid=3D0xa1 bus=3D1, slot=3D0, func=3D0 class=3D03-00-00, hdrtype=3D0x00, mfdev=3D0 intpin=3Da, irq=3D11 powerspec 2 supports D0 D3 current D0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on = pci0 ata0: iobase=3D0x01f0 altiobase=3D0x03f6 bmaddr=3D0xffa0 ata0: mask=3D03 ostat0=3D50 ostat2=3D50 ata0-slave: ATAPI 00 00 ata0-master: ATAPI 00 00 ata0: mask=3D03 stat0=3D50 stat1=3D50 ata0-master: ATA 01 a5 ata0-slave: ATA 01 a5 ata0: devices=3D03 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=3D0x0170 altiobase=3D0x0376 bmaddr=3D0xffa8 ata1: mask=3D03 ostat0=3D50 ostat2=3D50 ata1-master: ATAPI 14 eb ata1-slave: ATAPI 14 eb ata1: mask=3D03 stat0=3D10 stat1=3D00 ata1: devices=3D0c ata1: at 0x170 irq 15 on atapci0 pci0: at device 7.2 (no driver attached) pci0: at device 7.4 (no driver attached) fxp0: port 0xcc00-0xcc3f mem 0xdfe00000-0= xdfefffff,0xdffee000-0xdffeefff irq 5 at device 9.0 on pci0 fxp0: using memory space register mapping fxp0: Ethernet address 00:06:29:af:90:cf fxp0: PCI IDs: 8086 1229 1014 105c 0008 fxp0: Dynamic Standby mode is disabled inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: fxp0 attached rl0: port 0xd000-0xd0ff mem 0xdffeff00-0xdffeff= ff irq 9 at device 10.0 on pci0 rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mo= de /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 lock order reversal 1st 0xd56029a4 rl0 (network driver) @ /data/dev/src/sys/pci/if_rl.c:855 2nd 0xc02df020 allproc (allproc) @ /data/dev/src/sys/kern/kern_fork.c:309 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 rl0: Ethernet address: 00:50:bf:d2:86:33 /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:855 miibus1: on rl0 rlphy0: on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto /data/dev/src/sys/vm/uma_core.c:1327: could sleep with "rl0" locked from /d= ata/dev/src/sys/pci/if_rl.c:587 bpf: rl0 attached pci0: at device 11.0 (no driver attached) pci0: