xl driver proplem.

Thordur I. Bjornsson thib at mi.is
Mon Aug 22 17:07:16 GMT 2005


*snip*
> Hello list.
> 
> I had this proplem with the xl driver:
*snip*

Hello list (again). I'm sorry for the noize last night.
I was way to sleepy ;)

Now I had this proplem with a non-sleepable lock in if_xl.c (As
explained in the previous post.

Now, I did not provide alot of info in my last mail so here goes:

FreeBSD caulfield.bitcode.eu.org 6.0-BETA2 FreeBSD 6.0-BETA2 #0: Sun Aug
21 22:21:18 UTC 2005    
thib at caulfield.bitcode.eu.org:/usr/obj/usr/src.inuse/sys/caulfield  i386

This is built from sources from around noon on Sunday.

This proplem exist in -HEAD since there have been no changes in if_xl.c

Now this morning I made myself a null-modem cable and went on to see
what was scrolling by so fast because of this "bug".

Attached is a log from the serial connection when I reboot the machine.

This proplem "went away (TM)" also with my diff.

Now I have been doing some further testing on the NIC and everything
seems to be OK.

PS: I though about CC'ing this to current also but...
Am I going through the wrong channels here ?

-- 
Thordur I.	<bzthib at gmail.com>
Humppa!
-------------- next part --------------
Mon Aug 22 16:49:32 UTC 2005
AWaiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...3 1 1 1 0 0 done
All buffers synced.
unmount of /dev failed (BUSY)
lock order reversal
 1st 0xc258c3ac vnode interlock (vnode interlock) @ /usr/src/sys/kern/vfs_subr.c:2373
 2nd 0xc1043144 system map (system map) @ /usr/src/sys/vm/vm_kern.c:295
KDB: stack backtrace:
witness_checkorder(c1043144,9,c072fc08,127,c0572615) at witness_checkorder+0x406
_mtx_lock_flags(c1043144,0,c072fc08,127,c104e460) at _mtx_lock_flags+0x54
_vm_map_lock(c10430c0,c072fc08,127,8,c104e468) at _vm_map_lock+0x37
kmem_malloc(c10430c0,1000,101,101,8) at kmem_malloc+0x3a
slab_zalloc(0,c071fc85,33b,c2392600,c2392678) at slab_zalloc+0x7d
uma_zone_slab(c104e468,8,c072eec1,8ab,0) at uma_zone_slab+0xa6
uma_zalloc_internal(1,0,0,c104dc48,ed0baa78) at uma_zalloc_internal+0x3e
bucket_alloc(c10290a8,0,c072eec1,967,c10290a0) at bucket_alloc+0x29
uma_zfree_arg(c104dc00,c25667bc,0,ed0baa9c,c0644508) at uma_zfree_arg+0x2c5
mac_labelzone_free(c25667bc,c258c330,ed0baab8,c05b1d0b,c258c330) at mac_labelzone_free+0x22
mac_destroy_vnode(c258c330,0,c07252ec,2d6,c258c330) at mac_destroy_vnode+0x18
vdropl(c0748b00,ed0baae0,c07252ec,8ad,c2533844) at vdropl+0x121
vflush(c2533800,0,2,c2392600,c071ba1f) at vflush+0x446
ffs_flushfiles(c2533800,2,c2392600,c2560a00,0) at ffs_flushfiles+0x80
ffs_unmount(c2533800,80000,c2392600,c2392600,0) at ffs_unmount+0x425
dounmount(c2533800,80000,c2392600,d6323f08,0) at dounmount+0x1d4
vfs_unmountall(d63240b0,0,c071c6e3,10c,267) at vfs_unmountall+0x45
boot(c0779e00,8,c071c6e3,a1,bfbfed10) at boot+0x773
poweroff_wait(c2392600,ed0bad04,4,422,1) at poweroff_wait
syscall(3b,3b,3b,0,1) at syscall+0x13b
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (55, FreeBSD ELF32, reboot), eip = 0x280b33af, esp = 0xbfbfed0c, ebp = 0xbfbfed58 ---
Uptime: 29s
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex xl0 (network driver) r = 0 (0xc23a80a4) locked @ /usr/src/sys/pci/if_xl.c:3350
KDB: stack backtrace:
witness_warn(2,0,c071f440,c7fa80ff,1b) at witness_warn+0x5d6
taskqueue_drain(c226f800,c23a80c8,c072a962,cc7,c2394400) at taskqueue_drain+0x2e
xl_stop(c23a80a4,8,c072a962,d16,c23a3400) at xl_stop+0x56
xl_shutdown(c23a3400,c23a3500,ed0babb8,c056136a,c23a3500) at xl_shutdown+0x4d
bus_generic_shutdown(c23a3500,c2353d00,ed0babc8,c056136a,c2353d00) at bus_generic_shutdown+0x17
bus_generic_shutdown(c2353d00,c2353b80,ed0babd8,c056136a,c2353b80) at bus_generic_shutdown+0x17
bus_generic_shutdown(c2353b80,c22d0a00,ed0babe8,c056136a,c22d0a00) at bus_generic_shutdown+0x17
bus_generic_shutdown(c22d0a00,c226f600,ed0bac00,c08a2adc,c226f600) at bus_generic_shutdown+0x17
bus_generic_shutdown(c226f600,1,c08bdf2d,2a2,ed0bac10) at bus_generic_shutdown+0x17
acpi_shutdown(c226f600,c226fd00,ed0bac20,c056136a,c226fd00) at acpi_shutdown+0x35
bus_generic_shutdown(c226fd00,c225a480,ed0bac40,c05622bb,c22d0000) at bus_generic_shutdown+0x17
bus_generic_shutdown(c22d0000,102,c0777620,c225a4c0,c225e000) at bus_generic_shutdown+0x17
root_bus_module_handler(c225a480,2,0,c22573a0,ed0bacb0) at root_bus_module_handler+0x23
module_shutdown(0,0,c071c6e3,190,267) at module_shutdown+0x4c
boot(c0779e00,8,c071c6e3,a1,bfbfed10) at boot+0x3a2
poweroff_wait(c2392600,ed0bad04,4,422,1) at poweroff_wait
syscall(3b,3b,3b,0,1) at syscall+0x13b
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (55, FreeBSD ELF32, reboot), eip = 0x280b33af, esp = 0xbfbfed0c, ebp = 0xbfbfed58 ---
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex xl1 (network driver) r = 0 (0xc23ad0a4) locked @ /usr/src/sys/pci/if_xl.c:3350
KDB: stack backtrace:
witness_warn(2,0,c071f440,c7fa80ff,1b) at witness_warn+0x5d6
taskqueue_drain(c226f800,c23ad0c8,c072a962,cc7,c2394000) at taskqueue_drain+0x2e
xl_stop(c23ad0a4,8,c072a962,d16,c23a3380) at xl_stop+0x56
xl_shutdown(c23a3380,c23a3500,ed0babb8,c056136a,c23a3500) at xl_shutdown+0x4d
bus_generic_shutdown(c23a3500,c2353d00,ed0babc8,c056136a,c2353d00) at bus_generic_shutdown+0x17
bus_generic_shutdown(c2353d00,c2353b80,ed0babd8,c056136a,c2353b80) at bus_generic_shutdown+0x17
bus_generic_shutdown(c2353b80,c22d0a00,ed0babe8,c056136a,c22d0a00) at bus_generic_shutdown+0x17
bus_generic_shutdown(c22d0a00,c226f600,ed0bac00,c08a2adc,c226f600) at bus_generic_shutdown+0x17
bus_generic_shutdown(c226f600,1,c08bdf2d,2a2,ed0bac10) at bus_generic_shutdown+0x17
acpi_shutdown(c226f600,c226fd00,ed0bac20,c056136a,c226fd00) at acpi_shutdown+0x35
bus_generic_shutdown(c226fd00,c225a480,ed0bac40,c05622bb,c22d0000) at bus_generic_shutdown+0x17
bus_generic_shutdown(c22d0000,102,c0777620,c225a4c0,c225e000) at bus_generic_shutdown+0x17
root_bus_module_handler(c225a480,2,0,c22573a0,ed0bacb0) at root_bus_module_handler+0x23
module_shutdown(0,0,c071c6e3,190,267) at module_shutdown+0x4c
boot(c0779e00,8,c071c6e3,a1,bfbfed10) at boot+0x3a2
poweroff_wait(c2392600,ed0bad04,4,422,1) at poweroff_wait
syscall(3b,3b,3b,0,1) at syscall+0x13b
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (55, FreeBSD ELF32, reboot), eip = 0x280b33af, esp = 0xbfbfed0c, ebp = 0xbfbfed58 ---
Shutting down ACPI
Rebooting...


More information about the freebsd-hackers mailing list