From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 14 19:49:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B3E816A4CE for ; Mon, 14 Jun 2004 19:49:36 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (80-219-170-238.dclient.hispeed.ch [80.219.170.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2BF443D39 for ; Mon, 14 Jun 2004 19:49:33 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:50db:aaee:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i5EJnA201267 verified NO) for ; Mon, 14 Jun 2004 21:49:14 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i5EJn8n01266; Mon, 14 Jun 2004 21:49:09 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Mon, 14 Jun 2004 21:49:09 +0200 (CEST) Message-Id: <200406141949.i5EJn8n01266@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL References: <200312230007.hBN07lr03615@NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk> From: Barry Bouwsma To: Hackers Haven X-Mailman-Approved-At: Tue, 15 Jun 2004 12:19:28 +0000 Subject: Re: pci_cfgintr: can't route an interrupt ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 19:49:36 -0000 This message is ancient, but I finally got things (sort of) working just now. More context can be found in the first message in this thread On Tue, 23 Dec 2003, John Baldwin wrote: > On 23-Dec-2003 Barry Bouwsma wrote: > > > There was a thread about this in this list back in late may of 2003. > > I recently found a mainboard which exhibits this problem with one particular > > card I have -- a combi OHCI+EHCI USB card with firewire, and an on-card > > HiNT PCI-PCI bridge. > FreeBSD-4 is not going to route interrupts correctly across an onboard > PCI-PCI bridge or any devices behind it. FreeBSD-5 will, but 4.x will > not. Try disabling PNP OS in your BIOS if you have it set to get the > BIOS to route all the interrupts if possible. Well, I decided to take the easy way out. I saw nothing in the BIOS of this particular machine that would make any difference (no PNP OS choice). Rather than using an older machine whose BIOS does assign interrupts to every controller, or buying a newer machine, or using 5.x, I decided to try to hack in parts of -current into 4.x to make it work. And I had some success. But the hacks really aren't worthy of public sharing, since, for starters, the assign_interrupt_method kept wanting to give me irq 6 -- the floppy controller irq which is assigned later in the boot. Certainly my fault. I have a handful of ideas for what could be wrong here. But I hacked around this by overriding the irq to something reasonable, and that worked, although I had to set the values precisely for things to work (intpin b to irq 11; intpin c to irq 10). And work it did, and I was overjoyed. Problems were observed elsewhere, as expected. But finally I could access devices on these two controllers. Unfortunately, I don't know what I'm doing enough to have created a clean patch that Just Works with 4.x, which is what I had hoped to offer in a message like this one, to be able to share and enjoy. sorry, barry bouwsma