Still seeing occasional "lock reversal" messages

Parag Patel parag at
Mon Apr 19 11:20:27 PDT 2004

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 at
WARNING: WITNESS option enabled, expect reduced performance.
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff80d0d000.
Preloaded mfs_root "/boot/mfsroot" at 0xffffffff80d0d280.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD AMD64 Processor (1196.60-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf01  Stepping = 1
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 502657024 (479 MB)
ioapic0 <Version 1.1> irqs 0-23 on motherboard
random: <entropy source, Software, Yarrow>
acpi0: <AMD-K8 AWRDACPI> on motherboard
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: <CPU> port 0x530-0x537 on acpi0
acpi_tz0: <Thermal Zone> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x5080-0x50ff,0x5000-0x507f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci2: <ACPI PCI bus> on pcib2
ohci0: <OHCI (generic) USB controller> mem 0xe3042000-0xe3042fff irq 19 at device 0.0 on pci2
ohci0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe3042000
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) 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: 3 ports with 3 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xe3043000-0xe3043fff irq 19 at device 0.1 on pci2
ohci1: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe3043000
usb1: OHCI version 1.0, legacy support
usb1: <OHCI (generic) USB controller> 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: <serial bus, USB> at device 0.2 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> 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: Ethernet address: 00:07:e9:00:f1:38
em0:  Speed:N/A  Duplex:N/A
ahc0: <Adaptec 2940 Ultra SCSI adapter> 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
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 8111 UDMA133 controller> 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: <serial bus, SMBus> at device 7.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcm0: <AMD-8111> 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: <Analog Devices AD1885 AC97 Codec>
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: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
fdc0: cannot reserve I/O port range (1 ports)
cpu0 on motherboard
orm0: <Option ROMs> at iomem 0xce000-0xd27ff,0xcc000-0xcd7ff,0xc0000-0xcafff on isa0
fdc0: cannot reserve I/O port range (6 ports)
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1196598287 Hz quality 800
Timecounters tick every 0.976 msec
md0: Preloaded image </boot/mfsroot> 4194304 bytes at 0xffffffff8090b820
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
ata0-master: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 8063MB <WDC AC28400R> [16383/16/63] at ata0-master UDMA33
acd0: CDROM <MATSHITA CR-585> at ata1-master PIO3
Waiting 15 seconds for SCSI devices to settle
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST34371W 0484> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 4148MB (8496884 512 byte sectors: 255H 63S/T 528C)
Mounting root from ufs:/dev/da0s1a
em0: Link is up 100 Mbps Full Duplex

 /__)_ _ _ _    Decision maker, n.:  The person in your office who was
/   (// (/(/     unable to form a task force before the music stopped.

More information about the freebsd-amd64 mailing list