NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Extremly slow usb disk



It doesn't want to play at all today I'm afraid. See below.

> > 
> > I just got this external USB HDD enclosure:
> > http://www.raidsonic.de/en/products/soho-raid.php?we_objectID=7059
> > It contains two Hitachi Deskstar 7k4000 disks in RAID 1
> mode.
> > 
> > At first it did not want to attach at all, it just
> said:
> > uhub4: device problem, disabling port 2
> > 
I can not get it to probe today. Just giving the above error.
I have traced it to usbd_new_device(). On line 1175 in usb_subr.c
it calls usbd_get_initital_ddesc() wich returns an error (17). 
Some debug gave the following output:
usbd_new_device: addr=2, getting first desc failed: 17
uhub_explore: usbd_new_device failed, error=STALLED

I tried increasing the retry-count to 50 but no change.

Windows 7 seems to handle it fine (of course).

> > It finally probed giving:
> > umass2 at uhub4 port 2 configuration 1 interface 0
> > umass2: vendor 0x0dc4 IB-RD4320StU3, rev 2.10/1.00,
> addr 2
> > umass2: using SCSI over Bulk-Only
> > scsibus2 at umass2: 2 targets, 1 lun per target
> > sd2 at scsibus2 target 0 lun 0: <SV SAFE, , 1.>
> disk fixed
> > umass2: BBB bulk-in stall clear failed, IOERROR
> > sd2: 3726 GB, 16383 cyl, 16 head, 63 sec, 4096
> bytes/sect x 976754646 sectors
> > 
> > As you can see it gave an error there. I managed to
> "label" it with gpt
> > and made an ffs filesystem on it.
> > When mounting and using it it gives another
> > umass2: BBB bulk-in stall clear failed, IOERROR
> > and
> > sd2(umass2:0:0:0): generic HBA error
> > 
> > Access to the drive is extremely slow. About 400k/s.
> Sometimes stalling or giving ~20k/s.
> > Anybody got a clue?
> 
> How did you partition and newfs it ? it is probably using 4k
> sectors, so you
> have to do access on 4k boundary to avoid read/modify/write
> cycles.
> 
Yep, it has 4k sectors. I did start the partition on 2048.

> > 
> > Relevant line from "usbdevs -v":
> > port 2 addr 2: full speed, self powered, config 1,
> IB-RD4320StU3(0x020a), inXtron, Inc.(0x0dc4), rev 1.00,
> serial 12060D8301E9
> > Shouldn't that be "high speed"?
> 
> maybe, The full dmesg could be usefull.
> 
If you wish. http://pastebin.com/51zxx4Ct
Last two lines are two separate insertion events.
I have been using external usb drives with this machine before
so it's not that. This was supposed to replace one external
USB hdd enclosure. (umass1: Western Digital My Book 1130, rev 2.10/10.12, addr 
3)
I also tried it with an old Thinkpad 240X with only has USB1.
Same problem. I also tried with a 5.1 kernel. No change.

Wonder why I got it to attach yesterday? And why was it probed as
"full speed" when it is a USB3 device?
On the topic of USB3, has someone started working on it?

/B


Home | Main Index | Thread Index | Old Index