CAM panic with tethered Virgin Mobile Mifi 2200

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Wed, 13 Nov 2013 17:29:26 -0800 (PST)
I've had a Virgin Mobile MiFi 2200 CDMA modem for a few years that I've
successfully been using in tethered mode on my 8-STABLE laptop.  The
only issue is that I have to do a camcontrol eject to get it to switch
from being a umass device to being a modem.

Today I decided to try to add this device to usbdevices and u3g, with
the U3GINIT_SCSIEJECT quirk so it would be more convenient to use.

I plugged it into my 11-CURRENT machine to find it's ID.  This showed
up in /var/log/messages:

Nov 13 16:42:16 scratch kernel: ugen2.2: <Novatel Wireless Inc.> at usbus2
Nov 13 16:42:16 scratch kernel: umass0: <Novatel Wireless Inc. Novatel Wireless CDMA, class 0/0, rev 1.10/0.00, addr 2> on usbus2
Nov 13 16:42:16 scratch kernel: umass0:  SCSI over Bulk-Only; quirks = 0x0100
Nov 13 16:42:16 scratch kernel: umass0:9:0: Attached to scbus9
Nov 13 16:42:16 scratch kernel: cd0 at umass-sim0 bus 0 scbus9 target 0 lun 0
Nov 13 16:42:16 scratch kernel: cd0: <Novatel Mass Storage 1.00> Removable CD-ROM SCSI-2 device 
Nov 13 16:42:16 scratch kernel: cd0: Serial Number 091166643730000
Nov 13 16:42:16 scratch kernel: cd0: 1.000MB/s transfers
Nov 13 16:42:16 scratch kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present
Nov 13 16:42:16 scratch kernel: cd0: quirks=0x10<10_BYTE_ONLY>
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:17 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:18 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:19 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:19 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:19 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:19 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:19 scratch kernel: (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted
Nov 13 16:42:19 scratch kernel: (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back
Nov 13 16:42:20 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:20 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:20 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:20 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:20 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:21 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted
Nov 13 16:42:22 scratch kernel: (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back
Nov 13 16:42:23 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:23 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:23 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:23 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:23 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:24 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted
Nov 13 16:42:25 scratch kernel: (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back
Nov 13 16:42:26 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:26 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:26 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:26 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:26 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:27 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): Retrying command (per sense data)
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 c8 00 00 00 01 00 
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:ffffffff,ffffffff (Reserved ASC/ASCQ pair)
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): Error 6, Retries exhausted
Nov 13 16:42:28 scratch kernel: (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back


I'm assuming that the errors are caused by some missing quirk for the
umass device.

A short while later, I got this panic, possibly triggered by doing
	ls -l /dev/cd0

cd0 at umass-sim0 bus 0 scbus9 target 0 lun 0
cd0: <Novatel Mass Storage 1.00> s/n 091166643730000 detached
(cd0:umass-sim0:0:0:0): Periph destroyed
panic: mtx_lock() of destroyed mutex _at_ /usr/src/sys/cam/cam_xpt.c:5251
cpuid = 1
KDB: stack backtrace:
db_trace_self_wrapper(c112eacc,a3135,10000000,e4f97b90,e4f97b88,...) at db_trace_self_wrapper+0x2d/frame 0xe4f97b50
kdb_backtrace(c12eca4f,1,c1127e81,e4f97c28,e4f97bf8,...) at kdb_backtrace+0x30/frame 0xe4f97bb8
vpanic(c140ca38,100,c1127e81,e4f97c28,e4f97c28,...) at vpanic+0x11f/frame 0xe4f97bf8
kassert_panic(c1127e81,c0fee59f,1483,c0fee59f,0,...) at kassert_panic+0xea/frame 0xe4f97c1c
__mtx_lock_flags(c9a70ad0,0,c0fee59f,1483,c9a70ad0,...) at __mtx_lock_flags+0x153/frame 0xe4f97c50
xpt_done_process(c13d2a10,0,c0fee59f,1499,0,...) at xpt_done_process+0x44f/frame 0xe4f97c80
xpt_done_td(c13d2a00,e4f97d08,c1123cf4,3db,0,...) at xpt_done_td+0x164/frame 0xe4f97ccc
fork_exit(c04c7b80,c13d2a00,e4f97d08) at fork_exit+0x7f/frame 0xe4f97cf4
fork_trampoline() at fork_trampoline+0x8/frame 0xe4f97cf4
--- trap 0, eip = 0, esp = 0xe4f97d40, ebp = 0 ---
KDB: enter: panic

I've got the vmcore file, so I can extract more info from it if
necessary.


This is what I see when I plug it into my 8.4-STABLE laptop:

umass0: <Novatel Wireless Inc. Novatel Wireless CDMA, class 0/0, rev 1.10/0.00, addr 2> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:2:0:-1: Attached to scbus2
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 00 00 00 00 00 00 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0
cd1: <Novatel Mass Storage 1.00> Removable CD-ROM SCSI-2 device 
cd1: 1.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
cd1: quirks=0x10<10_BYTE_ONLY>
Received on Thu Nov 14 2013 - 00:29:33 UTC

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