NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/44228: Can't use 4G USB flash medium
>Number: 44228
>Category: kern
>Synopsis: Can't use 4G USB flash medium
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 13 05:45:00 +0000 2010
>Originator: Aleksej Saushev <asau%inbox.ru@localhost>
>Release: NetBSD 5.99.41
>Organization:
HE CE3OH...
>Environment:
System: NetBSD lithium 5.99.41 NetBSD 5.99.41 (GENERIC) #2: Sun Dec 12 02:14:59
MSK 2010 asau@lithium:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
I can't mount file system from 4G USB flash medium on NetBSD,
FreeBSD 7.2 and WinNT 5.1 work fine. The problem isn't new,
it exists in previous 5.99 versions at least.
I've built kernel with UMASS_DEBUG and modified sys/dev/usb/umass.c to
read
int umassdebug = 0xffff0000;
I plug medium, run "mount /dev/sd2e /mnt", and pull it off.
The output is below.
Note "sd2(umass2:0:0:0): generic HBA error" message,
one can see it without UMASS_DEBUG.
Dec 12 17:29:12 lithium /netbsd: umass2 at uhub7 port 5 configuration 1
interface 0
Dec 12 17:29:12 lithium /netbsd: umass2: Kingston DT 101 II, rev 2.00/1.00,
addr 4
Dec 12 17:29:12 lithium /netbsd: umass2: using SCSI over Bulk-Only
Dec 12 17:29:12 lithium /netbsd: umass2: Get Max Lun
Dec 12 17:29:12 lithium /netbsd: umass2: Max Lun 0
Dec 12 17:29:12 lithium /netbsd: umass2: opening iface 0xc3dd55e0 epaddr 2 for
BULKOUT
Dec 12 17:29:12 lithium /netbsd: umass2: opening iface 0xc3dd55e0 epaddr 129
for BULKIN
Dec 12 17:29:12 lithium /netbsd: umass2: umass_attach_bus: SCSI
Dec 12 17:29:12 lithium /netbsd: scsibus2 at umass2: 2 targets, 1 lun per target
Dec 12 17:29:12 lithium /netbsd: umass2: Attach finished
Dec 12 17:29:12 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164152.391955:
0:0 xs=0xc3d70ebc cmd=0x12 datalen=36 (quirks=0x8000, poll=0)
Dec 12 17:29:12 lithium /netbsd: umass_scsi_cmd: async dir=1, cmdlen=6
datalen=36
Dec 12 17:29:12 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x12
Dec 12 17:29:12 lithium /netbsd: umass2: CBW 5473: cmdlen=6
(0x12000000240000000000), data = 36 bytes, dir = in
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcf7c0000 buflen=36
flags=0x5 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 2 (BBB Data),
xfer=0xc41d3400, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: BBB_DATA actlen=36
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 008002021f0000004b696e6773746f6e
buffer=0xce64ac72, buflen=36
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 44542031303120494920202020202020
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 312e3030
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: CSW 5473: sig = 0x53425355 (valid),
tag = 5473, res = 0, status = 0x00 (good)
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.392896,
delta=941: xs=0xc3d70ebc residue=0 status=0
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.392896: return
xs->error=0, xs->xs_status=0x0 xs->resid=0
Dec 12 17:29:12 lithium /netbsd: sd2 at scsibus2 target 0 lun 0: <Kingston, DT
101 II, 1.00> disk removable
Dec 12 17:29:12 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164152.393000:
0:0 xs=0xc3d70ebc cmd=0x00 datalen=0 (quirks=0x8000, poll=0)
Dec 12 17:29:12 lithium /netbsd: umass_scsi_cmd: async dir=0, cmdlen=6 datalen=0
Dec 12 17:29:12 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x00
Dec 12 17:29:12 lithium /netbsd: umass2: CBW 5474: cmdlen=6
(0x00000000000000000000), data = 0 bytes, dir = out
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: no data phase
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: CSW 5474: sig = 0x53425355 (valid),
tag = 5474, res = 0, status = 0x00 (good)
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.393645,
delta=645: xs=0xc3d70ebc residue=0 status=0
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.393645: return
xs->error=0, xs->xs_status=0x0 xs->resid=0
Dec 12 17:29:12 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164152.393707:
0:0 xs=0xc3d70ebc cmd=0x25 datalen=8 (quirks=0x8000, poll=0)
Dec 12 17:29:12 lithium /netbsd: umass_scsi_cmd: async dir=1, cmdlen=10
datalen=8
Dec 12 17:29:12 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x25
Dec 12 17:29:12 lithium /netbsd: umass2: CBW 5475: cmdlen=10
(0x25000000000000000000), data = 8 bytes, dir = in
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=25000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcf7c0000 buflen=8
flags=0x5 timeout=25000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 2 (BBB Data),
xfer=0xc41d3400, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: BBB_DATA actlen=8
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 007349c700000200 buffer=0xc3dd55c0,
buflen=8
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=25000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: CSW 5475: sig = 0x53425355 (valid),
tag = 5475, res = 0, status = 0x00 (good)
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.394396,
delta=689: xs=0xc3d70ebc residue=0 status=0
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.394396: return
xs->error=0, xs->xs_status=0x0 xs->resid=0
Dec 12 17:29:12 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164152.394458:
0:0 xs=0xc3d70ebc cmd=0x5a datalen=40 (quirks=0x8000, poll=0)
Dec 12 17:29:12 lithium /netbsd: umass_scsi_cmd: async dir=1, cmdlen=10
datalen=40
Dec 12 17:29:12 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x5a
Dec 12 17:29:12 lithium /netbsd: umass2: CBW 5476: cmdlen=10
(0x5a000500000000002800), data = 40 bytes, dir = in
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=11000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcf7c0000 buflen=40
flags=0x5 timeout=11000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 2 (BBB Data),
xfer=0xc41d3400, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: BBB_DATA actlen=8
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 00060000000000000000000000000000
buffer=0xce64aa6c, buflen=40
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 00000000000000000000000000000000
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 0000000000000000
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=11000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: CSW 5476: sig = 0x53425355 (valid),
tag = 5476, res = 0, status = 0x00 (good)
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.395145,
delta=687: xs=0xc3d70ebc residue=32 status=0
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.395145: return
xs->error=0, xs->xs_status=0x0 xs->resid=32
Dec 12 17:29:12 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164152.395209:
0:0 xs=0xc3d70ebc cmd=0x5a datalen=32 (quirks=0x8000, poll=0)
Dec 12 17:29:12 lithium /netbsd: umass_scsi_cmd: async dir=1, cmdlen=10
datalen=32
Dec 12 17:29:12 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x5a
Dec 12 17:29:12 lithium /netbsd: umass2: CBW 5477: cmdlen=10
(0x5a080400000000002000), data = 32 bytes, dir = in
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=11000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcf7c0000 buflen=32
flags=0x5 timeout=11000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 2 (BBB Data),
xfer=0xc41d3400, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: BBB_DATA actlen=8
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 00060000000000000000000000000000
buffer=0xce64aa6c, buflen=32
Dec 12 17:29:12 lithium /netbsd: umass2: 0x 00000000000000000000000000000000
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=11000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: CSW 5477: sig = 0x53425355 (valid),
tag = 5477, res = 0, status = 0x00 (good)
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.395895,
delta=686: xs=0xc3d70ebc residue=24 status=0
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.395895: return
xs->error=0, xs->xs_status=0x0 xs->resid=24
Dec 12 17:29:12 lithium /netbsd: sd2: fabricating a geometry
Dec 12 17:29:12 lithium /netbsd: sd2: 3689 MB, 3689 cyl, 64 head, 32 sec, 512
bytes/sect x 7555528 sectors
Dec 12 17:29:12 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164152.396010:
0:0 xs=0xc3d70ebc cmd=0x00 datalen=0 (quirks=0x8000, poll=0)
Dec 12 17:29:12 lithium /netbsd: umass_scsi_cmd: async dir=0, cmdlen=6 datalen=0
Dec 12 17:29:12 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x00
Dec 12 17:29:12 lithium /netbsd: umass2: CBW 5478: cmdlen=6
(0x00000000000000002000), data = 0 bytes, dir = out
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: no data phase
Dec 12 17:29:12 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=15000
Dec 12 17:29:12 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:12 lithium /netbsd: umass2: CSW 5478: sig = 0x53425355 (valid),
tag = 5478, res = 0, status = 0x00 (good)
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.396646,
delta=636: xs=0xc3d70ebc residue=0 status=0
Dec 12 17:29:12 lithium /netbsd: umass_scsipi_cb: at 1292164152.396646: return
xs->error=0, xs->xs_status=0x0 xs->resid=0
Dec 12 17:29:34 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164174.156552:
0:0 xs=0xc3d70ebc cmd=0x00 datalen=0 (quirks=0x8000, poll=0)
Dec 12 17:29:34 lithium /netbsd: umass_scsi_cmd: async dir=0, cmdlen=6 datalen=0
Dec 12 17:29:34 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x00
Dec 12 17:29:34 lithium /netbsd: umass2: CBW 5479: cmdlen=6
(0x00000000000000002000), data = 0 bytes, dir = out
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=15000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: no data phase
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=15000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: CSW 5479: sig = 0x53425355 (valid),
tag = 5479, res = 0, status = 0x00 (good)
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_cb: at 1292164174.157086,
delta=534: xs=0xc3d70ebc residue=0 status=0
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_cb: at 1292164174.157086: return
xs->error=0, xs->xs_status=0x0 xs->resid=0
Dec 12 17:29:34 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164174.157152:
0:0 xs=0xc3d70ebc cmd=0x1e datalen=0 (quirks=0x8000, poll=0)
Dec 12 17:29:34 lithium /netbsd: umass_scsi_cmd: async dir=0, cmdlen=6 datalen=0
Dec 12 17:29:34 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x1e
Dec 12 17:29:34 lithium /netbsd: umass2: CBW 5480: cmdlen=6
(0x1e000000010000002000), data = 0 bytes, dir = out
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: no data phase
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: CSW 5480: sig = 0x53425355 (valid),
tag = 5480, res = 0, status = 0x01 (failed)
Dec 12 17:29:34 lithium /netbsd: umass2: Command Failed, res = 0
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_cb: at 1292164174.157594,
delta=442: xs=0xc3d70ebc residue=0 status=2
Dec 12 17:29:34 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x03
Dec 12 17:29:34 lithium /netbsd: umass2: CBW 5481: cmdlen=6
(0x03000000200000002000), data = 32 bytes, dir = in
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcf7c0000 buflen=32
flags=0x5 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 2 (BBB Data),
xfer=0xc41d3400, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: BBB_DATA actlen=18
Dec 12 17:29:34 lithium /netbsd: umass2: 0x f00005000000000b0000000020000000
buffer=0xc3d70f28, buflen=32
Dec 12 17:29:34 lithium /netbsd: umass2: 0x 00000000000000000000000000000000
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: CSW 5481: sig = 0x53425355 (valid),
tag = 5481, res = 32, status = 0x01 (failed)
Dec 12 17:29:34 lithium /netbsd: umass2: Command Failed, res = 32
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_sense_cb: xs=0xc3d70ebc
residue=32 status=2
Dec 12 17:29:34 lithium /netbsd: umass2: Autosense failed, status 2
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_sense_cb: return xs->error=3,
xs->xs_status=0x0 xs->resid=0
Dec 12 17:29:34 lithium /netbsd: sd2(umass2:0:0:0): generic HBA error
Dec 12 17:29:34 lithium /netbsd: umass2: umass_scsi_cmd: at 1292164174.158403:
0:0 xs=0xc3d70ebc cmd=0x1e datalen=0 (quirks=0x8000, poll=0)
Dec 12 17:29:34 lithium /netbsd: umass_scsi_cmd: async dir=0, cmdlen=6 datalen=0
Dec 12 17:29:34 lithium /netbsd: umass2: umass_bbb_transfer cmd=0x1e
Dec 12 17:29:34 lithium /netbsd: umass2: CBW 5482: cmdlen=6
(0x1e000000000000002000), data = 0 bytes, dir = out
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f38 buflen=31
flags=0x0 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 1 (BBB CBW),
xfer=0xc41d3300, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: no data phase
Dec 12 17:29:34 lithium /netbsd: umass2: start xfer buffer=0xcecb7f57 buflen=13
flags=0x0 timeout=10000
Dec 12 17:29:34 lithium /netbsd: umass2: Handling BBB state 4 (BBB CSW, 1st
attempt), xfer=0xc41d3600, NORMAL_COMPLETION
Dec 12 17:29:34 lithium /netbsd: umass2: CSW 5482: sig = 0x53425355 (valid),
tag = 5482, res = 0, status = 0x00 (good)
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_cb: at 1292164174.158835,
delta=432: xs=0xc3d70ebc residue=0 status=0
Dec 12 17:29:34 lithium /netbsd: umass_scsipi_cb: at 1292164174.158835: return
xs->error=0, xs->xs_status=0x0 xs->resid=0
Dec 12 17:30:02 lithium /netbsd: umass2: detached
Dec 12 17:30:02 lithium /netbsd: sd2: detached
Dec 12 17:30:02 lithium /netbsd: scsibus2:
Dec 12 17:30:02 lithium /netbsd: detached
Dec 12 17:30:02 lithium /netbsd: umass_disco
Dec 12 17:30:02 lithium /netbsd: umass2: detached
Dec 12 17:30:02 lithium /netbsd: umass2: at uhub7 port 5 (addr 4) disconnected
>How-To-Repeat:
See description.
>Fix:
None.
Home |
Main Index |
Thread Index |
Old Index