From owner-freebsd-usb@FreeBSD.ORG Thu Oct 13 22:37:20 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7C6F16A41F; Thu, 13 Oct 2005 22:37:20 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3892843D45; Thu, 13 Oct 2005 22:37:19 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-91-235.daxnet.no ([193.216.91.235] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.3.8) with ESMTP id 5083559; Fri, 14 Oct 2005 00:37:18 +0200 From: Hans Petter Selasky To: Thomas Quinot Date: Fri, 14 Oct 2005 00:38:21 +0200 User-Agent: KMail/1.7 References: <1124522484.875.2.camel@shumai.marcuscom.com> <200508201220.52830.hselasky@c2i.net> <20051013195057.GA47529@freefall.freebsd.org> In-Reply-To: <20051013195057.GA47529@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510140038.22065.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: [Fwd: USB not working on 6.0-BETA2 on ICH7 [long]] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 22:37:21 -0000 On Thursday 13 October 2005 21:50, Thomas Quinot wrote: > I am encountering the same issues described by Joe in August with a > Dell Precision 380 (panic at boot if EHCI is enabled and USB devices > are connected), with 6.0-BETA5 source tree. > > On Sat, Aug 20, 2005 at 12:20:51PM +0200, Hans Petter Selasky wrote: > > It might be that the alignment for some of the EHCI hardware structures > > is wrong. I haven't checked on FreeBSD-current, if this has been fixed, > > but I guess that the "controller halted" is due to the "EHCI scheduler" > > getting off the track.I have posted a PR on this and what needs to be > > changed: > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/79722 > > I tried applying the suggested alignement changes to ehcireg.h in > 6.0-BETA5, and it did not change the observed problem at all. > > Thomas. Ok, maybe the problem is deeper than that. Could you try: Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Type "make help" to get more help. Then make sure you have the following in the kernel config file. options KDB # Enable kernel debugger support. options DDB # Support DDB. options GDB # Support remote GDB. When it panics, you type "trace" or "backtrace" at the DB prompt. Then just write down the list of functions that appears, hopefully. PS: I have included a temporary fix to make "if_ural" work. The "if_ural" driver cannot call "usb_rem_task()" from a callback, because this function can possibly sleep, due to the way I have implemented it, by using the kernel taskqueue system. --HPS