From owner-freebsd-hackers Wed Nov 27 6:11:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B37037B401 for ; Wed, 27 Nov 2002 06:11:47 -0800 (PST) Received: from pohoda.cz (pohoda.pohoda.cz [194.228.111.151]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BB0443EB2 for ; Wed, 27 Nov 2002 06:11:46 -0800 (PST) (envelope-from plusik@pohoda.cz) Received: (qmail 6100 invoked from network); 27 Nov 2002 14:11:49 -0000 Received: from plusik@pohoda.cz by pohoda.cz by uid 513 with qmail-scanner-1.15 ( Clear:. Processed in 1.460758 secs); 27 Nov 2002 14:11:49 -0000 Received: from saturn.netcore.cz (HELO localhost.localdomain) (212.67.74.6) by pohoda.pohoda.cz with SMTP; 27 Nov 2002 14:11:47 -0000 Received: by localhost.localdomain (Postfix, from userid 1000) id 4DBE01CBA3A; Wed, 27 Nov 2002 15:11:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 38A9D1CBA39; Wed, 27 Nov 2002 15:11:41 +0100 (CET) Date: Wed, 27 Nov 2002 15:11:41 +0100 (CET) From: Tomas Pluskal X-X-Sender: plusik@localhost.localdomain To: Nick Hibma Cc: "freebsd-hackers@freebsd.org" Subject: Re: umass driver speed In-Reply-To: <20021127144232.N99600-100000@uitsmijter.van-laarhoven.org> Message-ID: <20021127151016.V315-100000@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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