Date: Mon, 04 Mar 2013 09:20:41 +0100 From: Hans Petter Selasky <hps@bitfrost.no> To: freebsd-usb@freebsd.org Subject: Re: Failed to read CSW: USB_ERR_STALLED Message-ID: <3277111.fKLbtIQrYQ@laptop015.hselasky.homeunix.org> In-Reply-To: <5132209A.3020401@swissmail.org> References: <51321D3E.2040600@swissmail.org> <5132209A.3020401@swissmail.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 02 March 2013 09:54:02 Krzysztof Parzyszek wrote: > Here's the beginning of dmesg: > > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.1-STABLE #6 r247608: Fri Mar 1 21:27:49 CST 2013 > root@apple5:/usr/obj/usr/src/sys/APPLE5 powerpc > cpu0: IBM PowerPC 970MP revision 1.1, 2500.32 MHz > cpu0: Features dc000000<PPC32,PPC64,ALTIVEC,FPU,MMU> > cpu0: HID0 1511081<DEEPNAP,NAP,DPM,NHR,TBEN,ENATTN> > real memory = 17159626752 (16364 MB) > avail memory = 16319057920 (15563 MB) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpu0: dev=ff89d680 (BSP) > cpu1: dev=ff89eb70 > cpu2: dev=ff89f248 > cpu3: dev=ff89f920 > kbd0 at kbdmux0 > nexus0: <Open Firmware Nexus device> > cpulist0: <Open Firmware CPU Group> on nexus0 > cpu0: <Open Firmware CPU> on cpulist0 > pcr0: <PPC 970 Power Control Register> on cpu0 > cpu1: <Open Firmware CPU> on cpulist0 > pcr1: <PPC 970 Power Control Register> on cpu1 > cpu2: <Open Firmware CPU> on cpulist0 > pcr2: <PPC 970 Power Control Register> on cpu2 > cpu3: <Open Firmware CPU> on cpulist0 > pcr3: <PPC 970 Power Control Register> on cpu3 > powermac_nvram0: <Apple NVRAM> on nexus0 > powermac_nvram0: bank0 generation 736, bank1 generation 737 > unin0: <Apple UniNorth System Controller> on nexus0 > unin0: Version 66 > iichb0: <Keywest I2C controller> mem 0xf8001000-0xf8001fff irq 0 on unin0 > iicbus0: <OFW I2C bus> on iichb0 > iicbus0: <unknown card> at addr 0x94 > iicbus0: <unknown card> at addr 0x96 > iicbus0: <unknown card> at addr 0x98 > iicbus0: <unknown card> at addr 0x9c > htpic0: <OpenPIC Interrupt Controller> mem 0xf8040000-0xf807ffff on unin0 > pcib0: <IBM CPC945 PCI Express Root> on nexus0 > pci0: <OFW PCI bus> on pcib0 > pcib1: <IBM CPC9X5 HyperTransport Tunnel> on nexus0 > pcib1: 86 HT IRQs on device 7.0 > pci1: <OFW PCI bus> on pcib1 > pcib1: Enabling MSI window for HyperTransport slave at pci1:0:1:0 > pcib2: <OFW PCI-PCI bridge> at device 1.0 on pci1 > pci2: <OFW PCI bus> on pcib2 > pcib3: <OFW PCI-PCI bridge> at device 2.0 on pci1 > pci3: <OFW PCI bus> on pcib3 > bge0: <Broadcom BCM5714 B3, ASIC rev. 0x008003> mem > 0xfa530000-0xfa53ffff,0xfa520000-0xfa52ffff irq 66 at device 4.0 on pci3 > bge0: CHIP ID 0x00008003; ASIC REV 0x08; CHIP REV 0x80; PCI-X 33 MHz > miibus0: <MII bus> on bge0 > brgphy0: <BCM5780 1000BASE-T media interface> PHY 1 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge0: Ethernet address: 00:16:cb:37:e2:e0 > bge1: <Broadcom BCM5714 B3, ASIC rev. 0x008003> mem > 0xfa510000-0xfa51ffff,0xfa500000-0xfa50ffff irq 67 at device 4.1 on pci3 > bge1: CHIP ID 0x00008003; ASIC REV 0x08; CHIP REV 0x80; PCI-X 33 MHz > miibus1: <MII bus> on bge1 > brgphy1: <BCM5780 1000BASE-T media interface> PHY 1 on miibus1 > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge1: Ethernet address: 00:16:cb:37:e2:e1 > pcib4: <OFW PCI-PCI bridge> at device 3.0 on pci1 > pci4: <OFW PCI bus> on pcib4 > pcib5: <OFW PCI-PCI bridge> at device 4.0 on pci1 > pci5: <OFW PCI bus> on pcib5 > pcib6: <OFW PCI-PCI bridge> at device 5.0 on pci1 > pci6: <OFW PCI bus> on pcib6 > vgapci0: <VGA-compatible display> mem > 0x82000000-0x82ffffff,0x88000000-0x8fffffff,0x81000000-0x81ffffff irq 63 > at device 0.0 on pci6 > pcib7: <OFW PCI-PCI bridge> at device 6.0 on pci1 > pci7: <OFW PCI bus> on pcib7 > pcib8: <OFW PCI-PCI bridge> at device 7.0 on pci1 > pci8: <OFW PCI bus> on pcib8 > gem0: <Apple Shasta GMAC Ethernet> mem 0xfa200000-0xfa3fffff at device > 15.0 on pci8 > gem0: failed to allocate resources > device_attach: gem0 attach returned 6 > pcib9: <OFW PCI-PCI bridge> at device 8.0 on pci1 > pci9: <OFW PCI bus> on pcib9 > macio0: <Shasta I/O Controller> mem 0x80000000-0x8007ffff at device 7.0 > on pci9 > macgpio0: <MacIO GPIO Controller> mem 0x50-0x8a on macio0 > scc0: <Zilog Z8530 dual channel SCC> mem > 0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff > irq 23,17,18,24,19,20 on macio0 > uart0: <z8530, channel A> on scc0 > uart1: <z8530, channel B> on scc0 > iichb1: <Keywest I2C controller> mem 0x18000-0x18fff irq 27 on macio0 > iicbus1: <OFW I2C bus> on iichb1 > iicbus1: <unknown card> at addr 0x8c > iicbus1: <unknown card> at addr 0x24 > ohci0: <NEC uPD 9210 USB controller> mem 0x80082000-0x80082fff irq 70 at > device 11.0 on pci9 > usbus0 on ohci0 > ohci1: <NEC uPD 9210 USB controller> mem 0x80081000-0x80081fff irq 70 at > device 11.1 on pci9 > usbus1 on ohci1 > ehci0: <NEC uPD 720100 USB 2.0 controller> mem 0x80080000-0x800800ff irq > 70 at device 11.2 on pci9 > usbus2: EHCI version 1.0 > usbus2 on ehci0 > pcib10: <OFW PCI-PCI bridge> at device 9.0 on pci1 > pci10: <OFW PCI bus> on pcib10 > atapci0: <ServerWorks K2 SATA150 controller> mem 0xfa402000-0xfa403fff > irq 10 at device 12.0 on pci10 > pcib1: failed to reserve resource for pcib10 > atapci0: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffffffffffff). > ata2: <ATA channel> at channel 0 on atapci0 > ata3: <ATA channel> at channel 1 on atapci0 > ata4: <ATA channel> at channel 2 on atapci0 > ata5: <ATA channel> at channel 3 on atapci0 > ata0: <Shasta Kauai ATA Controller> mem 0xfa404000-0xfa407fff irq 38 at > device 13.0 on pci10 > pci10: <serial bus, FireWire> at device 14.0 (no driver attached) > smu0: <Apple System Management Unit> on nexus0 > iichb2: <SMU I2C controller> on smu0 > iicbus2: <OFW I2C bus> on iichb2 > smusat0: <SMU Satellite Sensors> at addr 0xb0 on iicbus2 > smusat1: <SMU Satellite Sensors> at addr 0xb2 on iicbus2 > iicbus2: <unknown card> at addr 0xd4 > iichb3: <SMU I2C controller> on smu0 > iicbus3: <OFW I2C bus> on iichb3 > sc0: <System console> on nexus0 > sc0: Unknown <16 virtual consoles, flags=0x300> > Timecounter "timebase" frequency 33333333 Hz quality 0 > Event timer "decrementer" frequency 33333333 Hz quality 1000 > Timecounters tick every 1.000 msec > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 12Mbps Full Speed USB v1.0 > ugen0.1: <NEC> at usbus0 > uhub0: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 > ugen1.1: <NEC> at usbus1 > uhub1: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 > usbus2: 480Mbps High Speed USB v2.0 > ugen2.1: <NEC> at usbus2 > uhub2: <NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2 > uhub1: 2 ports with 2 removable, self powered > uhub0: 3 ports with 3 removable, self powered > uhub2: 5 ports with 5 removable, self powered > ada0 at ata2 bus 0 scbus0 target 0 lun 0 > ada0: <ST3250620NS 3.AEG> ATA-7 SATA 1.x device > ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) > ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C) > ada0: Previously was known as ad0cd0 at ata0 bus 0 scbus4 target 0 lun 0 > cd0: <HL-DT-ST DVD-RW GWA-4165B C006> Removable CD-ROM SCSI-0 device > cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes) > cd0: Attempt to query device size failed: NOT READY, Medium not present > > SMP: AP CPU #3 launched > SMP: AP CPU #1 launched > SMP: AP CPU #2 launched > Swap zone entries reduced from 1995943 to 1330628. > Root mount waiting for: usbus2 > Trying to mount root from ufs:/dev/ada0s3 [rw]... > ugen0.2: <Chicony> at usbus0 > interruptskbd1 at ukbd0 > ethernet point_to_pointuhid0: <Chicony Wireless Device, class 0/0, rev > 2.00/1.31, addr 2> on usbus0 > ums0: <Chicony Wireless Device, class 0/0, rev 2.00/1.31, addr 2> on usbus0 > ums0: 3 buttons and [XYZ] coordinates ID=0 > kickstart. > ugen2.2: <JMicron> at usbus2 > umass0: <MSC Bulk-Only Transfer> on usbus2 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:umass_cam_action: 5:-1:-1:XPT_PATH_INQ:. > umuamsass0s:05::u0m:a-s1s:_ cAatmt_aacchteido nt:o 5s:c-b1u:s-51:X > PuTm_aPsAsT0H:_uImNaQs:s._at > taucmha:s sA0t:tuamcahs sf_icnaims_haectdio > n: 5:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 5:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 5:0:0:XPT_GET_TRAN_SETTINGS:. > umass0:umass_cam_action: 5:0:0:XPT_SET_TRAN_SETTINGS:. > umass0:umass_cam_action: 5:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 5:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 5:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b > cmd/36b data/18b sense > umass0:umass_bbb_dump_cbw: CBW 1: cmd = 6b (0x120000002400), data = 36b, > lun = 0, dir = in > umass0:umass_transfer_start: transfer index = 4 > umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=36 > umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=0 > umass0:umass_transfer_start: transfer index = 8 > umass0:umass_bbb_dump_csw: CSW 1: sig = 0x53425355 (valid), tag = > 0x00000001, res = 0, status = 0x00 (good) > umass0:umass_cam_action: 5:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 5:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 5:0:0:XPT_GET_TRAN_SETTINGS:. > umass0:umass_cam_action: 5:0:0:XPT_SET_TRAN_SETTINGS:. > umass0:umass_cam_action: 5:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b > cmd/255b data/18b sense > umass0:umass_bbb_dump_cbw: CBW 2: cmd = 6b (0x12010000ff00), data = > 255b, lun = 0, dir = in > umass0:umass_transfer_start: transfer index = 4 > umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=255 > umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=0 > umass0:umass_transfer_start: transfer index = 8 > umass0:umass_t_bbb_status_callback: Failed to read CSW: USB_ERR_STALLED, > try 0 > umass0:umass_transfer_start: transfer index = 5 > umass0:umass_transfer_start: transfer index = 8 > umass0:umass_bbb_dump_csw: CSW 2: sig = 0x53425355 (valid), tag = > 0x00000002, res = 215, status = 0x00 (good) > [...] > Hi, Looks like your device is not complying to SCSI standards?? Try this: usbconfig -d X.Y add_quirk UQ_MSC_NO_INQUIRY Replug your device. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3277111.fKLbtIQrYQ>