From owner-freebsd-current@FreeBSD.ORG Mon May 12 14:04:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0AE337B401 for ; Mon, 12 May 2003 14:04:09 -0700 (PDT) Received: from xbsd.net (0x50a16596.boanxx13.adsl-dhcp.tele.dk [80.161.101.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76D5443F3F for ; Mon, 12 May 2003 14:04:08 -0700 (PDT) (envelope-from esbjerg@xbsd.net) Received: by xbsd.net (Postfix, from userid 1000) id 707D13DE5B; Mon, 12 May 2003 23:03:47 +0200 (CEST) Date: Mon, 12 May 2003 23:03:47 +0200 From: Sven Esbjerg To: current@freebsd.org Message-ID: <20030512210347.GA27046@gosling.opasia.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: lock order reversel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 21:04:10 -0000 I just updated my machine to current this weekend. Today I built a new kernel based on GERNERIC with on thing added: device pcm After a reboot I get a lock order reversal when starting X. == lock order reversal 1st 0xc2916a18 vm object (vm object) @ vm/vm_object.c:512 2nd 0xc082f110 system map (system map) @ vm/vm_kern.c:325 Stack backtrace: backtrace(c0529f09,c082f110,c053b5b7,c053b5b7,c053b45f) at backtrace+0x17 witness_lock(c082f110,8,c053b45f,145,0) at witness_lock+0x697 _mtx_lock_flags(c082f110,0,c053b456,145,3) at _mtx_lock_flags+0xb1 _vm_map_lock(c082f0b0,c053b456,145,d2515ab8,c0344904) at _vm_map_lock+0x36 kmem_malloc(c082f0b0,1000,101,d2515b24,c0489140) at kmem_malloc+0x66 page_alloc(c083a240,1000,d2515b17,101,c0595dac) at page_alloc+0x27 slab_zalloc(c083a240,101,c053cdf4,66f,c083a924) at slab_zalloc+0x150 uma_zone_slab(c083a240,101,c053cdeb,66f,0) at uma_zone_slab+0xd8 uma_zalloc_internal(c083a240,0,101,6ef,0) at uma_zalloc_internal+0x55 uma_zfree_arg(c083a900,c292d000,0,d2515bcc,c0470f28) at uma_zfree_arg+0x2cb dev_pager_putfake(c292d000,0,c053ac85,bc,c2916a18) at dev_pager_putfake+0x3a dev_pager_dealloc(c2916a18,1,c053ccfa,10b,0) at dev_pager_dealloc+0xc8 vm_pager_deallocate(c2916a18,0,c053bee8,25e,c05e04e8) at vm_pager_deallocate+0x3 d vm_object_terminate(c2916a18,0,c053bee8,200,c28d77f8) at vm_object_terminate+0x1 f4 vm_object_deallocate(c2916a18,c28d77f8,c2916a18,c28d77f8,d2515c9c) at vm_object_ deallocate+0x217 vm_map_entry_delete(c0ed3400,c28d77f8,c053b625,86e,c0525945) at vm_map_entry_del ete+0x3b vm_map_delete(c0ed3400,282d4000,282d5000,1000,282d4000) at vm_map_delete+0x453 vm_map_remove(c0ed3400,282d4000,282d5000,0,c29127e8) at vm_map_remove+0x58 munmap(c2816000,d2515d10,c0540dcc,3fb,2) at munmap+0x9e syscall(2f,2f,2f,f8000,1000) at syscall+0x26e Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (73), eip = 0x28245153, esp = 0xbfbff97c, ebp = 0xbfbff9a8 --- It starts just before the Matrox mga modules is loaded. Also note from the dmesg that something wicked is happening with the USB controller. This 'port error' started after I upgraded from RELEASE to current. However my usb-mouse keeps working. Regards Sven Esbjerg dmesg: Copyright (c) 1992-2003 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.1-BETA #1: Mon May 12 21:23:56 CEST 2003 root@enzo.home.xbsd.net:/usr/src/sys/i386/compile/GENERIC Preloaded elf kernel "/boot/kernel/kernel" at 0xc0746000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07461f4. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 467730823 Hz CPU: Pentium II/Pentium II Xeon/Celeron (467.73-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x665 Stepping = 5 Features=0x183f9ff real memory = 268369920 (255 MB) avail memory = 252833792 (241 MB) Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 7 entries at 0xc00fdca0 acpi_bus_number: root bus has no _BBN, assuming 0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_button0: on acpi0 pcib0: port 0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 2.0 on pci0 isa0: on isab0 atapci0: port 0xa000-0xa00f at device 2.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xa400-0xa41f irq 10 at device 2.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub0: port error, restarting port 1 uhub0: port error, giving up port 1 uhub0: port error, restarting port 2 uhub0: port error, giving up port 2 ums0: Logitech USB Mouse, rev 1.10/6.10, addr 2, iclass 3/1 ums0: 4 buttons and Z dir. pci0: at device 2.3 (no driver attached) fxp0: port 0xa800-0xa81f mem 0xec000000-0xec0fffff,0xec200000-0xec200fff irq 12 at device 13.0 on pci0 fxp0: Ethernet address 00:08:c7:39:8e:f0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto adv0: port 0xac00-0xacff mem 0xec201000-0xec2010ff irq 5 at device 14.0 on pci0 adv0: AdvanSys SCSI Host Adapter, SCSI ID 7, queue depth 16 pci0: at device 15.0 (no driver attached) pcm0: port 0xc000-0xc003,0xbc00-0xbc03,0xb800-0xb80f,0xb400-0xb40f,0xb000-0xb03f irq 5 at device 16.0 on pci0 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 ppbus0: IEEE1284 device found /NIBBLE Probing for PnP devices on ppbus0: ppbus0: HP ENHANCED PCL5,PJL plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: