usb problems - machine reboots

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Wed Dec 21 14:29:59 PST 2005


Hello,

I'm not certain where I should report this, so I'll ask for comments on
this list.
I have a machine which runs FreeBSD, and when I use USB mass storage
devices on it, and copy more than a few files to them, it fails, and
quite soon after that the machine reboots. No crash dumps found.
Details:
root at kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Dec  8
00:56:05 CET 2005     root at kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET 
amd64

Please note that the machine runs FreeBSD/amd64. I do not know if this
has anything to do with the problem.

The usb controllers are ohci (from dmesg):
ohci0: <OHCI (generic) USB controller> mem 0xfe02d000-0xfe02dfff irq 19
at device 19.0 on pci0 ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1002) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xfe02c000-0xfe02cfff irq 19
at device 19.1 on pci0 ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: (0x1002) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe02b000-0xfe02bfff irq
19 at device 19.2 on pci 0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2: <EHCI (generic) USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: (0x1002) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered

I have tested with several devices, here is one example:
Dec 21 16:45:00 kg-quiet kernel: umass0: CREATIVE Zen Nano Plus, rev
2.00/11.03, addr 2
Dec 21 16:45:01 kg-quiet kernel: da0 at umass-sim0
bus 0 target 0 lun 0
Dec 21 16:45:01 kg-quiet kernel: da0: <CREATIVE Zen
Nano Plus 1103> Removable Direct Access SCSI- 4 device 
Dec 21 16:45:01 kg-quiet kernel: da0: 40.000MB/s transfers
Dec 21 16:45:01 kg-quiet kernel: da0: 999MB (511936 2048 byte sectors:
64H 32S/T 249C)

(Note: I have tested this device extensively on another machine, a
ThinkPad T41 which have uhci controllers, and it works there. I can
copy all day if I want, the device just works.)

I can mount the device with no problems at all (using 'mount -t msdos
/dev/da0s1 /mnt').
I ca also copy a few files off it, or copy a few files to it. Sorry, I
don't know how many files "a few" are exactly.
But when I started copying files to the device, it got to about 60 or 70
files before it failed. When it failed, I got these in
/var/log/messages:
Dec 21 16:47:46 kg-quiet kernel: umass0: BBB bulk-out clear stall
failed, IOERROR
Dec 21 16:47:49 kg-quiet kernel: umass0: BBB reset
failed, IOERROR
Dec 21 16:47:49 kg-quiet kernel: umass0: BBB bulk-in
clear stall failed, IOERROR
Dec 21 16:47:49 kg-quiet kernel: umass0: BBB
bulk-out clear stall failed, IOERROR
Dec 21 16:47:50 kg-quiet kernel:
umass0: BBB reset failed, IOERROR
Dec 21 16:47:50 kg-quiet kernel:
umass0: BBB bulk-in clear stall failed, IOERROR
Dec 21 16:47:50 kg-quiet
kernel: umass0: BBB bulk-out clear stall failed, IOERROR
Dec 21 16:47:54
kg-quiet kernel: umass0: BBB reset failed, IOERROR
Dec 21 16:47:54
kg-quiet kernel: umass0: BBB bulk-in clear stall failed, IOERROR
Dec 21 16:47:54 kg-quiet kernel: umass0: BBB bulk-out clear stall
failed, IOERROR
Dec 21 16:47:55 kg-quiet kernel: umass0: BBB reset failed,
IOERROR
Dec 21 16:47:55 kg-quiet kernel: umass0: BBB bulk-in clear stall
failed, IOERROR
Dec 21 16:47:55 kg-quiet kernel: umass0: BBB bulk-out
clear stall failed, IOERROR

edited dmesg log attached.
after it failed, I aborted the copy operation, and started to copy
/var/log/messages  to another file. Suddenly, the machine rebootet on
its own. No warnings, no panics, no nothing. When it booted again, I
paid attetntion to see if it would find any crashdumps, but it didn't.

The machine runs fine except for this usb related problem, and have done
so since about FreeBSD 5.4. The mainboard in use is a MSI RS480M2-IL
(aka MS-7093). I haven't installed FreeBSD/i386 on it, so I can't test
to see if that makes a difference.

How do I debug this more?
I should probably send-pr this also, but it would be good to know more
about the real problem, so I can send the report to the right place.
-- 
Regards,
Torfinn Ingolfsen,
Norway



-------------- next part --------------
A non-text attachment was scrubbed...
Name: nano_plus_reboot2.log
Type: application/octet-stream
Size: 46879 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051221/f95b4bbb/nano_plus_reboot2-0001.obj


More information about the freebsd-stable mailing list