From owner-freebsd-usb@FreeBSD.ORG Thu Feb 9 11:36:47 2012 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 04739106564A; Thu, 9 Feb 2012 11:36:47 +0000 (UTC) (envelope-from bengta@P142.sics.se) Received: from sink.sics.se (sink.sics.se [193.10.64.88]) by mx1.freebsd.org (Postfix) with ESMTP id 5E0158FC08; Thu, 9 Feb 2012 11:36:45 +0000 (UTC) Received: from P142.sics.se (h139n3-u-d1.ias.bredband.telia.com [90.228.197.139]) by sink.sics.se (8.14.4/8.14.4) with ESMTP id q19Bag2U013867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Feb 2012 12:36:42 +0100 (CET) (envelope-from bengta@P142.sics.se) Received: from P142.sics.se (localhost [127.0.0.1]) by P142.sics.se (8.14.5/8.14.4) with ESMTP id q19Bb4B5005517; Thu, 9 Feb 2012 12:37:04 +0100 (CET) (envelope-from bengta@P142.sics.se) Received: (from bengta@localhost) by P142.sics.se (8.14.5/8.14.5/Submit) id q19Bb4ZN005516; Thu, 9 Feb 2012 12:37:04 +0100 (CET) (envelope-from bengta@P142.sics.se) From: Bengt Ahlgren To: Hans Petter Selasky In-Reply-To: <201202082328.52747.hselasky@c2i.net> (Hans Petter Selasky's message of "Wed, 8 Feb 2012 23:28:52 +0100") References: <201202071537.02510.hselasky@c2i.net> <201202082328.52747.hselasky@c2i.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) Date: Thu, 09 Feb 2012 12:37:04 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: mobile@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb resume regression (sort of) 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: Thu, 09 Feb 2012 11:36:47 -0000 Hans Petter Selasky writes: > On Wednesday 08 February 2012 20:55:42 Bengt Ahlgren wrote: >> Hans Petter Selasky writes: >> > On Monday 06 February 2012 22:59:27 Bengt Ahlgren wrote: >> >> I tried out 8.2-STABLE (from Feb 3rd) on my IBM Thinkpad X40 to see >> >> whether the updates to usb fixed the resume stall problem with >> >> 8.2-RELEASE. (The latter with the "gavin-usb-controller-patch" however >> >> worked very well on this system!) >> >> >> >> Unfortunately, 8.2-STABLE didn't improve. On the contrary, no usb >> >> devices at all work after resume, so this is kind of a regression. I >> >> tested with a couple of different versions of the usb system and >> >> concluded that it is commit r229370 that makes the difference. >> >> >> >> After resume, the console says: >> >> >> >> uhub1: at usbus1, port 1, addr 1 (disconnected) >> >> uhub2: at usbus2, port 1, addr 1 (disconnected) >> >> uhub3: at usbus3, port 1, addr 1 (disconnected) >> >> uhub0: at usbus0, port 1, addr 1 (disconnected) >> >> >> >> What can I do to debug this further? It would be great to be able to >> >> sort this for 8.3. >> > >> > Hi, >> > >> > Make sure you remove any other rc.d scripts which kldload/kldunload >> > ehci/ohci/uhci/... at suspend/resume. >> > >> > Send complete dmesg showing a suspend/resume cycle. >> > >> > Send output from usbconfig before and after suspend/resume. >> > >> > Thank you. >> >> Thanks for the response! >> >> I have put the complete verbose dmesg from new boot, insert of usb >> memory, sleep, resume, (doesn't work), kldunload/kldload uhci/ehci, >> insert usb memory, (works again), and a log of the shell session >> covering the same here: >> >> http://www.sics.se/~bengta/fcd49b361c6d9b06b5d7e6adc2349629/ >> >> Both have annotations "==== " for clarity. >> >> Is it worthwhile to compile with USB_DEBUG and redo the above? >> > > Hi, > > SVN/CVS up or apply the following patch. Looks I forgot to MFC this: > > http://svn.freebsd.org/changeset/base/231230 It works!!! Connected devices are also reconnected properly on resume. Thanks very much indeed! Bengt