NetBSD Problem Report #22960

Received: (qmail 14546 invoked by uid 605); 25 Sep 2003 19:50:15 -0000
Message-Id: <20030925195012.2665F360E7@firefly.localdomain>
Date: Fri, 26 Sep 2003 04:50:12 +0900 (JST)
From: hira@po6.nsk.ne.jp
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.netbsd.org
Subject: fix sd(4) on atapibus
X-Send-Pr-Version: 3.95

>Number:         22960
>Category:       kern
>Synopsis:       fix sd(4) on atapibus
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    mycroft
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 25 19:51:00 +0000 2003
>Closed-Date:    Sat Jun 26 04:28:31 +0000 2004
>Last-Modified:  Fri Jul 02 17:21:04 +0000 2004
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 1.6ZC
>Organization:
>Environment:
System: NetBSD firefly.localdomain 1.6ZC NetBSD 1.6ZC (FIREFLY) #178: Fri Sep 26 01:42:03 JST 2003 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY i386
Architecture: i386
Machine: i386
>Description:
	On atapibus, sd(4) driver does not work. In sd(4) driver, atapibus
	specific get_parms() is needed (maybe). I'm sorry, my PR kern/22938
	was bogus.

>How-To-Repeat:

>Fix:
	This is patch.

Index: sd.c
===================================================================
RCS file: /cvs/cvsroot/src/sys/dev/scsipi/sd.c,v
retrieving revision 1.210
diff -u -r1.210 sd.c
--- sd.c	18 Sep 2003 06:55:53 -0000	1.210
+++ sd.c	25 Sep 2003 06:05:03 -0000
@@ -87,6 +87,7 @@
 #include <dev/scsipi/scsi_disk.h>
 #include <dev/scsipi/scsiconf.h>
 #include <dev/scsipi/sdvar.h>
+#include <dev/scsipi/atapi_disk.h>

 #define	SDUNIT(dev)			DISKUNIT(dev)
 #define	SDPART(dev)			DISKPART(dev)
@@ -114,6 +115,9 @@
 	    int));
 int	sd_get_capacity __P((struct sd_softc *, struct disk_parms *, int));
 int	sd_get_parms __P((struct sd_softc *, struct disk_parms *, int));
+int	sd_scsibus_get_parms __P((struct sd_softc *, struct disk_parms *, int));
+int	sd_atapibus_get_parms __P((struct sd_softc *, struct disk_parms *,
+	    int));
 int	sd_flush __P((struct sd_softc *, int));
 int	sd_getcache __P((struct sd_softc *, int *));
 int	sd_setcache __P((struct sd_softc *, int));
@@ -1773,6 +1777,27 @@
 	struct disk_parms *dp;
 	int flags;
 {
+	switch (scsipi_periph_bustype(sd->sc_periph)) {
+	case SCSIPI_BUSTYPE_SCSI:
+		return (sd_scsibus_get_parms(sd, dp, flags));
+		break;
+	case SCSIPI_BUSTYPE_ATAPI:
+		return (sd_atapibus_get_parms(sd, dp, flags));
+		break;
+	default:
+		return (SDGP_RESULT_OFFLINE);
+		break;
+	}
+	/* NOTREACHED */
+	return (SDGP_RESULT_OFFLINE);
+}
+
+int
+sd_scsibus_get_parms(sd, dp, flags)
+	struct sd_softc *sd;
+	struct disk_parms *dp;
+	int flags;
+{
 	struct sd_mode_sense_data scsipi_sense;
 	int error;
 	int big;
@@ -1907,6 +1932,84 @@

 blksize:
 	return (SDGP_RESULT_OK);
+}
+
+int
+sd_atapibus_get_parms(sd, dp, flags)
+        struct sd_softc *sd;
+        struct disk_parms *dp;
+        int flags;
+{
+        struct atapi_read_format_capacities scsipi_cmd;
+        struct atapi_capacity_descriptor *descp;
+        struct atapi_sd_mode_data sense_data;
+        char capacity_data[ATAPI_CAP_DESC_SIZE(1)];
+        int error;
+
+        memset(&scsipi_cmd, 0, sizeof scsipi_cmd);
+        scsipi_cmd.opcode = ATAPI_READ_FORMAT_CAPACITIES;
+        _lto2b(ATAPI_CAP_DESC_SIZE(1), scsipi_cmd.length);
+
+        error = scsipi_command(sd->sc_periph,
+            (struct scsipi_generic *)&scsipi_cmd, sizeof(scsipi_cmd),
+            (void *)capacity_data, ATAPI_CAP_DESC_SIZE(1), SDRETRIES, 20000,
+            NULL, flags | XS_CTL_DATA_IN | XS_CTL_DATA_ONSTACK);
+        SC_DEBUG(sd->sc_periph, SCSIPI_DB2,
+            ("sd_atapibus_get_parms: read format capacities error=%d\n",
+            error));
+
+        if (error != 0)
+                return (SDGP_RESULT_OFFLINE);
+        descp = (struct atapi_capacity_descriptor *)
+            &capacity_data[ATAPI_CAP_DESC_OFFSET_DESC(0)];
+
+        switch (descp->byte5 & ATAPI_CAP_DESC_CODE_MASK) {
+        case ATAPI_CAP_DESC_CODE_UNFORMATTED:
+                return SDGP_RESULT_UNFORMATTED;
+
+        case ATAPI_CAP_DESC_CODE_RESERVED:
+        case ATAPI_CAP_DESC_CODE_FORMATTED:
+                break;
+
+        case ATAPI_CAP_DESC_CODE_NONE:
+                return SDGP_RESULT_OFFLINE;
+        }
+
+        dp->disksize = _4btol(descp->nblks);
+        dp->blksize = _3btol(descp->blklen);
+        if (dp->blksize == 0)
+                dp->disksize512 = dp->disksize;
+        else
+                dp->disksize512 = (dp->disksize * dp->blksize) / DEV_BSIZE;
+
+       /*
+         * First, set up standard fictitious geometry, a la sd_scsi.c.
+         */
+        dp->heads = 64;
+        dp->sectors = 32;
+        dp->cyls = dp->disksize / (64 * 32);
+        dp->rot_rate = 3600;
+
+        /*
+         * Then try to get something better.  If we can't, that's
+         * still OK.
+         *
+         * XXX Rigid geometry page?
+         */
+        error = scsipi_mode_sense_big(sd->sc_periph, 0,
+            ATAPI_FLEX_GEOMETRY_PAGE, &sense_data.header, FLEXGEOMETRYPAGESIZE,
+            flags | XS_CTL_DATA_ONSTACK, SDRETRIES, 20000);
+        SC_DEBUG(sd->sc_periph, SCSIPI_DB2,
+            ("sd_atapibus_get_parms: mode sense (flex) error=%d\n", error));
+        if (error != 0)
+                return (SDGP_RESULT_OK);
+
+        dp->heads = sense_data.pages.flex_geometry.nheads;
+        dp->sectors = sense_data.pages.flex_geometry.ph_sec_tr;
+        dp->cyls = _2btol(sense_data.pages.flex_geometry.ncyl);
+        dp->rot_rate = _2btol(sense_data.pages.flex_geometry.rot_rate);
+
+        return (SDGP_RESULT_OK);
 }

 int

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mycroft 
State-Changed-When: Thu Sep 25 19:52:42 UTC 2003 
State-Changed-Why:  
It's impossible to analyze the problem you're trying to address, because you 
haven't documented what the failure mode is. 

From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
To: mycroft@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22960
Date: Fri, 26 Sep 2003 06:11:13 +0900

 Hello,

 At 25 Sep 2003 19:53:08 -0000,
 mycroft@netbsd.org wrote:
 > It's impossible to analyze the problem you're trying to address, because you
 > haven't documented what the failure mode is.

 I have a Logitec LFD-31U2 USB floppy drive.

 umass0 at uhub5 port 3 configuration 1 interface 0
 umass0: Y-E DATA USB Floppy Drive, rev 1.10/5.01, addr 5
 umass0: using UFI over CBI with CCI
 atapibus1 at umass0 channel 0: 2 targets
 sd0 at atapibus1 drive 0: <Y-E DATA, USB-FDU, 5.01> disk removable
 sd0: drive offline

 When I try to mount(8) and dd(1), these commands are failed with I/O error.

 # mount -t msdos /dev/sd0d /mnt
 mount_msdos: /dev/sd0d on /mnt: Input/output error

 # dd if=bootlap1.fs of=/dev/rsd0d bs=18k
 dd: /dev/rsd0d: Input/output error
 1+0 records in
 0+0 records out
 0 bytes transferred in 19.149 secs (0 bytes/sec)

 And a following message is output to system message.

 sd0: dos partition I/O error

 It has not worked since sd_atapi.c and sd_scsi.c were merged into sd.c.

 best regards.

 -- 
  Kouichirou Hiratsuka
    hira@po6.nsk.ne.jp



From: "Charles M. Hannum" <abuse@spamalicious.com>
To: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22960
Date: Fri, 26 Sep 2003 18:41:02 +0000 (UTC)

 There's not enough information here for me to determine what's wrong.
 Please build a kernel with "options USB_DEBUG", set umassdebug to 0xff
 (you can do this in DDB, e.g.) and try a mount operation again.  Send
 me the complete output from dmesg(8) for analysis.



From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
To: "Charles M. Hannum" <abuse@spamalicious.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22960
Date: Sat, 27 Sep 2003 05:38:06 +0900

 > There's not enough information here for me to determine what's wrong.
 > Please build a kernel with "options USB_DEBUG", set umassdebug to 0xff
 > (you can do this in DDB, e.g.) and try a mount operation again.  Send
 > me the complete output from dmesg(8) for analysis.

 I tried this. However, I set umassdebug to 0xffffffff.

 NetBSD 1.6ZC (FIREFLY) #184: Sat Sep 27 04:51:07 JST 2003
 	root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY
 total memory = 1023 MB
 avail memory = 946 MB
 using 6144 buffers containing 52508 KB of memory
 BIOS32 rev. 0 found at 0xfa1d0
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium 4 (686-class), 2612.71 MHz, id 0xf29
 cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
 cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
 cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
 cpu0: L2 cache 512 KB 64b/line 8-way
 cpu0: ITLB 4K/4M: 128 entries
 cpu0: DTLB 4K/4M: 64 entries
 cpu0: 16 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Intel 82865 Host (rev. 0x02)
 agp0 at pchb0: aperture at 0xe8000000, size 0x8000000
 ppb0 at pci0 dev 1 function 0: Intel 82865 AGP (rev. 0x02)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga1 at pci1 dev 0 function 0: Matrox MGA G550 AGP (rev. 0x01)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 uhci0 at pci0 dev 29 function 0: Intel 82801EB/ER USB UHCI Controller #0 (rev. 0x02)
 uhci0: interrupting at irq 5
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller #1 (rev. 0x02)
 uhci1: interrupting at irq 4
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller #2 (rev. 0x02)
 uhci2: interrupting at irq 11
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller #3 (rev. 0x02)
 uhci3: interrupting at irq 5
 usb3 at uhci3: USB revision 1.0
 uhub3 at usb3
 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 ehci0 at pci0 dev 29 function 7: Intel 82801EB/ER USB EHCI Controller (rev. 0x02)
 ehci0: interrupting at irq 3
 ehci0: EHCI version 1.0
 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
 usb4 at ehci0: USB revision 2.0
 uhub4 at usb4
 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub4: 8 ports with 8 removable, self powered
 ppb1 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0xc2)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled
 esa0 at pci2 dev 2 function 0: ESS Technology, Inc. Maestro 3 PCI Audio Accelerator (rev. 0x10)
 esa0: interrupting at irq 7
 esa0: ac97: Wolfson WM9703/WM9707/WM9708 codec; headphone, 18 bit DAC, 18 bit ADC, Wolfson Microelectronics 3D
 esa0: ac97: ext id 1<VRA>
 audio0 at esa0: full duplex, mmap, independent
 fxp0 at pci2 dev 8 function 0: Intel PRO/100 VM Network Controller with 82562ET/EZ PHY, rev 2
 fxp0: interrupting at irq 10
 fxp0: Ethernet address 00:20:ed:83:2f:7b
 inphy0 at fxp0 phy 1: i82562ET 10/100 media interface, rev. 0
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 pcib0 at pci0 dev 31 function 0
 pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
 pciide0 at pci0 dev 31 function 2
 pciide0: Intel 82801EB Serial ATA Controller (rev. 0x02)
 pciide0: bus-master DMA support present
 pciide0: primary channel configured to compatibility mode
 pciide0: primary channel interrupting at irq 14
 pciide0: secondary channel configured to compatibility mode
 pciide0: secondary channel interrupting at irq 15
 Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
 isa0 at pcib0
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pcppi0 at isa0 port 0x61
 spkr0 at pcppi0
 sysbeep0 at pcppi0
 npx0 at isa0 port 0xf0-0xff: using exception 16
 apm0 at mainbus0: Power Management spec V1.2
 wd0 at pciide0 channel 0 drive 0: <WDC WD360GD-00FNA0>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 35304 MB, 71730 cyl, 16 head, 63 sec, 512 bytes/sect x 72303840 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA data transfers)
 atapibus0 at pciide0 channel 1: 2 targets
 cd0 at atapibus0 drive 1: <PIONEER DVD-RW  DVR-105, CDDC376556WL, 1.30> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 wd1 at pciide0 channel 1 drive 0: <WDC WD800JB-00CRA1>
 wd1: drive supports 16-sector PIO transfers, LBA addressing
 wd1: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
 wd1: 32-bit data port
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
 cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 uhub5 at uhub1 port 1
 uhub5: Atmel Standard USB Hub, class 9/0, rev 1.10/3.00, addr 2
 uhub5: 4 ports with 4 removable, self powered
 uhidev0 at uhub5 port 1 configuration 1 interface 0
 uhidev0: Topre Corporation HHKB Professional, rev 1.10/1.02, addr 3, iclass 3/1
 ukbd0 at uhidev0
 wskbd1 at ukbd0 mux 1
 wskbd1: connecting to wsdisplay0
 uhidev1 at uhub5 port 2 configuration 1 interface 0
 uhidev1: Microsoft Microsoft Wireless Intellimouse ExplorerM-. 1.0A, rev 1.10/0.16, addr 4, iclass 3/1
 uhidev1: 2 report ids
 ums0 at uhidev1 reportid 1: 5 buttons and Z dir.
 wsmouse0 at ums0 mux 0
 uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 umass0 at uhub1 port 2 configuration 1 interface 0
 umass0: Y-E DATA USB Floppy Drive, rev 1.10/5.01, addr 5
 umass0: using UFI over CBI with CCI
 atapibus1 at umass0 channel 0: 2 targets
 sd0 at atapibus1 drive 0: <Y-E DATA, USB-FDU, 5.01> disk removable
 sd0: drive offline
 umass0: umass_scsi_cmd: at 1064606560.181288: 0:0 xs=0xc182b000 cmd=0x00 datalen=0 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
 umass0: umass_cbi_transfer cmd=0x00, len=0
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: no data phase
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=15000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x28, ASCQ = 0x00
 umass_scsipi_cb: at 1064606561.069298, delta=888010: xs=0xc182b000 residue=0 status=2
 umass0: umass_cbi_transfer cmd=0x03, len=32
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xc182b05c buflen=32 flags=0x5 timeout=15000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, NORMAL_COMPLETION
 umass0: CBI_DATA actlen=18
 umass0: 0x 700006000000000a0000000028000000 buffer=0xc182b05c, buflen=18
 umass0: 0x 0000
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=15000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x28, ASCQ = 0x00
 umass_scsipi_sense_cb: xs=0xc182b000 residue=14 status=0
 umass_scsipi_sense_cb: return xs->error=1, xs->xs_status=0x1 xs->resid=0
 umass0: umass_scsi_cmd: at 1064606561.104505: 0:0 xs=0xc182b000 cmd=0x00 datalen=0 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
 umass0: umass_cbi_transfer cmd=0x00, len=0
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: no data phase
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=15000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x00, ASCQ = 0x00
 umass_scsipi_cb: at 1064606561.133429, delta=28924: xs=0xc182b000 residue=0 status=0
 umass_scsipi_cb: at 1064606561.133429: return xs->error=0, xs->xs_status=0x0 xs->resid=0
 umass0: umass_scsi_cmd: at 1064606561.141644: 0:0 xs=0xc182b000 cmd=0x1e datalen=0 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
 umass0: umass_cbi_transfer cmd=0x1e, len=0
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: no data phase
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=10000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x24, ASCQ = 0x00
 umass_scsipi_cb: at 1064606561.166638, delta=24994: xs=0xc182b000 residue=0 status=2
 umass0: umass_cbi_transfer cmd=0x03, len=32
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xc182b05c buflen=32 flags=0x5 timeout=10000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, NORMAL_COMPLETION
 umass0: CBI_DATA actlen=18
 umass0: 0x 700005000000000a0000000024000000 buffer=0xc182b05c, buflen=18
 umass0: 0x 0000
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=10000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x24, ASCQ = 0x00
 umass_scsipi_sense_cb: xs=0xc182b000 residue=14 status=0
 umass_scsipi_sense_cb: return xs->error=1, xs->xs_status=0x1 xs->resid=0
 umass0: umass_scsi_cmd: at 1064606561.201056: 0:0 xs=0xc182b000 cmd=0x25 datalen=8 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=8
 umass0: umass_cbi_transfer cmd=0x25, len=8
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8acc buflen=8 flags=0x5 timeout=25000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, NORMAL_COMPLETION
 umass0: CBI_DATA actlen=8
 umass0: 0x 00000b3f00000200 buffer=0xe40f8acc, buflen=8
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=25000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x00, ASCQ = 0x00
 umass_scsipi_cb: at 1064606561.229410, delta=28354: xs=0xc182b000 residue=0 status=0
 umass_scsipi_cb: at 1064606561.229410: return xs->error=0, xs->xs_status=0x0 xs->resid=0
 umass0: umass_scsi_cmd: at 1064606561.235031: 0:0 xs=0xc182b000 cmd=0x5a datalen=16 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=16
 umass0: umass_cbi_transfer cmd=0x5a, len=16
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8b24 buflen=16 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 16 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606561.280882, delta=45851: xs=0xc182b000 residue=16 status=3
 umass_scsipi_cb: at 1064606561.280882: return xs->error=8, xs->xs_status=0x0 xs->resid=16
 umass0: umass_scsi_cmd: at 1064606561.286467: 0:0 xs=0xc182b000 cmd=0x5a datalen=16 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=16
 umass0: umass_cbi_transfer cmd=0x5a, len=16
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8b24 buflen=16 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 16 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606561.535886, delta=249419: xs=0xc182b000 residue=16 status=3
 umass_scsipi_cb: at 1064606561.535886: return xs->error=8, xs->xs_status=0x0 xs->resid=16
 umass0: umass_scsi_cmd: at 1064606561.541423: 0:0 xs=0xc182b000 cmd=0x5a datalen=16 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=16
 umass0: umass_cbi_transfer cmd=0x5a, len=16
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8b24 buflen=16 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 16 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606561.791910, delta=250487: xs=0xc182b000 residue=16 status=3
 umass_scsipi_cb: at 1064606561.791910: return xs->error=8, xs->xs_status=0x0 xs->resid=16
 umass0: umass_scsi_cmd: at 1064606561.797394: 0:0 xs=0xc182b000 cmd=0x5a datalen=16 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=16
 umass0: umass_cbi_transfer cmd=0x5a, len=16
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8b24 buflen=16 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 16 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606562.048834, delta=251440: xs=0xc182b000 residue=16 status=3
 umass_scsipi_cb: at 1064606562.048834: return xs->error=8, xs->xs_status=0x0 xs->resid=16
 umass0: umass_scsi_cmd: at 1064606562.054350: 0:0 xs=0xc182b000 cmd=0x5a datalen=16 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=16
 umass0: umass_cbi_transfer cmd=0x5a, len=16
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8b24 buflen=16 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 16 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606562.301800, delta=247450: xs=0xc182b000 residue=16 status=3
 umass_scsipi_cb: at 1064606562.301800: return xs->error=8, xs->xs_status=0x0 xs->resid=16
 umass0: umass_scsi_cmd: at 1064606562.307284: 0:0 xs=0xc182b000 cmd=0x5a datalen=40 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=40
 umass0: umass_cbi_transfer cmd=0x5a, len=40
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8bb4 buflen=40 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 40 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606562.558763, delta=251479: xs=0xc182b000 residue=40 status=3
 umass_scsipi_cb: at 1064606562.558763: return xs->error=8, xs->xs_status=0x0 xs->resid=40
 umass0: umass_scsi_cmd: at 1064606562.564232: 0:0 xs=0xc182b000 cmd=0x5a datalen=40 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=40
 umass0: umass_cbi_transfer cmd=0x5a, len=40
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8bb4 buflen=40 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 40 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606562.811738, delta=247506: xs=0xc182b000 residue=40 status=3
 umass_scsipi_cb: at 1064606562.811738: return xs->error=8, xs->xs_status=0x0 xs->resid=40
 umass0: umass_scsi_cmd: at 1064606562.818688: 0:0 xs=0xc182b000 cmd=0x5a datalen=40 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=40
 umass0: umass_cbi_transfer cmd=0x5a, len=40
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8bb4 buflen=40 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 40 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606563.066695, delta=248007: xs=0xc182b000 residue=40 status=3
 umass_scsipi_cb: at 1064606563.066695: return xs->error=8, xs->xs_status=0x0 xs->resid=40
 umass0: umass_scsi_cmd: at 1064606563.072287: 0:0 xs=0xc182b000 cmd=0x5a datalen=40 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=40
 umass0: umass_cbi_transfer cmd=0x5a, len=40
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8bb4 buflen=40 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 40 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606563.321671, delta=249384: xs=0xc182b000 residue=40 status=3
 umass_scsipi_cb: at 1064606563.321671: return xs->error=8, xs->xs_status=0x0 xs->resid=40
 umass0: umass_scsi_cmd: at 1064606563.328689: 0:0 xs=0xc182b000 cmd=0x5a datalen=40 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=40
 umass0: umass_cbi_transfer cmd=0x5a, len=40
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8bb4 buflen=40 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 40 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606563.576475, delta=247786: xs=0xc182b000 residue=40 status=3
 umass_scsipi_cb: at 1064606563.576475: return xs->error=8, xs->xs_status=0x0 xs->resid=40
 umass0: umass_scsi_cmd: at 1064606563.582092: 0:0 xs=0xc182b000 cmd=0x5a datalen=48 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=48
 umass0: umass_cbi_transfer cmd=0x5a, len=48
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe40f8bb4 buflen=48 flags=0x5 timeout=11000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, NORMAL_COMPLETION
 umass0: CBI_DATA actlen=40
 umass0: 0x 0026ff0000000000051e01f402120200 buffer=0xe40f8bb4, buflen=40
 umass0: 0x 0050000000000000000000051e000000
 umass0: 0x 00000000012c0000
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=11000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x00, ASCQ = 0x00
 umass_scsipi_cb: at 1064606563.820926, delta=238834: xs=0xc182b000 residue=8 status=0
 umass_scsipi_cb: at 1064606563.820926: return xs->error=0, xs->xs_status=0x0 xs->resid=8
 umass0: umass_scsi_cmd: at 1064606563.829307: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606567.343965, delta=3514658: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606567.343965: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606567.350276: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606571.067347, delta=3717071: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606571.067347: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606571.074257: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606574.793598, delta=3719341: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606574.793598: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606574.800634: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606578.520078, delta=3719444: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606578.520078: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606578.527036: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606582.242449, delta=3715413: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606582.242449: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 sd0: dos partition I/O error
 umass0: umass_scsi_cmd: at 1064606582.249526: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606585.966797, delta=3717271: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606585.966797: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606585.972405: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606589.689087, delta=3716682: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606589.689087: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606589.696115: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606593.413569, delta=3717454: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606593.413569: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606593.421918: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606597.135925, delta=3714007: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606597.135925: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606597.142886: 0:0 xs=0xc182b000 cmd=0x28 datalen=512 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=1, cmdlen=12 datalen=512
 umass0: umass_cbi_transfer cmd=0x28, len=512
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: start xfer buffer=0xe18a9000 buflen=512 flags=0x5 timeout=65000
 umass0: Handling CBI state 11 (CBI Data), xfer=0xc1782300, STALLED
 umass0: CBI_DATA actlen=0
 umass0: Data-in 512 failed, STALLED
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc1782f00, NORMAL_COMPLETION
 umass0: CBI Reset
 umass0: Handling CBI state 15 (CBI Reset), xfer=0xc1782200, NORMAL_COMPLETION
 umass0: Clear endpoint 0x81 stall
 umass0: Handling CBI state 16 (CBI bulk-in clear stall), xfer=0xc1782100, NORMAL_COMPLETION
 umass0: Clear endpoint 0x02 stall
 umass0: Handling CBI state 17 (CBI bulk-out clear stall), xfer=0xc182af00, NORMAL_COMPLETION
 umass_scsipi_cb: at 1064606600.858303, delta=3715417: xs=0xc182b000 residue=512 status=3
 umass_scsipi_cb: at 1064606600.858303: return xs->error=8, xs->xs_status=0x0 xs->resid=512
 umass0: umass_scsi_cmd: at 1064606600.866543: 0:0 xs=0xc182b000 cmd=0x1e datalen=0 (quirks=0x8000, poll=0)
 umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
 umass0: umass_cbi_transfer cmd=0x1e, len=0
 umass0: Handling CBI state 10 (CBI Command), xfer=0xc154f100, NORMAL_COMPLETION
 umass0: no data phase
 umass0: start xfer buffer=0xc18110a4 buflen=2 flags=0x0 timeout=10000
 umass0: Handling CBI state 12 (CBI Status), xfer=0xc1782a00, NORMAL_COMPLETION
 umass0: CBI_STATUS actlen=2
 umass0: UFI CCI, ASC = 0x00, ASCQ = 0x00
 umass_scsipi_cb: at 1064606601.094553, delta=228010: xs=0xc182b000 residue=0 status=0
 umass_scsipi_cb: at 1064606601.094553: return xs->error=0, xs->xs_status=0x0 xs->resid=0


State-Changed-From-To: feedback->open 
State-Changed-By: fair 
State-Changed-When: Tue Mar 30 03:18:27 UTC 2004 
State-Changed-Why:  

Feedback has been rather massively provided. 



Responsible-Changed-From-To: kern-bug-people->mycroft 
Responsible-Changed-By: fair 
Responsible-Changed-When: Tue Mar 30 03:18:27 UTC 2004 
Responsible-Changed-Why:  

Charles made a series of changes to the USB umass 
and SCSI drivers to eliminate the need for a wide 
range of quirk listings for devices that really 
turned out to be NetBSD's SCSI protocol implementation 
at fault. He has been tracking the effect of these 
changes, and so it is appropriate to assign this PR 
to him. 

State-Changed-From-To: open->feedback 
State-Changed-By: mycroft 
State-Changed-When: Fri Jun 25 13:53:32 UTC 2004 
State-Changed-Why:  
Please retest with umass.c 1.113 or later. 

From: "Charles M. Hannum" <mycroft@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22960 CVS commit: src/sys/dev/usb
Date: Fri, 25 Jun 2004 14:07:27 +0000 (UTC)

 Module Name:	src
 Committed By:	mycroft
 Date:		Fri Jun 25 14:07:27 UTC 2004

 Modified Files:
 	src/sys/dev/usb: umass.c

 Log Message:
 Do not return STATUS_WIRE_FAILED in response to a CBI stall.  This is perfectly
 normal, and is used to report errors.  Instead, use STATUS_CMD_FAILED, which
 causes us to do a REQUEST SENSE.  Should address PR 22960.


 To generate a diff of this commit:
 cvs rdiff -r1.112 -r1.113 src/sys/dev/usb/umass.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
To: gnats-bugs@gnats.netbsd.org, mycroft@netbsd.org
Cc:  
Subject: Re: kern/22960
Date: Sat, 26 Jun 2004 12:25:35 +0900

 Hello,

 I retried to use the USB floppy drive with revision 1.115 of umass.c.
 It works fine with mount_msdos(8) and dd(1).

 # uname -a
 NetBSD fireexit.localdomain 2.0F NetBSD 2.0F (GENERIC.USBDEBUG) #2: Sat Jun 26 11:31:36 JST 2004  root@fireexit.localdomain:/usr/src/sys/arch/i386/compile/GENERIC.USBDEBUG i386
 # mount -t msdos /dev/sd0d /mnt
 # df /mnt
 Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
 /dev/sd0d        1423      839       584    58%    /mnt
 # dd if=boot1.fs of=/dev/sd0d
 2880+0 records in
 2880+0 records out
 1474560 bytes transferred in 160.104 secs (9210 bytes/sec)
 #

 Thank you very much.  Please close this PR.

 best regards.

 -- 
  Kouichirou Hiratsuka
    hira@po6.nsk.ne.jp


State-Changed-From-To: feedback->closed 
State-Changed-By: mycroft 
State-Changed-When: Sat Jun 26 04:27:08 UTC 2004 
State-Changed-Why:  
User reports problem is fixed. 

From: "Charles M. Hannum" <mycroft@netbsd.org>
To: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22960
Date: Sat, 26 Jun 2004 04:29:06 +0000

 On Saturday 26 June 2004 03:25, Kouichirou Hiratsuka wrote:
 > Hello,
 >
 > I retried to use the USB floppy drive with revision 1.115 of umass.c.
 > It works fine with mount_msdos(8) and dd(1).

 Excellent.  Could you send me the dmesg(8) output for this device (and the 
 controller it's attached to)?

From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
To: mycroft@netbsd.org, gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: kern/22960
Date: Sat, 26 Jun 2004 14:06:19 +0900

 At Sat, 26 Jun 2004 04:29:06 +0000,
 Charles M. Hannum wrote:
 > 
 > Excellent.  Could you send me the dmesg(8) output for this device (and the 
 > controller it's attached to)?
 >
 My motherboard is Gigabyte GA-8IPE1000MK (Intel 865PE + ICH5).  The device
 has attached to UHCI controller.  dmesg(8) output is as follows.

 NetBSD 2.0F (GENERIC.USBDEBUG) #2: Sat Jun 26 11:31:36 JST 2004
 	root@fireexit.localdomain:/usr/src/sys/arch/i386/compile/GENERIC.USBDEBUG
 total memory = 1023 MB
 avail memory = 994 MB
 BIOS32 rev. 0 found at 0xfb040
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium 4 (686-class), 2545.65 MHz, id 0xf24
 cpu0: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features 3febfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
 cpu0: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
 cpu0: "Intel(R) Pentium(R) 4 CPU 2.53GHz"
 cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
 cpu0: L2 cache 512 KB 64b/line 8-way
 cpu0: ITLB 4K/4M: 64 entries
 cpu0: DTLB 4K/4M: 64 entries
 cpu0: using thermal monitor 1
 cpu0: 16 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Intel 82865 Host (rev. 0x02)
 agp0 at pchb0: aperture at 0xe8000000, size 0x8000000
 ppb0 at pci0 dev 1 function 0: Intel 82865 AGP (rev. 0x02)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga1 at pci1 dev 0 function 0: Nvidia Corporation product 0x0332 (rev. 0xa1)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 uhci0 at pci0 dev 29 function 0: Intel 82801EB/ER USB UHCI Controller #0 (rev. 0x02)
 uhci0: interrupting at irq 7
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller #1 (rev. 0x02)
 uhci1: interrupting at irq 9
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller #2 (rev. 0x02)
 uhci2: interrupting at irq 11
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller #3 (rev. 0x02)
 uhci3: interrupting at irq 7
 usb3 at uhci3: USB revision 1.0
 uhub3 at usb3
 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 Intel 82801EB/ER USB EHCI Controller (USB serial bus, interface 0x20, revision 0x02) at pci0 dev 29 function 7 not configured
 ppb1 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0xc2)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled
 yds0 at pci2 dev 2 function 0: Yamaha 744 (DS-1S) Audio (rev. 0x02)
 yds0: interrupting at irq 3
 yds0: ac97: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
 yds0: ac97: ext id 80<SDAC>
 audio0 at yds0: full duplex, mmap, independent
 fxp0 at pci2 dev 8 function 0: Intel PRO/100 VM Network Controller with 82562ET/EZ PHY, rev 2
 fxp0: interrupting at irq 10
 fxp0: Ethernet address 00:20:ed:83:2f:7b
 inphy0 at fxp0 phy 1: i82562ET 10/100 media interface, rev. 0
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 opl0 at yds0: model OPL3
 midi0 at opl0: DS-1 integrated Yamaha OPL3
 mpu0 at yds0
 midi1 at mpu0: Yamaha DS-1 MIDI UART
 pcib0 at pci0 dev 31 function 0
 pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
 piixide0 at pci0 dev 31 function 1
 piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
 piixide0: bus-master DMA support present
 piixide0: primary channel wired to compatibility mode
 piixide0: primary channel interrupting at irq 14
 atabus0 at piixide0 channel 0
 piixide0: secondary channel wired to compatibility mode
 piixide0: secondary channel interrupting at irq 15
 atabus1 at piixide0 channel 1
 piixide1 at pci0 dev 31 function 2
 piixide1: Intel 82801EB Serial ATA Controller (rev. 0x02)
 piixide1: bus-master DMA support present
 piixide1: primary channel configured to native-PCI mode
 piixide1: using irq 11 for native-PCI interrupt
 atabus2 at piixide1 channel 0
 piixide1: secondary channel configured to native-PCI mode
 atabus3 at piixide1 channel 1
 Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
 isa0 at pcib0
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pas: can't map base register 388 in probe
 pcppi0 at isa0 port 0x61
 midi2 at pcppi0: PC speaker
 sysbeep0 at pcppi0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 npx0 at isa0 port 0xf0-0xff: using exception 16
 isapnp0: no ISA Plug 'n Play devices found
 Kernelized RAIDframe activated
 wd0 at atabus0 drive 0: <WDC WD800JB-00CRA1>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 76318 MB, 155058 cyl, 16 head, 63 sec, 512 bytes/sect x 156299375 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <PIONEER DVD-RW  DVR-105, CDDC376556WL, 1.30> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 umass0 at uhub1 port 2 configuration 1 interface 0
 umass0: Y-E DATA USB Floppy Drive, rev 1.10/5.01, addr 2
 umass0: using UFI over CBI with CCI
 atapibus1 at umass0: 2 targets
 sd0 at atapibus1 drive 0: <Y-E DATA, USB-FDU, 5.01> disk removable
 sd0: drive offline




From: Havard Eidnes <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22960 CVS commit: [netbsd-2-0] src/sys/dev/usb
Date: Fri,  2 Jul 2004 17:19:52 +0000 (UTC)

 Module Name:	src
 Committed By:	he
 Date:		Fri Jul  2 17:19:52 UTC 2004

 Modified Files:
 	src/sys/dev/usb [netbsd-2-0]: umass.c

 Log Message:
 Pull up revisions 1.113-1.115 (requested by mycroft in ticket #572):
   Several fixes mostly related to USB:
    o Use STATUS_CMD_FAILED instead of STATUS_WIRE_FAILED in
      response to a CBI stall, so that we do a REQUEST SENSE
      thereafter.  Fixes PR#22960.
    o Fix usage of incorrect buffer in CBI, possibly causing
      general failure to transfer data correctly.  Fixes
      PR#25676.
    o Do not do a CBI resset before returning STATUS_CMD_FAILED.
      This causes any sense information to be thrown away.


 To generate a diff of this commit:
 cvs rdiff -r1.109 -r1.109.2.1 src/sys/dev/usb/umass.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.