usb related wtf-ness

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Thu, 13 Oct 2011 22:56:43 +0800
Here's something from a recentish -head. This is the same behaviour as
my beta2/beta3 boxes. This time, however, it's on a MIPS board.


It's quite possible this _isn't_ a USB problem but is a scsi or cam
layer problem.

The root is on /dev/da0, a USB device.

usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <Atheros> at usbus0
uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub0: 2 ports with 2 removable, self powered
ugen0.2: <Generic> at usbus0
umass0: <Generic USB Storage, class 0/0, rev 2.00/94.51, addr 2> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:0:0:-1: Attached to scbus0
Trying to mount root from ufs:da0s1a []...
mountroot: waiting for device da0s1a ...
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <Generic STORAGE DEVICE 9451> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 3902MB (7991296 512 byte sectors: 255H 63S/T 497C)

Then, I plug in a second USB storage device:

ugen0.3: <JMicron> at usbus0
umass1: <MSC Bulk-Only Transfer> on usbus0
umass1:  SCSI over Bulk-Only; quirks = 0x0000
umass1:1:1:-1: Attached to scbus1
da1 at umass-sim1 bus 1 scbus1 target 0 lun 0
da1: <SAMSUNG HM160HI > Fixed Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)

Then:

adrian-home-mips# fdisk
load: 0.00  cmd: tcsh 1544 [vnread] 3.47r 0.00u 0.00s 0% 3472k
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 6d 69 d0 0 0 40 0
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: HARDWARE FAILURE asc:4b,0 (Data phase error)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 6d 69 d0 0 0 40 0
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
(da0:umass-sim0:0:0:0): Invalidating pack
(da0:umass-sim0:0:0:0): oustanding 0
load: 0.00  cmd: tg_vfs_done():da0s1a[READ(offset=3667099648,
length=32768)]error = 6
csh 1544 [vnreadvnode_pager_getpages: I/O read error
] 4.37r 0.00u 0.00s 0% 3472k
/sbin/fdisk: Input/output error.
adrian-home-mips# bsdlabel
g_vfs_done():da0s1a[READ(offset=3666673664, length=32768)]error = 6
vnode_pager_getpages: I/O read error
/sbin/bsdlabel: Input/output error.
adrian-home-mips# usbdevs
usbdevs: Command not found.
adrian-home-mips# usbconfig -l
g_vfs_done():da0s1a[READ(offset=1594703872, length=16384)]error = 6
vnode_pager_getpages: I/O read error
/usr/sbin/usbconfig: Input/output error.

.. what the? :)


adrian
Received on Thu Oct 13 2011 - 12:56:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC