From owner-freebsd-current@FreeBSD.ORG Thu Oct 13 14:56:44 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C4631065670; Thu, 13 Oct 2011 14:56:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0F6518FC0A; Thu, 13 Oct 2011 14:56:43 +0000 (UTC) Received: by ywp17 with SMTP id 17so1626911ywp.13 for ; Thu, 13 Oct 2011 07:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=mZuyhcBjSqxyHfPrG0nxL80WlTTBAbUsP61s8+GKmwc=; b=JqtQlBE6miANUVLEu4+sm3jKGrnahaDg9Sxpz+Shg+J9NR2xduYviqtyVqZIKhIRHo p5eYx9/c1H3WFeenq0bFhzngLrB0tOVrHui2IZnzG3665pldYEmlK/3D6YO1KGJ/Ei8B twhmfa32PTqoDnvyke7Gcbtujrtf+l5pJTVsQ= MIME-Version: 1.0 Received: by 10.236.181.196 with SMTP id l44mr5419593yhm.37.1318517803387; Thu, 13 Oct 2011 07:56:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.109.167 with HTTP; Thu, 13 Oct 2011 07:56:43 -0700 (PDT) Date: Thu, 13 Oct 2011 22:56:43 +0800 X-Google-Sender-Auth: U5IcGkuI8TGNePTHHxh4D0dWuF4 Message-ID: From: Adrian Chadd To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: usb related wtf-ness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 14:56:44 -0000 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: at usbus0 uhub0: on usbus0 uhub0: 2 ports with 2 removable, self powered ugen0.2: at usbus0 umass0: 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: 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: at usbus0 umass1: 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: 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