From owner-freebsd-stable@FreeBSD.ORG Tue Sep 20 11:44:57 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50078106564A for ; Tue, 20 Sep 2011 11:44:57 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 210118FC0A for ; Tue, 20 Sep 2011 11:44:56 +0000 (UTC) Received: by iadk27 with SMTP id k27so821009iad.13 for ; Tue, 20 Sep 2011 04:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=KVGdhdaGqT4yC2lZ4c4TbLY3FJ2zs/QBBroBWBUpNbE=; b=VEFI3cNdLdLka25H72qjQl5SGfoz0N+RfN4nQP4IuD+npgofN8HFV3vsKYBT5CJfor c3rvGI9TWtEPTeOp1p5hJL6a7lSRf7KmB/CiAaKMHOgjqkWbp1QI3KmL5JQire05Hc5w vxGLx8t1P4jqKhnYT+icooC1qW/KYHmQ3nPX8= MIME-Version: 1.0 Received: by 10.231.41.36 with SMTP id m36mr1148319ibe.48.1316517397450; Tue, 20 Sep 2011 04:16:37 -0700 (PDT) Received: by 10.231.11.141 with HTTP; Tue, 20 Sep 2011 04:16:37 -0700 (PDT) Date: Tue, 20 Sep 2011 06:16:37 -0500 Message-ID: From: Zhihao Yuan To: FreeBSD-STABLE Mailing List Content-Type: text/plain; charset=UTF-8 Subject: A problem may relate to USB 3.0 (xhci) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2011 11:44:57 -0000 Hi, I found a problem *may* relate to the xhci driver. My laptop, HP Elitebook 8540w, has two USB 3.0 interfaces. After the laptop has been used for several days, the USB 3.0 interfaces does not work anymore; I can only use them to charge mobile devices. A restart will reset everything. Since the problem is reproducible, I found the following in my /var/log/messages: Sep 12 21:34:46 compaq kernel: ugen1.2: at usbus1 (disconnected) Sep 12 21:34:46 compaq kernel: umass1: at uhub1, port 3, addr 1 (disconnected) Sep 12 21:34:46 compaq kernel: (da1:umass-sim1:1:0:0): lost device Sep 12 21:34:46 compaq kernel: (da1:umass-sim1:1:0:0): removing device entry Sep 12 21:34:54 compaq kernel: ugen1.2: at usbus1 (disconnected) And after that, ugen1.2 can no longer be recognized. ~> usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen2.4: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON It just disappeared. ugen1.1 should be another USB 3.0 interface, but after one of them is down, none of them works, and message ugen1.2: at usbus1 (disconnected) just keep shown when I plug/unplug USB devices. My FreeBSD is FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #8 r225370: Sun Sep 4 05:14:37 CDT 2011 lichray@compaq.yuetime:/usr/obj/home/lichray/devel/freebsd-stable/sys/HOUKAGO amd64 ____________ This may be a hardware problem btw, since I only used FreeBSD on this laptop, so I can't say whether other USB stacks work correctly. And in the most cases I plug in my Samsung Exhibit 4G. As you known, after an Android device has been plugged in, you need to select "Connect to USB" manually, which generates: Sep 7 15:04:12 compaq kernel: ugen1.2: at usbus1 Sep 7 15:04:12 compaq kernel: umass1: on usbus1 Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Sep 7 15:04:14 compaq kernel: (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Sep 7 15:04:14 compaq kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0 Sep 7 15:04:14 compaq kernel: da1: Removable Direct Access SCSI-2 device Sep 7 15:04:14 compaq kernel: da1: 40.000MB/s transfers Sep 7 15:04:14 compaq kernel: da1: Attempt to query device size failed: NOT READY, Medium not present for each time. (Btw, I hope gpart/devfs can detect the medium availability change on USB :) This makes the device not that "regular". So the problem may also caused by the device. -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/