On Thu, 2 Apr 2009, guoqing zhu - Sun Microsystems - Beijing China wrote: > Date: Thu, 02 Apr 2009 14:05:30 +0800 > From: guoqing zhu - Sun Microsystems - Beijing China <Guoqing.Zhu at Sun.COM> > To: Palle Lyckegaard <palle at lyckegaard.dk> > Cc: driver-usb at opensolaris.org > Subject: Re: [driver-usb] Prolific Technology Inc. Mass Storage Device (usb67b > , 2506) > >> From the usba_debug_buf, all SCSI commands sent by scsa2usb driver > failed at status phase(CSW) of a transfer, as follows: > ... > > s2u0: scsa2usb_handle_scsi_cmd_sub_class: opcode = 0x0 count = 0x0 > ehci0: ehci_check_for_short_xfer: residue=13 direction=0x100 > ehci0: ehci_check_for_short_xfer: requested data=13 received data=0 > s2u0: scsa2usb_handle_csw_result: no enough data (0) > ... > s2u0: scsa2usb_handle_scsi_cmd_sub_class: opcode = 0x25 count = 0x8 > s2u0: bytes in each logical block=0x200,number of total logical > blocks=0x950f8 > b0 > ehci0: ehci_check_for_short_xfer: residue=13 direction=0x100 > ehci0: ehci_check_for_short_xfer: requested data=13 received data=0 > s2u0: scsa2usb_handle_csw_result: no enough data (0) > ... > > it seems each time the SCSI command was sent successfully, but USB driver > cannot get any status data about that command from device. So all these > commands failed. > > Could you try some other different USB2.0 storage devices on the same port to > see if they work well? If only the Prolific device does not work, I can > compile a debug version scsa2usb driver to you to get more debug information. > You need tell me your OS build.
I have now tried an other external USB disk and a USB memory stick, both showing same symptoms... dmesg: Apr 2 19:45:08 odin usba: [ID 912658 kern.info] USB 2.0 device (usb951,1603) operating at hi speed (USB 2.x) on USB 2.0 root hub: storage at 4, scsa2usb1 at bus address 3 Apr 2 19:45:08 odin usba: [ID 349649 kern.info] Kingston DataTraveler 2.0 899000000000000000000154 Apr 2 19:45:08 odin genunix: [ID 936769 kern.info] scsa2usb1 is /pci at 1f,0/pci at 1/usb at 4,3/storage at 4 Apr 2 19:45:08 odin genunix: [ID 408114 kern.info] /pci at 1f,0/pci at 1/usb at 4,3/storage at 4 (scsa2usb1) online Apr 2 19:45:08 odin scsi: [ID 193665 kern.info] sd1 at scsa2usb1: target 0 lun 0 Apr 2 19:45:08 odin genunix: [ID 936769 kern.info] sd1 is /pci at 1f,0/pci at 1/usb at 4,3/storage at 4/disk at 0,0 Apr 2 19:47:05 odin genunix: [ID 408114 kern.info] /pci at 1f,0/pci at 1/usb at 4,3/storage at 4/disk at 0,0 (sd1) online Apr 2 19:47:05 odin usba: [ID 912658 kern.info] USB 2.0 device (usb5e3,702) operating at hi speed (USB 2.x) on USB 2.0 root hub: storage at 5, scsa2usb2 at bus address 4 Apr 2 19:47:05 odin usba: [ID 349649 kern.info] USB TO IDE Apr 2 19:47:05 odin genunix: [ID 936769 kern.info] scsa2usb2 is /pci at 1f,0/pci at 1/usb at 4,3/storage at 5 Apr 2 19:47:05 odin genunix: [ID 408114 kern.info] /pci at 1f,0/pci at 1/usb at 4,3/storage at 5 (scsa2usb2) online Apr 2 19:47:05 odin scsi: [ID 193665 kern.info] sd3 at scsa2usb2: target 0 lun 0 Apr 2 19:47:05 odin genunix: [ID 936769 kern.info] sd3 is /pci at 1f,0/pci at 1/usb at 4,3/storage at 5/disk at 0,0 Apr 2 19:47:50 odin genunix: [ID 408114 kern.info] /pci at 1f,0/pci at 1/usb at 4,3/storage at 5/disk at 0,0 (sd3) online iostat -Ei: dad0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST380021A Revision: 3.10 Device Id: id1,dad at AST380021A=3HV0Y0EH Size: 80.03GB <80026361856 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 dad1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST340014A Revision: 8.01 Device Id: id1,dad at AST340014A=3JX8NXSQ Size: 40.02GB <40020664320 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 sd0 Soft Errors: 0 Hard Errors: 16 Transport Errors: 79 Vendor: Product: USB TO IDE Revision: 0033 Device Id: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 2 Predictive Failure Analysis: 0 sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 55 Vendor: Kingston Product: DataTraveler 2.0 Revision: 0200 Device Id: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 2 Predictive Failure Analysis: 0 sd2 Soft Errors: 0 Hard Errors: 15 Transport Errors: 0 Vendor: SAMSUNG Product: CDRW/DVD SM-352F Revision: T900 Device Id: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 15 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd3 Soft Errors: 0 Hard Errors: 10 Transport Errors: 43 Vendor: Product: USB TO IDE Revision: 0033 Device Id: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 Could it be the PCI card with the USB connectors that it the problem? the ehci driver? Regards Palle > > Thanks > Guoqing > > > Palle Lyckegaard ??: >> On Wed, 1 Apr 2009, guoqing zhu - Sun Microsystems - Beijing China wrote: >> >>> Date: Wed, 01 Apr 2009 10:45:29 +0800 >>> From: guoqing zhu - Sun Microsystems - Beijing China >>> <Guoqing.Zhu at Sun.COM> >>> To: Palle Lyckegaard <palle at lyckegaard.dk> >>> Cc: driver-usb at opensolaris.org >>> Subject: Re: [driver-usb] Prolific Technology Inc. Mass Storage >>> Device (usb67b >>> , 2506) >>> >>> Palle Lyckegaard : >>>> Hi, >>>> >>>> I have problems getting an external USB disk enclosure to work >>>> properly with OpenSolaris/SPARC. >>>> >>>> The unit identifies it self as >>>> Prolific Technology Inc. Mass Storage Device (usb67b,2506) >>>> (http://www.prolific.com.tw/eng/Products.asp?ID=69) >>>> >>>> The device is known to work properly with Window Vista and the >>>> external disk is formatted with an NTFS filesystem. >>>> >>>> dmesg shows this: >>>> >>>> Mar 31 17:31:45 odin usba: [ID 912658 kern.info] USB 2.0 device >>>> (usb67b,2506) operating at hi speed (USB 2.x) on USB 2.0 root hub: >>>> storage at 6, scsa2usb0 at bus address 2 >>>> Mar 31 17:31:45 odin usba: [ID 349649 kern.info] Prolific Technology >>>> Inc. Mass Storage Device 000000000000 >>>> Mar 31 17:31:45 odin genunix: [ID 936769 kern.info] scsa2usb0 is >>>> /pci at 1f,0/pci at 1/usb at 4,3/storage at 6 >>>> Mar 31 17:31:45 odin genunix: [ID 408114 kern.info] >>>> /pci at 1f,0/pci at 1/usb at 4,3/storage at 6 (scsa2usb0) online >>>> Mar 31 17:31:45 odin scsi: [ID 193665 kern.info] sd0 at scsa2usb0: >>>> target 0 lun 0 >>>> Mar 31 17:31:45 odin genunix: [ID 936769 kern.info] sd0 is >>>> /pci at 1f,0/pci at 1/usb at 4,3/storage at 6/disk at 0,0 >>>> >>>> >>>> The output from rmformat is (with a several minute delay between the >>>> two entries): >>>> >>>> Looking for devices... >>>> 1. Logical Node: /dev/rdsk/c0t1d0s2 >>>> Physical Node: /pci at 1f,0/pci at 1,1/ide at 3/sd at 1,0 >>>> Connected Device: SAMSUNG CDRW/DVD SM-352F T900 >>>> Device Type: DVD Reader >>>> Bus: IDE >>>> Size: <Unknown> >>>> Label: <Unknown> >>>> Access permissions: <Unknown> >>>> 2. Logical Node: /dev/rdsk/c2t0d0s2 >>>> Physical Node: /pci at 1f,0/pci at 1/usb at 4,3/storage at 6/disk at 0,0 >>>> Connected Device: Prolific Mass Storage Dev 0100 >>>> Device Type: <Unknown> >>>> Bus: USB >>>> Size: <Unknown> >>>> Label: <Unknown> >>>> Access permissions: <Unknown> >>> It seems Inquiry command was not processed correctly. >>>> >>>> >>>> Trying to use rmformat to format the disk with >>>> /usr/bin/rmformat -F long /dev/rdsk/c2t0d0s2 >>>> gives a "No media in specified device" error message. >>>> >>>> iostat -Ei output: >>>> sd0 Soft Errors: 0 Hard Errors: 14 Transport Errors: 90 >>>> Vendor: Prolific Product: Mass Storage Dev Revision: 0100 Device Id: >>>> Size: 0.00GB <0 bytes> >>>> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 >>>> Illegal Request: 2 Predictive Failure Analysis: 0 >>>> >>>> >>>> I have tried to add the device (usb67b,2506) to the scsa2usb driver >>>> in the /etc/driver_aliases file using the update_drv(1M) command and >>>> also updated the /kernel/drv/scsa2usb.conf file with two lines like >>>> this: >>>> ... >>>> attribute-override-list = >>>> "vid=* reduced-cmd-support=true"; >>>> ... >>> After you set this, did you reboot the system? >> >> Yes >> >>> >>> Could you get the debug infos from mdb as follows and send it to me? >> >> Attached... >> >>> >>> #echo "::usba_clear_debug_buf" |mdb -wk >>> then Plug in your usb device and wait several seconds >>> #echo "::usba_debug_buf" |mdb -k > /tmp/usblog >>> #echo "::prtusb" | mdb -k >> /tmp/usblog >>> #dmesg >> /tmp/usblog >>> #prtconf -D >> /tmp/usblog >>> >>> Thanks >>> Guoqing >>>> >>>> >>>> Have I overlooked something or is the device not supported properly >>>> by the scsa2usb driver? >>>> >>>> I'm running an older version of OpenSolaris (SunOS odin 5.11 snv_90 >>>> sun4u sparc SUNW,Ultra-5_10). >>>> >>>> Regards >>>> Palle >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> driver-usb mailing list >>>> driver-usb at opensolaris.org >>>> http://mail.opensolaris.org/mailman/listinfo/driver-usb >>> >>> > >