Date: Fri, 8 Aug 2003 20:20:09 +0200 From: Kresimir Kumericki <kkumer@phy.hr> To: stable@freebsd.org Subject: Re: A-DATA flash drive: "Attempt to query device size failed" Message-ID: <20030808182009.GA30773@phy.hr> In-Reply-To: <05b001c35dc8$749574a0$ea2ce9c1@binep.ac.ru> References: <20030807141743.DE7CF5D09@ptavv.es.net> <05b001c35dc8$749574a0$ea2ce9c1@binep.ac.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On (08 Aug 20:16), Igor B. Bykhalo wrote: > I tested fresh updates... All the same :-( I seem to have almost exactly the same situation: "Prolific UsbFlashDisk" memory stick in VIA83C572 USB controller, freshly cvsupped 4.8-STABLE and no luck. I haven't played with quirks yet, and I'm in a hurry right now, so I'll just post some relevant logs in hope that they can be of some help. After I included "options DA_OLD_QUIRKS" in kernel, nothing changed. (I'm not sure which quirk should I try, and what is the exact syntax for my device. Anyone?) Contents: kernel config, dmesg, usbdevs -vd, usbd -v, camcontrol devlist -v, camcontrol inquiry da0 ========= [Kernel config] ============ # SCSI Controllers device sym # SCSI peripherals device scbus device da device cd device pass #options DA_OLD_QUIRKS options CAMDEBUG options CAM_DEBUG_BUS=-1 options CAM_DEBUG_TARGET=-1 options CAM_DEBUG_LUN=-1 options CAM_DEBUG_FLAGS="CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_CDB" options CAM_MAX_HIGHPOWER=4 options SCSI_DELAY=8000 # USB support # UHCI controller device uhci # General USB code (mandatory for USB) device usb # Generic USB device driver device ugen # USB Iomega Zip 100 Drive (Requires scbus and da) device umass ========= [dmesg] ============ [...] uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x6400-0x641f irq 11 at device 7.2 on pci0 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at device 7.3 on pci0 pci0: <ATI Mach64-GU graphics accelerator> at 8.0 ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0x6600-0x661f irq 10 at device 9.0 on pci0 ed0: address 00:e0:29:3a:6a:83, type NE2000 (16 bit) uhci1: <VIA 83C572 USB controller> port 0x6700-0x671f irq 9 at device 10.0 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 uhub2: Prolific Technology Inc. USB_HUB, class 9/0, rev 2.00/0.01, addr 2 uhub2: 1 port with 0 removable, self powered umass0: Prolific Technology Inc. USB_Storage, rev 2.00/0.01, addr 3 uhci2: <VIA 83C572 USB controller> port 0x6800-0x681f irq 11 at device 10.1 on pci0 usb2: <VIA 83C572 USB controller> on uhci2 usb2: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered pci0: <USB controller> at 10.2 irq 12 [... debug info seems uninteresting] (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 [...] (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 80 0 ff 0 [...] (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 [...] (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 [...] da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Prolific UsbFlashDisk PROL> Removable Direct Access SCSI-0 device [...] da0: 650KB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present [Now, if I try to mount -t msdos /dev/da0s1 /mnt/stick I get: ] Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): daopen: dev=da0 (unit 0 , partition 2) Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): entering cdgetccb Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): xpt_schedule Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): xpt_setup_ccb Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): xpt_action Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 Aug 8 19:19:27 atila /kernel: umass0: BBB reset failed, IOERROR Aug 8 19:19:27 atila /kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 8 19:19:27 atila /kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): xpt_done Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): camisr Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): xpt_action Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 Aug 8 19:19:27 atila /kernel: umass0: BBB reset failed, IOERROR Aug 8 19:19:27 atila /kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 8 19:19:27 atila /kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): xpt_done Aug 8 19:19:27 atila /kernel: (da0:umass-sim0:0:0:0): camisr ========= [ # usbdevs -vd ] ============ Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered ========= [ # usbd -v ] ============ usbd: opened /dev/usb0 usbd: reading configuration file /etc/usbd.conf usbd: Could not open /dev/usb, Device busy (# lsof /dev/usb COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME usbd 105 root 4r VCHR 108,255 0t1920 8774 /dev/usb ) BTW, I don't have those additional usbd lines in /var/log/messages that you do. I don't know why (I have usbd_enable="YES" in rc.conf). I don't know if this is relevant, but my USB controller is not on motherboard but it is an additional PCI card. I don't have any additional USB devices, and I haven't configured usbd.conf. Should I have done that? How to find out product/vendor/release numbers? ========= [ # camcontrol devlist -v ] ============ scbus0 on umass-sim0 bus 0: <Prolific UsbFlashDisk PROL> at scbus0 target 0 lun 0 (pass0,da0) <Prolific UsbFlashDisk PROL> at scbus0 target 0 lun 1 (da1,pass1) <Prolific UsbFlashDisk PROL> at scbus0 target 0 lun 2 (da2,pass2) scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) ========= [ # camcontrol inquiry da0 ] ============ pass0: <Prolific UsbFlashDisk PROL> Removable Direct Access SCSI-0 device pass0: Serial Number pass0: 650KB/s transfers -- Kresimir Kumericki kkumer@phy.hr http://www.phy.hr/~kkumer/ "Fizika svemira" - http://eskola.hfd.hr/fizika_svemira/svemir.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030808182009.GA30773>