From owner-freebsd-usb@FreeBSD.ORG Tue Sep 28 20:33:56 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A3ED1065673 for ; Tue, 28 Sep 2010 20:33:56 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BB8418FC27 for ; Tue, 28 Sep 2010 20:33:55 +0000 (UTC) Received: by bwz15 with SMTP id 15so102864bwz.13 for ; Tue, 28 Sep 2010 13:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=LJwtmoP9PjQQ1/otGXQub5EAMtBGtruf617XYXmplCk=; b=weMfmXcsFvO1bZaOfzKPloAxWAZhgl+eLvi3WvAyrMk6TAo5XUkh+xnwNZ8y9lX0pL MwwbEb7ugy50FjI8Uo+E/lkfWFDZke6eV7xuv6BRa4WLbFPF4QWy39l1mJr5uaQFsfPM jOwmTwZG1IkhqsdB/1gXPDa77en4CStVsru5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=xy8YrOvT3762Ec95myKnYGsJ2Wi5NeYTmNq/apE7dg56s3NYgRdQqaTubMrz9G5hjH 3DuzRMo5tMtk6ArdMcjLSkud9FitUpLDTKCGAP+NGtcsaHJQG3R5rDhcqvZ067zkgb3/ O5rjK3/ojFXpLFin6Bjb/MhHrt8FMTfwFkvyo= Received: by 10.204.178.82 with SMTP id bl18mr422021bkb.118.1285704223115; Tue, 28 Sep 2010 13:03:43 -0700 (PDT) Received: from [172.16.0.6] (tx97.net [85.198.160.156]) by mx.google.com with ESMTPS id 24sm5960906bkr.7.2010.09.28.13.03.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Sep 2010 13:03:42 -0700 (PDT) Message-ID: <4CA249BB.8070505@gmail.com> Date: Tue, 28 Sep 2010 23:02:03 +0300 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: USB problems after sleep/resume on FreeBSD 8.1-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 20:33:56 -0000 Hi, folks. When I try to sleep and then resume on my ThinkPad T40, I sometimes (but not always) get this error message: usbus3: port reset timeout uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 This happens even when there's no USB device actually attached. If I do have a USB flash drive inserted (but not mounted), mounting it after resume fails with this error message: mount_msdosfs: /dev/da0: Input/output error ... and this kernel message: (da0:umass-sim0:0:0:0): AutoSense failed If I however now remove the drive and insert it back, mount works without problems. If the flash drive was mounted before the sleep and I try to unmount it, umount fails with "Input/output error", and this error starts to appear periodically: (da0:umass-sim0:0:0:0): AutoSense failed g_vfs_done():da0[WRITE(offset=19456, length=4096)]error = 5 Trying to read or write to the drive results in similar errors. When I try to shutdown afterward, the error is printed a few more times, then there's a message about giving up on 1 buffer, and finally, the laptop won't actually shut down; it just shows the last messages and doesn't react to key presses. You can find my laptop's dmesg at [1]. If anyone wants to look into this issue, I can provide any further information -- just name it. Note that this isn't the only problem I'm having with sleep/resume; my report here was prompted by the discussion starting at [2]. [1] http://tx97.net/~magv/dmesg-t40.81-p1.txt [2] http://lists.freebsd.org/pipermail/freebsd-stable/2010-September/thread.html#59057