From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 19 11:20:27 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20DB416A4D5 for ; Mon, 19 Apr 2004 11:20:27 -0700 (PDT) Received: from vm.codegen.com (vm.codegen.com [192.160.193.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC19A43D39 for ; Mon, 19 Apr 2004 11:20:26 -0700 (PDT) (envelope-from parag@codegen.com) Received: from vm.codegen.com (parag@localhost.codegen.com [127.0.0.1]) by vm.codegen.com (8.12.11/8.12.11) with ESMTP id i3JIKQs2083693 for ; Mon, 19 Apr 2004 11:20:26 -0700 (PDT) (envelope-from parag@vm.codegen.com) Organization: CodeGen, Inc. X-URL: http://www.codegen.com/ X-Image-URL: http://www.codegen.com/images/CG-logo-only.gif X-Face: =O'Kj74icvU|oS*<7gS/8'\Pbpm}okVj*@UC!IgkmZQAO!W[|iBiMs*|)n*`X ]pW%m>Oz_mK^Gdazsr.Z0/JsFS1uF8gBVIoChGwOy{EK=<6g?aHE`[\S]C]T0Wm To: freebsd-amd64@freebsd.org Date: Mon, 19 Apr 2004 11:20:26 -0700 Message-ID: <83692.1082398826@vm.codegen.com> From: Parag Patel Subject: Still seeing occasional "lock reversal" messages X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 18:20:27 -0000 Hi. I finally got my Clawhammer eval box from AMD running again, and popped FreeBSD 5-CURRENT on it. I've been successfully building world and kernel, then installing and rebooting same. I seem to get the "lock order reversal" on the 2nd buildworld. The following one is from a build+install from Saturday. The machine stays up and in general appears to be happy. lock order reversal 1st 0xffffff0010c22460 vm object (vm object) @ /usr/src/sys/vm/swap_pager.c:1313 2nd 0xffffffff807e89c0 swap_pager swhash (swap_pager swhash) @ /usr/src/sys/vm/swap_pager.c:1803 3rd 0xffffff001f0a8700 vm object (vm object) @ /usr/src/sys/vm/uma_core.c:886 Stack backtrace: witness_checkorder() at witness_checkorder+0x4ac _mtx_lock_flags() at _mtx_lock_flags+0x3d obj_alloc() at obj_alloc+0x39 slab_zalloc() at slab_zalloc+0x6d uma_zone_slab() at uma_zone_slab+0x99 uma_zalloc_internal() at uma_zalloc_internal+0x3d swp_pager_meta_build() at swp_pager_meta_build+0xb1 swap_pager_putpages() at swap_pager_putpages+0x40f default_pager_putpages() at default_pager_putpages+0xa vm_pageout_flush() at vm_pageout_flush+0x130 vm_pageout_clean() at vm_pageout_clean+0x1d9 vm_pageout_scan() at vm_pageout_scan+0x9dd vm_pageout() at vm_pageout+0x257 fork_exit() at fork_exit+0x9f fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffffff97984d00, rbp = 0 --- As others have been seeing this error off and on, I thought I'd ask about its current status before sending a bug-report about it. Here's the dmesg output: 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 #0: Sat Apr 17 12:39:45 PDT 2004 parag@hammerhead.parag.codegen.com:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff80d0d000. Preloaded mfs_root "/boot/mfsroot" at 0xffffffff80d0d280. ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD AMD64 Processor (1196.60-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xf01 Stepping = 1 Features=0x78bfbff AMD Features=0xe0500800 real memory = 536805376 (511 MB) avail memory = 502657024 (479 MB) ioapic0 irqs 0-23 on motherboard random: acpi0: on motherboard acpi0: [GIANT-LOCKED] acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 acpi_button0: on acpi0 pcib0: port 0x5080-0x50ff,0x5000-0x507f,0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: at device 6.0 on pci0 pci2: on pcib2 ohci0: mem 0xe3042000-0xe3042fff irq 19 at device 0.0 on pci2 ohci0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe3042000 ohci0: [GIANT-LOCKED] 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: 3 ports with 3 removable, self powered ohci1: mem 0xe3043000-0xe3043fff irq 19 at device 0.1 on pci2 ohci1: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe3043000 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered pci2: at device 0.2 (no driver attached) em0: port 0xa000-0xa03f mem 0xe3020000-0xe303ffff,0xe3000000-0xe301ffff irq 17 at device 5.0 on pci2 em0: Reserved 0x20000 bytes for rid 0x10 type 3 at 0xe3000000 em0: Reserved 0x40 bytes for rid 0x18 type 4 at 0xa000 em0: [GIANT-LOCKED] em0: Ethernet address: 00:07:e9:00:f1:38 em0: Speed:N/A Duplex:N/A ahc0: port 0xa400-0xa4ff mem 0xe3045000-0xe3045fff irq 18 at device 6.0 on pci2 ahc0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xa400 ahc0: [GIANT-LOCKED] aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xb000-0xb00f at device 7.1 on pci0 atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0xb000 atapci0: Lazy allocation of 0x8 bytes rid 0x10 type 4 at 0x1f0 atapci0: Lazy allocation of 0x4 bytes rid 0x14 type 4 at 0x3f4 ata0: at 0x1f0 irq 14 on atapci0 atapci0: Lazy allocation of 0x8 bytes rid 0x18 type 4 at 0x170 atapci0: Lazy allocation of 0x4 bytes rid 0x1c type 4 at 0x374 ata1: at 0x170 irq 15 on atapci0 pci0: at device 7.2 (no driver attached) pci0: at device 7.3 (no driver attached) pcm0: port 0xbc00-0xbc3f,0xb800-0xb8ff irq 17 at device 7.5 on pci0 pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xb800 pcm0: Reserved 0x40 bytes for rid 0x14 type 4 at 0xbc00 pcm0: [GIANT-LOCKED] pcm0: fdc0: cannot reserve I/O port range (1 ports) sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A ppc0 port 0x778-0x77b,0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model MouseMan+, device ID 0 fdc0: cannot reserve I/O port range (1 ports) cpu0 on motherboard orm0: