NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/56987: problems with mounting usb memory devices on -current



>Number:         56987
>Category:       port-amd64
>Synopsis:       Certain usb devices can no longer be mounted on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 30 00:15:00 +0000 2022
>Originator:     MLH
>Release:        NetBSD 9.99.99 Fri Jan 14 23:21:22 EST 2022
>Organization:
>Environment:
System: NetBSD 9.99.93 NetBSD 9.99.93 #0: Fri Jan 14 23:21:22 EST 2022 amd64
Architecture: amd64
Machine: amd64
>Description:

Since some time shortly after NetBSD 9.99.93, certain usb memory
devices no longer can be mounted - with "Device not configured"
error. It no longer works with devices that have correctly worked
for a number of years. Works fine with others.

NetBSD 9.99.99 - doesn't work :
attach:

Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] umass0 at uhub4 port 2 configuration 1 interface 0
Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] umass0: Lezyne (0x2b29) GPS Device (0x0055), rev 2.00/1.00, addr 5
Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] umass0: using SCSI over Bulk-Only
Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] scsibus0 at umass0: 2 targets, 1 lun per target
Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] uhidev3 at uhub4 port 2 configuration 1 interface 1
Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] uhidev3: Lezyne (0x2b29) GPS Device (0x0055), rev 2.00/1.00, addr 5, iclass 3/0
Aug 29 13:26:37 tiamat /netbsd: [ 127.6388237] uhid4 at uhidev3: input=64, output=64, feature=0

Missing the two lines as such:
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] sd0 at scsibus0 target 0 lun 0: <FSL SEMI, FSL MASS STORAGE, 0001> disk removable
Aug 29 13:45:52 tiamat /netbsd: [  95.6507884] sd0: fabricating a geometry

detach:

Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB bulk-out clear stall failed, STALLED
Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB reset failed, STALLED
Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB bulk-in clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB bulk-out clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB reset failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB bulk-in clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3388163] umass0: BBB bulk-out clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB reset failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB bulk-in clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB bulk-out clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB reset failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB bulk-in clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB bulk-out clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB reset failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB bulk-in clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.3488165] umass0: BBB bulk-out clear stall failed, IOERROR
Aug 29 13:26:37 tiamat /netbsd: [ 128.4288153] scsibus0: detached
Aug 29 13:26:37 tiamat /netbsd: [ 128.4288153] umass0: detached
Aug 29 13:26:37 tiamat /netbsd: [ 128.4288153] umass0: at uhub4 port 2 (addr 5) disconnected
Aug 29 13:26:37 tiamat /netbsd: [ 128.4288153] uhid4: detached
Aug 29 13:26:37 tiamat /netbsd: [ 128.4288153] uhidev3: detached
Aug 29 13:26:37 tiamat /netbsd: [ 128.4288153] uhidev3: at uhub4 port 2 (addr 5) disconnected

The bulk-in/out stall errors aren't always reported (or occur?).

NetBSD 9.99.93 - works correctly :
attach:
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] umass0 at uhub4 port 2 configuration 1 interface 0
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] umass0: Lezyne (0x2b29) GPS Device (0x0055), rev 2.00/1.00, addr 5
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] umass0: using SCSI over Bulk-Only
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] scsibus0 at umass0: 2 targets, 1 lun per target
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] uhidev3 at uhub4 port 2 configuration 1 interface 1
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] uhidev3: Lezyne (0x2b29) GPS Device (0x0055), rev 2.00/1.00, addr 5, iclass 3/0
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] uhid4 at uhidev3: input=64, output=64, feature=0
Aug 29 13:45:52 tiamat /netbsd: [  95.6407866] sd0 at scsibus0 target 0 lun 0: <FSL SEMI, FSL MASS STORAGE, 0001> disk removable
Aug 29 13:45:52 tiamat /netbsd: [  95.6507884] sd0: fabricating a geometry

detach:

Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] sd0: detached
Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] scsibus0: detached
Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] umass0: detached
Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] umass0: at uhub4 port 2 (addr 5) disconnected
Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] uhid4: detached
Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] uhidev3: detached
Aug 29 13:46:11 tiamat /netbsd: [ 114.3505992] uhidev3: at uhub4 port 2 (addr 5) disconnected

>How-To-Repeat:

Plug in a usb memory device. The following commands work with NetBSD
9.99.93 but not later versions with some usb devices. (I have used
amd to mount them for many years)

$ mount -t msdos /dev/sd0e /mnt
mount_msdos: /dev/sd0e on /mnt: Device not configured

$ disklabel sd0
disklabel: /dev/rsd0: Device not configured

Plug in a usb memory card into another usb port while the first is
still plugged in and the second device can be mounted as sd0x:

$ disklabel sd0
# /dev/rsd0:
type: SCSI
disk: Flash Reader
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 122112
total sectors: 250085376
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d: 250085376         0     unused      0     0        # (Cyl.      0 - 122111)
 e: 250052608     32768      MSDOS                     # (Cyl.     16 - 122111)

>Fix:
?



Home | Main Index | Thread Index | Old Index