USB drive errors (USB 2.0 and memory drive)

Louis LeBlanc FreeBSD at keyslapper.net
Thu Jul 7 00:26:56 GMT 2005


Well, I've been in a config debug mood lately, so I'm going to go
after one more issue.  Rather, I'm gonna ask for help here, since I
can't find the solution online.

This has been happening since I managed to get ehci working without
causing the kernel to freak out.  I'm running 5.4 RELEASE p1
(upgrading to p4 later on tonight).  The problem happens when I plug
in either of my USB key devices (one being a PNY USB Disk, the other a
little iPod Shuffle).

I am using both ehci and ohci drivers, and AFAICT, the problem only
happens with USB2.0 devices.

The problem shows up in /var/log/messages as follows:

Jul  6 19:41:31 keyslapper kernel: umass0: PNY USB DISK 20X, rev 2.00/1.00, addr 2
Jul  6 19:41:32 keyslapper kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jul  6 19:41:32 keyslapper kernel: da0: < USB DISK 20X PMAP> Removable Direct Access SCSI-0 device 
Jul  6 19:41:32 keyslapper kernel: da0: 40.000MB/s transfers
Jul  6 19:41:32 keyslapper kernel: da0: 962MB (1970176 512 byte sectors: 64H 32S/T 962C)
Jul  6 19:41:32 keyslapper kernel: umass0: Phase Error, residue = 0
Jul  6 19:41:32 keyslapper kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0

The last two lines repeat 16 or 17 times.

When I try to mount these, I have no problems.  No errors, and
everything appears to work fine.  I can move files, edit directly on
the disk, whatever.

So, these messages are an indication of something wierd somewhere, I
just don't know if it's purely cosmetic, or if there's really
something wrong and my resume is going to get eaten one of these days.

I've googled for these messages, and found a lot of reports of the
same problem (with few variations), but no solutions or suggestions.

I tracked this error message to /usr/src/sys/cam/scsi/scsi_da.c, but
I'm not sure exactly where this happens in the device initialization
yet (just a quick skim through the code and no understanding of the
underlying architecture or USB specs yet).

Anyone have any idea?

TIA
Lou
-- 
Louis LeBlanc                          FreeBSD-at-keyslapper-DOT-net
Fully Funded Hobbyist,                   KeySlapper Extrordinaire :)
Please send off-list email to:         leblanc at keyslapper d.t net
Key fingerprint = C5E7 4762 F071 CE3B ED51  4FB8 AF85 A2FE 80C8 D9A2

BASIC, n.:
  A programming language.  Related to certain social diseases in
  that those who have it will not admit it in polite company.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050706/a77f1c30/attachment.bin


More information about the freebsd-questions mailing list