Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2002 23:37:32 +0200 (CEST)
From:      Tomas Pluskal <plusik@pohoda.cz>
To:        Darryl Okahata <darrylo@soco.agilent.com>
Cc:        freebsd-hardware@FreeBSD.ORG
Subject:   Re: umass0: BBB reset failed, TIMEOUT 
Message-ID:  <20020405232437.D253-100000@s096-n062.tele2.cz>
In-Reply-To: <200204051925.LAA22122@mina.soco.agilent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> * You could try setting "options UMASS_DEBUG", as this might give you
>   enough information.  Note that this option, unlike USB_DEBUG, both
>   compiles in debug code *AND* enables it.

I have tried this, see end of message.

>      On a side note, are you using the uhci or ohci device?  I'm using
> uhci without any problems, and I've heard that the ohci driver isn't as
> good as the uhci one.

I am using uhci, according to usbdevs:
addr 1: UHCI root hub, VIA
 addr 2: NIKON DSC E775, NIKON
 addr 3: Genius USB Wheel Mouse, KYE

Now this is 'dmesg | grep umass' in the case when I plug the camera in
BEFORE I boot (everything works fine):

umass0: NIKON NIKON DSC E775, rev 1.10/1.00, addr 2, SCSI over Bulk-Only
umass0: Max Lun is 0
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:-1: Attached to scbus0 as device 0
umass0: Attach finished
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass-sim:0:1:0:func_code 0x0004: Invalid target (no wildcard)
umass-sim:0:2:0:func_code 0x0004: Invalid target (no wildcard)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 1: cmd = 6b (0x120000002400), data = 36 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc1dd1280, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc1de4f80, NORMAL_COMPLETION
umass0: 0x 008002021f0000004e494b4f4e202020 buffer=0xc1ee6484, buflen=36
umass0: 0x 4e494b4f4e2044534320453737352020
umass0: 0x 312e3030
umass0: Handling BBB state 4 (BBB CSW, 1st attempt), xfer=0xc1de4e80, NORMAL_COMPLETION
umass0: CSW 1: sig = 0x53425355 (valid), tag = 1, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/255b data/18b sense
umass0: CBW 2: cmd = 6b (0x12018000ff00), data = 255 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc1dd1280, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc1de4f80, NORMAL_COMPLETION
umass0: 0x 008002021f0000004e494b4f4e202020 buffer=0xc1e30100, buflen=255
umass0: 0x 4e494b4f4e2044534320453737352020
umass0: 0x 312e3030000000000000000000000000 ...
umass0: Handling BBB state 4 (BBB CSW, 1st attempt), xfer=0xc1de4e80, NORMAL_COMPLETION
umass0: CSW 2: sig = 0x53425355 (valid), tag = 2, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_GET_TRAN_SETTINGS:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_GET_TRAN_SETTINGS:.
umass0:0:0:0:XPT_SET_TRAN_SETTINGS:.
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b cmd/0b data/32b sense
umass0: Converted TEST_UNIT_READY to START_UNIT
umass0: CBW 3: cmd = 16b (0x1b0000000100...), data = 0 bytes, dir = out
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc1dd1280, NORMAL_COMPLETION
umass0: no data phase
umass0: Handling BBB state 4 (BBB CSW, 1st attempt), xfer=0xc1de4e80, NORMAL_COMPLETION
umass0: CSW 3: sig = 0x53425355 (valid), tag = 3, res = 0, status = 0x01 (failed)
umass0: Command Failed, res = 0
umass0: Fetching 0b sense data
umass0: CBW 4: cmd = 6b (0x030000002000), data = 32 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc1dd1280, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc1de4f80, NORMAL_COMPLETION
umass0: 0x 700005000000000a0000000024000000 buffer=0xc1ee9c70, buflen=32
umass0: 0x 00000000000000000000000000000000
umass0: Handling BBB state 4 (BBB CSW, 1st attempt), xfer=0xc1de4e80, NORMAL_COMPLETION
umass0: CSW 4: sig = 0x53425355 (valid), tag = 4, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
umass0: CBW 5: cmd = 10b (0x250000000000...), data = 8 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc1dd1280, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc1de4f80, NORMAL_COMPLETION
umass0: 0x 0001f47f00000200 buffer=0xc1dcd590, buflen=8
umass0: Handling BBB state 4 (BBB CSW, 1st attempt), xfer=0xc1de4e80, NORMAL_COMPLETION
umass0: CSW 5: sig = 0x53425355 (valid), tag = 5, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_CALC_GEOMETRY: Volume size = 128128
da0 at umass-sim0 bus 0 target 0 lun 0
umass0:0:0:0:XPT_GET_TRAN_SETTINGS:.
umass0:0:0:0:XPT_PATH_INQ:.

And this is the same report when I plug the camera in AFTER boot:

umass0: NIKON NIKON DSC E775, rev 1.10/1.00, addr 3, SCSI over Bulk-Only
umass0: Max Lun is 0
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:-1: Attached to scbus0 as device 0
scbus0: scanning for umass0:0:0:-1
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 1: cmd = 6b (0x120000002400), data = 36 bytes, dir = in
umass-sim:0:1:0:func_code 0x0004: Invalid target (no wildcard)
umass-sim:0:2:0:func_code 0x0004: Invalid target (no wildcard)
umass0: Attach finished
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc2074880, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc208d800, TIMEOUT
umass0: Data-in 36b failed, TIMEOUT
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc208da80, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc1fe9800, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xc1ff8b00, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 2: cmd = 6b (0x120000002400), data = 36 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc2074880, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc208d800, TIMEOUT
umass0: Data-in 36b failed, TIMEOUT
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc208da80, IOERROR
umass0: BBB reset failed, IOERROR
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc1fe9800, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xc1ff8b00, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 3: cmd = 6b (0x120000002400), data = 36 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc2074880, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc208d800, TIMEOUT
umass0: Data-in 36b failed, TIMEOUT
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc208da80, IOERROR
umass0: BBB reset failed, IOERROR
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc1fe9800, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xc1ff8b00, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 4: cmd = 6b (0x120000002400), data = 36 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc2074880, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc208d800, TIMEOUT
umass0: Data-in 36b failed, TIMEOUT
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc208da80, IOERROR
umass0: BBB reset failed, IOERROR
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc1fe9800, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xc1ff8b00, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 5: cmd = 6b (0x120000002400), data = 36 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc2074880, NORMAL_COMPLETION
umass0: Handling BBB state 2 (BBB Data), xfer=0xc208d800, TIMEOUT
umass0: Data-in 36b failed, TIMEOUT
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc208da80, IOERROR
umass0: BBB reset failed, IOERROR
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc1fe9800, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xc1ff8b00, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR

It always fails in the BBB Data part. Somewhere I see a different order of
same messages (for example the Attached to... and Attach finished messages
are separated by other messages in the second report), but I can't see
any point in that.

Tomas Pluskal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8rhkcqlO9Q2aZisoRAmNoAJsFTgbIPmzNAzBccLnEoAAOcj6EzACgjp26
05HBylDnCoDC8lsFVAPA69c=
=MVg9
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




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