From owner-freebsd-usb@FreeBSD.ORG Tue Jun 26 14:50:42 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 796C716A400 for ; Tue, 26 Jun 2007 14:50:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swip.net [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id E04C113C46E for ; Tue, 26 Jun 2007 14:50:41 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.lan) by mailfe11.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 360562351; Tue, 26 Jun 2007 16:50:40 +0200 From: Hans Petter Selasky To: Ian FREISLICH Date: Tue, 26 Jun 2007 16:50:38 +0200 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706261650.38869.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB mouse works again in current!!! 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, 26 Jun 2007 14:50:42 -0000 On Tuesday 26 June 2007 15:14, Ian FREISLICH wrote: > Hans Petter Selasky wrote: > > Hi Ian, > > > > On Tuesday 26 June 2007 14:03, Ian FREISLICH wrote: > > > Hans Petter Selasky wrote: > > > > Hi Ian, > > > > > > > > Debugging Host Controller Halted is not so easy. It usually means > > > > that the DMA memory corrupted. > > > > > > I gathered it's not that easy. The controller that breaks is this one: > > > > > > uhci3@pci0:29:3: class=0x0c0300 card=0x72708086 chip=0x27cb8086 > > > rev=0x02 hdr=0x00 vendor = 'Intel Corporation' > > > device = '82801G (ICH7 Family) USB Universal Host Controller' > > > class = serial bus > > > subclass = USB > > > > > > uhci3: port 0x4040-0x405f irq 16 at > > > device 29.3 on pci0 uhci3: [GIANT-LOCKED] > > > uhci3: [ITHREAD] > > > uhci3: LegSup = 0x1010 > > > usb3: on uhci3 > > > usb3: USB revision 1.0 > > > usbd_get_string: getting lang failed, using 0 > > > uhub3: on usb3 > > > uhub3: 2 ports with 2 removable, self powered > > > > > > > Have you tried my new USB stack, popularly called HPS USB stack ? > > > > > > No, I'm going to try that now. I'm assuming it's: > > > http://www.turbocat.net/~hselasky/usb4bsd/ > > > > Yes, that is correct. > > > > If you are building with the latest FreeBSD-7 current, then be aware that > > it might break. You need to zero at least "/usr/src/sys/dev/usb/umass.c" > > after installation. > > > > In general, just zero out the files that won't compile, if you get any > > build errors. > > I'm running the latest current. After doing as you suggest, will > I still have access to USB mass storage? If not, then this isn't > really a workable solution. No, you will not have access to USB mass storage unless you update "umass.c" so that it compiles. This is because they recently changed the CAM API. I will probably fix this at some point, but not right now. Also there is a contigmalloc bug in FreeBSD-7 current, last time I checked, which you maybe also want to patch. --HPS