From owner-freebsd-new-bus Mon May 8 11:50:47 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from alsatian.cslab.vt.edu (alsatian.cslab.vt.edu [198.82.184.21]) by hub.freebsd.org (Postfix) with ESMTP id C677237BB51; Mon, 8 May 2000 11:50:40 -0700 (PDT) (envelope-from jobaldwi@cslab.vt.edu) Received: from snowcow.cslab.vt.edu (root@snowcow.cslab.vt.edu [198.82.184.27]) by alsatian.cslab.vt.edu (8.9.3/8.9.3) with ESMTP id OAA21114; Mon, 8 May 2000 14:50:40 -0400 (EDT) (envelope-from jobaldwi@cslab.vt.edu) Received: from localhost (jobaldwi@localhost) by snowcow.cslab.vt.edu (8.9.3/8.9.3) with ESMTP id OAA34995; Mon, 8 May 2000 14:42:28 -0400 (EDT) (envelope-from jobaldwi@cslab.vt.edu) X-Authentication-Warning: snowcow.cslab.vt.edu: jobaldwi owned process doing -bs Date: Mon, 8 May 2000 14:42:28 -0400 (EDT) From: "John H. Baldwin" To: Doug Rabson Cc: freebsd-new-bus@freebsd.org, jhb@freebsd.org, n_hibma@freebsd.org Subject: Re: Alpha USB difficulties... In-Reply-To: <200005081451.KAA03253@server.baldwin.cx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 8 May 2000, John Baldwin wrote: > On Sat, 6 May 2000, John Baldwin wrote: > > > Well, I know this is rather a long shot, but I have a test > > machine that can be beat on for a week to try to get some Alpha > > stuff nailed down, and one of the things I wanted to test was > > USB. The machine in question is a brand new Alphastation XP900. > > SRM doesn't support USB at the moment, but I figured that our > > support should function at least. Here's what I get when I boot > > the system up: > > > > FreeBSD 4.0-RELEASE #0: Fri May 5 22:54:02 EDT 2000 > > jhb@doberman.cslab.vt.edu:/usr/src/sys/compile/DOBERMAN > > ST6600 > > COMPAQ AlphaStation XP900 466 MHz, 462MHz > > 8192 byte page size, 1 processor. > > CPU: EV6 (21264) major=8 minor=4 extensions=0x303 > > OSF PAL rev: 0x100360002013e > > .... > > pcib0: <21271 PCI host bus adapter> on tsunami0 > > pci0: on pcib0 > > ohci0: mem 0x20d0000-0x20d0fff irq 234 at device 1.0 on > pci0 > > ohci0: could not allocate irq > > device_probe_and_attach: ohci0 attach returned 12 > > > > Thus, it seems to be the classic problem that is solved on PC > > systems by toggling the PnP OS support in the BIOS. Mike > > Smith said that we don't currently know how to allocate an IRQ > > to a device on the Alpha, but I thought I'd run this by you since > > I do have access to a test machine that can be beat up for a week. > > The USB hardware on this platform interrupts via the ISA pic. SRM > represents this as an interrupt pin of 0xe0 + isa irq no. Unfortunately I > have not put in support in the alpha pci code to recognise this so the > interrupt allocation fails. The place to add this support is probably > pci_alloc_resource() in sys/alpha/pci/pcibus.c. Well, I have a patch that does this at least somewhat. It is available at www.freebsd.org/~jhb/patches/alpha.usb.patch. It assumes that all Alpha's use the range 0xe0 - 0xef for ISA IRQ's, or rather, that if a set of IRQ's fall in that range on an Alpha, then they are really hints for ISA IRQ's. However, it seems that although I can now get this far: ohci0: mem 0x20d0000-0x20d0fff irq 234 at device 1.0 on pci0 ohci0: interrupting at TSUNAMI irq 10 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: ALCOR STRONG MAN KBD HUB, class 9/0, rev 1.10/1.01, addr 2 uhub1: 3 ports with 2 removable, bus powered ukbd0: ALCOR STRONG MAN KBD HUB, rev 1.00/1.01, addr 3, iclass 3/1 kbd1 at ukbd0 ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.10, addr 4, iclass 3/1 ums0: 3 buttons and Z dir. The interrupts don't seem to be delivered properly. Thus, I can't get the keyboard to work, usbd takes a while (several seconds) to start, usbdevs also runs with delays, and no kernel messages are generated when I add/delete items to the USB tree. Any ideas, suggetions, etc. would be greatly appreciated. I lose access to this machine on Friday, so.... :) > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 20 8442 9037 John Baldwin jhb@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message