Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2002 15:11:41 +0100 (CET)
From:      Tomas Pluskal <plusik@pohoda.cz>
To:        Nick Hibma <n_hibma@van-laarhoven.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: umass driver speed
Message-ID:  <20021127151016.V315-100000@localhost.localdomain>
In-Reply-To: <20021127144232.N99600-100000@uitsmijter.van-laarhoven.org>

next in thread | previous in thread | raw e-mail | index | archive | help

This is the debug output of
#dd if=/dev/da0s1c of=/tmp/data bs=65536 count=3

umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
umass0: CBW 66: cmd = 10b (0x250000000000...), data = 8b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x 0001f47f00000200 buffer=0xc16a4040, buflen=8
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 66: sig = 0x53425355 (valid), tag = 66, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense
umass0: CBW 67: cmd = 6b (0x1e0000000100), data = 0b, dir = out
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: no data phase
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 67: sig = 0x53425355 (valid), tag = 67, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/512b data/32b sense
umass0: CBW 68: cmd = 10b (0x280000000000...), data = 512b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x fabe007cbf007ab90001fc0e1f0e07f3 buffer=0xc18d1200, buflen=512
umass0: 0x a5ea167a0000bbbe7b33c9803f807506
umass0: 0x fec58bf3eb07803f007502fec183c310 ...
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 68: sig = 0x53425355 (valid), tag = 68, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/512b data/32b sense
umass0: CBW 69: cmd = 10b (0x280000000021...), data = 512b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x f8ffffffffffffffffffffffe0250000 buffer=0xc19b7e00, buflen=512
umass0: 0x 00000000000000000000000000000000
umass0: 0x 00000000000000000000000000000000 ...
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 69: sig = 0x53425355 (valid), tag = 69, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/65536b data/32b sense
umass0: CBW 70: cmd = 10b (0x280000000020...), data = 65536b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x eb3c902a564e40744948430002040100 buffer=0xd1b49000, buflen=65536
umass0: 0x 0200020000f87d002000040020000000
umass0: 0x e0f301008000290a141b084e4f204e41 ...
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 70: sig = 0x53425355 (valid), tag = 70, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/65536b data/32b sense
umass0: CBW 71: cmd = 10b (0x2800000000a0...), data = 65536b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x 00000000000000000000000000000000 buffer=0xd1b49000, buflen=65536
umass0: 0x 00000000000000000000000000000000
umass0: 0x 00000000000000000000000000000000 ...
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 71: sig = 0x53425355 (valid), tag = 71, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/65536b data/32b sense
umass0: CBW 72: cmd = 10b (0x280000000120...), data = 65536b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x 00000000000000000000000000000000 buffer=0xd1b09000, buflen=65536
umass0: 0x 00000000000000000000000000000000
umass0: 0x 00000000000000000000000000000000 ...
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 72: sig = 0x53425355 (valid), tag = 72, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x35, flags: 0xc0, 10b cmd/0b data/32b sense
umass0: CBW 73: cmd = 10b (0x350000000000...), data = 0b, dir = out
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: no data phase
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 73: sig = 0x53425355 (valid), tag = 73, res = 0, status = 0x01 (failed)
umass0: Command Failed, res = 0
umass0: Fetching 32b sense data
umass0: CBW 74: cmd = 6b (0x030000002000), data = 32b, dir = in
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: Handling BBB state 3 (BBB Data), xfer=0xc1827000, NORMAL_COMPLETION
umass0: 0x 700005000000000a0000000020000000 buffer=0xc192a470, buflen=32
umass0: 0x 00000000000000000000000000000000
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 74: sig = 0x53425355 (valid), tag = 74, res = 0, status = 0x00 (good)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense
umass0: CBW 75: cmd = 6b (0x1e0000000000), data = 0b, dir = out
umass0: Handling BBB state 2 (BBB CBW), xfer=0xc16bca80, NORMAL_COMPLETION
umass0: no data phase
umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc1909780, NORMAL_COMPLETION
umass0: CSW 75: sig = 0x53425355 (valid), tag = 75, res = 0, status = 0x00 (good)

I am not sure what to look for, though.

Tomas


On Wed, 27 Nov 2002, Nick Hibma wrote:

>
> You would have to switch on UMASS_DEBUG in your kernel config to see
> whether the driver is actually asked for large chunks. If you ask CAM
> for 64k blocks it will produce 64k requests, which are passed down to
> the USB layer, which doesn't cut them up. So in that case there is
> something else wrong.
>
> Nick


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




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