usb/104830: system crashes when copying data to umass devices
No Name
arundel at h3c.de
Thu Oct 26 14:10:19 UTC 2006
>Number: 104830
>Category: usb
>Synopsis: system crashes when copying data to umass devices
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 26 14:10:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: No Name
>Release: FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD moshpit 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Tue Oct 24 19:36:41 CEST 2006 root at moshpit:/usr/obj/usr/src/sys/ARUNDEL i386
>Description:
when i attach my mp3 player everything works fine and i can mount it
without any problems:
umass0: CREATIVE Zen Nano Plus, rev 2.00/11.23, addr 3
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:4:0:-1: Attached to scbus4
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <CREATIVE Zen Nano Plus 1123> Removable Direct Access SCSI-4 device
da0: 1.000MB/s transfers
da0: 489MB (250432 2048 byte sectors: 64H 32S/T 122C)
however....when i try to copy files onto the umass device (this also
happens not only with my mp3 player but other umass devices) and my
system is performing a lot of tasks the data transfer will stall.
if apart from `cp` no other I/O intensive apps are running the transfer
to umass devices succeedes. so maybe there's a problem with the
scheduler (i'm using ULE).
this is the error i'm getting:
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
continued by a lot of
g_vfs_done():da0s1[WRITE(offset=32768, length=4096)]error = 5
g_vfs_done():da0s1[WRITE(offset=45056, length=4096)]error = 5
g_vfs_done():da0s1[WRITE(offset=98304, length=4096)]error = 5
g_vfs_done():da0s1[WRITE(offset=159744, length=4096)]error = 5
g_vfs_done():da0s1[WRITE(offset=172032, length=4096)]error = 5
g_vfs_done():da0s1[WRITE(offset=225280, length=4096)]error = 5
g_vfs_done():da0s1[WRITE(offset=119721984, length=8192)]error = 5
....
....
etc.
eventually the whole sysmtem becomes unstable and most of the apps i'm
running don't respond any longer. unmounting the umass device isn't
prossible and unplugging the devices crashes the whole system.
i've attached my KERNEL CONF file below.
cheers.
>How-To-Repeat:
>Fix:
--- ARUNDEL begins here ---
machine i386
cpu I686_CPU
ident ARUNDEL
maxusers 10
#makeoptions DEBUG=-g
options CPU_ATHLON_SSE_HACK
options CPU_SUSP_HLT
options CPU_FASTER_5X86_FPU
options CPU_UPGRADE_HW_CACHE
options ATA_STATIC_ID
options MSDOSFS
options CD9660
options USB_DEBUG
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options IPFIREWALL
options IPDIVERT
options IPSTEALTH
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_DEFAULT_TO_ACCEPT
options DUMMYNET
#options DEVICE_POLLING
#options PREEMPTION
#options SCHED_4BSD #4BSD scheduler
options SCHED_ULE
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big directories
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_AOUT #Enable i386 a.out binary support
options SC_HISTORY_SIZE=1000 #number of history buffer lines
options KDB #Compile with kernel debugger related code
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING
options KBD_INSTALL_CDEV #install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT #Print register bitfields in debug
#output. Adds ~128k to driver.
options ATKBD_DFLT_KEYMAP #specify the built-in keymap
makeoptions ATKBD_DFLT_KEYMAP="german.iso"
options PSM_RESETAFTERSUSPEND #reset the device at the resume event
options NET_WITH_GIANT
#devices
device isa
device pci
device fdc
device sio
device ata
device atadisk
device atapicd
device atapifd
device atapicam
device atkbdc
device atkbd
device vga
device sc
device npx
device apm
device ppc
device ppbus
device lpt
device ed
device uhci
device ehci
device usb
device ulpt
device miibus
#pseudo devices
device md
device loop
device ether
device pty
device bpf
#SCSI pseudo stuff (cdrdao)
device scbus
device da
device cd
device pass
--- ARUNDEL ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-usb
mailing list