From owner-freebsd-mobile@FreeBSD.ORG Mon Feb 6 14:33:17 2012 Return-Path: Delivered-To: mobile@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 359AF1065672 for ; Mon, 6 Feb 2012 14:33:17 +0000 (UTC) (envelope-from jakobp78@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 032CB8FC14 for ; Mon, 6 Feb 2012 14:33:16 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so9824800obc.13 for ; Mon, 06 Feb 2012 06:33:16 -0800 (PST) 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=q32QnzxMfIYP3koG25KfDcyWC/pQ57IXKEHb9LDLAJo=; b=aDDmYhUFitCkZaNujSzGZ9z++dp5KQlFsAun1R7EgTsVmpCwNWZFN+LaZCLS6SzeKI Y7BjKPtEDCcU+jsXajJPSWyPDjvd+1QjPogwcFxrgnGhZTYwEMTpvMcm9OQ7AwzHfA33 NqdrPyDAQcR8AXAv++/cIICr9o5l6FOn+0v1s= MIME-Version: 1.0 Received: by 10.182.15.105 with SMTP id w9mr16759543obc.18.1328536972214; Mon, 06 Feb 2012 06:02:52 -0800 (PST) Received: by 10.182.226.69 with HTTP; Mon, 6 Feb 2012 06:02:52 -0800 (PST) Date: Mon, 6 Feb 2012 15:02:52 +0100 Message-ID: From: Jakob Pedersen To: mobile@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Problems with RaLink rt61pci/rt2561 wifi card X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 14:33:17 -0000 Hi everybody, I hope somebody can help me debugging, what I would rather term as strange behaviour by my wifi card: I am running PC-BSD 9 on a Packard-Bell Easynote R1926. During install the driver for the wifi card is correctly found as ral0, suggesting the card to be RT2561s which sounds correct to me. It works and connects to my wifi perfectly, but only when the laptop is within 2 - 3 metres from the wifi router. Other wireless devices work just fine all over my apartment, which means it's not an issue with the router. I have had the same issues with the same driver under FreeBSD 8.2 as well; I have tried several linux distros and so far Arch linux running the 3.0 linux kernel has the wifi card working (but no usb, but that's a different story..sigh..). Whenever the laptop with PC-BSD is just next to the router it works as it is supposed to, i.e. expected speed and nothing suggesting major package loss. What could cause this and what could I do to debug? I am having problems with ACPI and thought that, that might have something to do with it, but for now I am resting that theory. Error messages: Dmesg: This is an error relating to the card: wlan0: Ethernet address: 00:10:60:af:74:32 ral0: need multicast update callback - The 'need multicast update callback' is being repeated four times, both when laptop is booted close to router or away from router. If of any help the full dmesg is here: http://dl.dropbox.com/u/7820484/dmesg_packardBell-R1926.txt Thanking for assistance in advance, Jakob From owner-freebsd-mobile@FreeBSD.ORG Mon Feb 6 22:26:34 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA2DB106564A; Mon, 6 Feb 2012 22:26:34 +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 364018FC14; Mon, 6 Feb 2012 22:26:34 +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 q16Lx7sQ002929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Feb 2012 22:59:08 +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 q16LxRFT002523; Mon, 6 Feb 2012 22:59:27 +0100 (CET) (envelope-from bengta@P142.sics.se) Received: (from bengta@localhost) by P142.sics.se (8.14.5/8.14.5/Submit) id q16LxRmr002522; Mon, 6 Feb 2012 22:59:27 +0100 (CET) (envelope-from bengta@P142.sics.se) From: Bengt Ahlgren To: usb@freebsd.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) Date: Mon, 06 Feb 2012 22:59:27 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: mobile@freebsd.org Subject: usb resume regression (sort of) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 22:26:34 -0000 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. The laptop (Pentium-M CPU) has these usb controllers: uhci0@pci0:0:29:0: class=0x0c0300 card=0x052d1014 chip=0x24c28086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *1' class = serial bus subclass = USB bar [20] = type I/O Port, range 32, base 0x1820, size 32, enabled uhci1@pci0:0:29:1: class=0x0c0300 card=0x052d1014 chip=0x24c48086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *2' class = serial bus subclass = USB bar [20] = type I/O Port, range 32, base 0x1840, size 32, enabled uhci2@pci0:0:29:2: class=0x0c0300 card=0x052d1014 chip=0x24c78086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *3' class = serial bus subclass = USB bar [20] = type I/O Port, range 32, base 0x1860, size 32, enabled ehci0@pci0:0:29:7: class=0x0c0320 card=0x052e1014 chip=0x24cd8086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller' class = serial bus subclass = USB bar [10] = type Memory, range 32, base 0xd0100000, size 1024, enabled cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 0a[58] = EHCI Debug Port at offset 0x80 in map 0x14 Bengt From owner-freebsd-mobile@FreeBSD.ORG Tue Feb 7 14:49:10 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81715106564A for ; Tue, 7 Feb 2012 14:49:10 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 141FB8FC12 for ; Tue, 7 Feb 2012 14:49:09 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 236569685; Tue, 07 Feb 2012 15:38:56 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, mobile@freebsd.org Date: Tue, 7 Feb 2012 15:37:02 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202071537.02510.hselasky@c2i.net> Cc: Subject: Re: usb resume regression (sort of) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 14:49:10 -0000 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. --HPS From owner-freebsd-mobile@FreeBSD.ORG Tue Feb 7 14:49:19 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8724210656DE for ; Tue, 7 Feb 2012 14:49:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 14B998FC14 for ; Tue, 7 Feb 2012 14:49:18 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 234525007; Tue, 07 Feb 2012 15:44:15 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, mobile@freebsd.org Date: Tue, 7 Feb 2012 15:42:21 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202071542.21701.hselasky@c2i.net> Cc: Subject: Re: usb resume regression (sort of) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 14:49:19 -0000 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, Some more info: The code that executes the USB suspend and resume is located in: /sys/dev/usb/controller/usb_controller.c All devices should be re-connected again at resume. If you have USB audio devices, try suspend/resume w/o those plugged. --HPS From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 8 05:10:14 2012 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4CAA10656EB for ; Wed, 8 Feb 2012 05:10:14 +0000 (UTC) (envelope-from pukku@mac.com) Received: from nk11p99mm-asmtpout008.mac.com (nk11p03mm-asmtp998.mac.com [17.158.233.229]) by mx1.freebsd.org (Postfix) with ESMTP id 4C8DC8FC25 for ; Wed, 8 Feb 2012 05:10:14 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [10.0.1.2] ([76.19.67.3]) by nk11p03mm-asmtp998.mac.com (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTPSA id <0LZ2006GO3KZGJ70@nk11p03mm-asmtp998.mac.com> for freebsd-mobile@freebsd.org; Wed, 08 Feb 2012 04:10:14 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361,1.0.260,0.0.0000 definitions=2012-02-08_02:2012-02-07, 2012-02-08, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1202070365 From: Richard Morse Date: Tue, 07 Feb 2012 23:10:10 -0500 Message-id: <79A59E77-5AD2-4F98-819F-2F39EFB458B2@mac.com> To: freebsd-mobile@freebsd.org X-Mailer: Apple Mail (2.1257) Subject: RealTek 8188CE NDIS panic X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 05:10:14 -0000 Hi! I'm trying to install FreeBSD on a Lenovo ThinkPad X120e. The wifi card is a RealTek 8188CE, which is not supported by any of the standard drivers. I have tried to use the `ndisgen` utility with the Windows XP driver files, but whenever I try to `kldload` the generated .ko file, I get a kernel panic. Does anyone have any suggestions for how I should proceed? I'd really like to use FreeBSD for this, rather than going over to a Linux variant, but I do need the WiFi to work... Thanks, Ricky From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 8 05:38:56 2012 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55F751065672 for ; Wed, 8 Feb 2012 05:38:56 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D9B2F8FC0C for ; Wed, 8 Feb 2012 05:38:55 +0000 (UTC) Received: by werm13 with SMTP id m13so181117wer.13 for ; Tue, 07 Feb 2012 21:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qABTcvRCjJh1LPsuGU7A64KI4FgURg0CxNVUR4Q1sT8=; b=jxfpcCHIZtP3fbT1Dm+arohaU3eVu+gQrD2hpdMIr7K9BoX2sziJdBowW1sq5x6VR6 0raQXYNZw5IAVA8QYTnk6kUgun9k8wTcjzv3BFKm1WMzImHpNktu5Kaf1NdctOvoug8D R1VA7JeZ8IoTk/K7dAkh54pKO2Oa9eAeMtnAk= MIME-Version: 1.0 Received: by 10.180.100.234 with SMTP id fb10mr38338486wib.8.1328679534883; Tue, 07 Feb 2012 21:38:54 -0800 (PST) Received: by 10.223.158.143 with HTTP; Tue, 7 Feb 2012 21:38:54 -0800 (PST) In-Reply-To: <79A59E77-5AD2-4F98-819F-2F39EFB458B2@mac.com> References: <79A59E77-5AD2-4F98-819F-2F39EFB458B2@mac.com> Date: Tue, 7 Feb 2012 21:38:54 -0800 Message-ID: From: Kevin Oberman To: Richard Morse Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mobile@freebsd.org Subject: Re: RealTek 8188CE NDIS panic X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 05:38:56 -0000 On Tue, Feb 7, 2012 at 8:10 PM, Richard Morse wrote: > Hi! I'm trying to install FreeBSD on a Lenovo ThinkPad X120e. The wifi ca= rd is a RealTek 8188CE, which is not supported by any of the standard drive= rs. I have tried to use the `ndisgen` utility with the Windows XP driver fi= les, but whenever I try to `kldload` the generated .ko file, I get a kernel= panic. > > Does anyone have any suggestions for how I should proceed? I'd really lik= e to use FreeBSD for > this, rather than going over to a Linux variant, but I do need the WiFi t= o work... There are a few approaches you can take. 1. Wait an hope someone figures out how to get NDIS to work or writes a driver. Probably not a real viable approach for you unless you can pay someone, do it yourself, or someone else decided to do it now. 2. Replace the card with a supported card. I get a Lenovo labeled Intel Centrino Advance-N card at an exorbitant price, but it works with the iwn driver. I have seen the cards from Lenovo repair places at 100-150 USD while a standard card is about 20 USD. 3. Mod your system to accept a standard WiFi card by: a. Installing a patched BIOS (very risky) b. Get a supported card and re-write the PCIID with the Lenovo ID c. Get a supported card and install it in the other mini-PCIe slot (If you don't have a wireless modem in that slot) (Note, the wireless modem is a full height card and the wireless is half-height, so you will need to adapt it in some way. Adapters are available, but may raise the card too much to fit under the keyboard. I thought about fabbing my own, but I don't have access to the tools I'd need. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 8 19:55:26 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54F271065670 for ; Wed, 8 Feb 2012 19:55:26 +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 CED858FC12 for ; Wed, 8 Feb 2012 19:55:25 +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 q18JtKYN011790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 8 Feb 2012 20:55:20 +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 q18JthHs003101; Wed, 8 Feb 2012 20:55:43 +0100 (CET) (envelope-from bengta@P142.sics.se) Received: (from bengta@localhost) by P142.sics.se (8.14.5/8.14.5/Submit) id q18JtgZX003100; Wed, 8 Feb 2012 20:55:42 +0100 (CET) (envelope-from bengta@P142.sics.se) From: Bengt Ahlgren To: Hans Petter Selasky In-Reply-To: <201202071537.02510.hselasky@c2i.net> (Hans Petter Selasky's message of "Tue, 7 Feb 2012 15:37:02 +0100") References: <201202071537.02510.hselasky@c2i.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) Date: Wed, 08 Feb 2012 20:55:42 +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-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 19:55:26 -0000 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? Bengt From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 8 22:30:46 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1F651065680; Wed, 8 Feb 2012 22:30:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 1FDA38FC13; Wed, 8 Feb 2012 22:30:45 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 71359663; Wed, 08 Feb 2012 23:30:44 +0100 From: Hans Petter Selasky To: Bengt Ahlgren Date: Wed, 8 Feb 2012 23:28:52 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201202071537.02510.hselasky@c2i.net> In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202082328.52747.hselasky@c2i.net> Cc: mobile@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb resume regression (sort of) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 22:30:46 -0000 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 --HPS From owner-freebsd-mobile@FreeBSD.ORG Thu Feb 9 11:36:47 2012 Return-Path: Delivered-To: mobile@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-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD 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