Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 10:48:43 +0100 (CET)
From:      Cordula's Web <cpghost@cordula.ws>
To:        julian@elischer.org
Cc:        freebsd-stable@freebsd.org
Subject:   Re: HEADSUP!!! USB MFC committed
Message-ID:  <20040316094843.7F08840822@fw.farid-hajji.net>
In-Reply-To: <Pine.BSF.4.21.0403141401220.7997-100000@InterJet.elischer.org> (message from Julian Elischer on Sun, 14 Mar 2004 14:02:32 -0800 (PST))
References:  <Pine.BSF.4.21.0403141401220.7997-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> > this USB MFC broke my CASIO QV-4000 digicam downloads, which worked
> > very well just before.
> > 
> > umass0: CASIO product 0x1001, rev 1.00/10.00, addr 2
> > da0 at umass-sim0 bus 0 target 0 lun 0
> > da0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device 
> > da0: 150KB/s transfers
> > da0: 1027MB (2104704 512 byte sectors: 255H 63S/T 131C)
> > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 1a f5 22 0 0 38 0 
> > (da0:umass-sim0:0:0:0): ABORTED COMMAND asc:4e,0
> > (da0:umass-sim0:0:0:0): Overlapped commands attempted
> > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 1a f5 22 0 0 38 0 
> > (da0:umass-sim0:0:0:0): ABORTED COMMAND asc:4e,0
> > (da0:umass-sim0:0:0:0): Overlapped commands attempted
>
> I will be doing work on USB next week, and I will try trace this then..
> have you tried -current with your device?

With yesterday's -current (on another physical box), this doesn't happen:

FreeBSD 5.2-CURRENT #0: Tue Mar 16 02:21:38 CET 2004
    root@machine.domain.tld:/usr/obj/usr/src/sys/GENERIC

uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 11 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered

uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 11 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered

umass0: CASIO product 0x1001, rev 1.00/10.00, addr 2
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:29,0
(probe0:umass-sim0:0:0:0): Power on, reset, or bus device reset occurred
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device 
da0: 1.000MB/s transfers
da0: 1027MB (2104704 512 byte sectors: 255H 63S/T 131C)

machine# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00
 port 1 powered
 port 2 addr 2: full speed, self powered, config 1, product 0x1001(0x1001), CASIO(0x07cf), rev 10.00
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00
 port 1 powered
 port 2 powered

machine# uname -a
FreeBSD machine.domain.tld 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Mar 16 02:21:38 CET 2004     root@machine.domain.tld:/usr/obj/usr/src/sys/GENERIC  i386

machine# camcontrol devlist -v
scbus0 on umass-sim0 bus 0:
<CASIO DIGITAL_CAMERA 1.00>        at scbus0 target 0 lun 0 (da0,pass0)
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)

machine# mount -r -t msdos /dev/da0s1 /mnt
machine# ls /mnt
dcim	scene

machine# cp -Rv /mnt/dcim/* /vol/digicam
[... no problems here ...]

machine# umount /mnt

umass0: at uhub0 port 2 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached

So the problem is probably with the MFC (or a different USB controller?
sorry, couldn't test -current on that other -stable box...).

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040316094843.7F08840822>