From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 18:19:25 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CD1216A4CE for ; Tue, 9 Nov 2004 18:19:25 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED94F43D2D for ; Tue, 9 Nov 2004 18:19:24 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222])iA9IJPov014207; Tue, 9 Nov 2004 13:19:25 -0500 Message-ID: <41910A2B.6020707@root.org> Date: Tue, 09 Nov 2004 10:19:23 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce M Simpson References: <200409232235.08683.msch@snafu.de> <200409251822.11019.msch@snafu.de> <4155AE43.5010704@root.org> <200409252126.36670.msch@snafu.de> <419054C1.5050608@root.org> <20041109064402.GA23401@empiric.icir.org> In-Reply-To: <20041109064402.GA23401@empiric.icir.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: msch@snafu.de cc: current@freebsd.org Subject: Re: IRQ-Routing for 5.3-BETA X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2004 18:19:25 -0000 Bruce M Simpson wrote: > On Mon, Nov 08, 2004 at 09:25:21PM -0800, Nate Lawson wrote: > >>I MFC'd the change to RELENG_5 as well so if you can test there or on >>6-current, you should fine that the card works as before. The change >>was to allow the SCI (irq 9 on PIC systems) to always be used for >>devices, even if the ACPI _PRS setting for the device doesn't explicitly >>allow it. > > > Whoah. Thanks for this. I remember discussing with Warner around the time > of 4.5-STABLE that I had problems with interrupt routing on laptops. > > So I hope this is not a stupid question... > > The specific problem I had was that the OLDCARD code saw that the PCMCIA > device I was trying to plug in did not allow irq 9 to be used as the > function interrupt. The control interrupt of course was irq 9. I hacked > OLDCARD somewhat to allow me to assign the function and control interrupts > separately so I could get my PCMCIA smart card reader to work. > > I wonder if it's still possible to do something like this in these days > of ACPI and cardbus, or is it no longer necessary (can I lie about which > IRQ is routed to the pccard/isa device?) You can override which irqs are assigned a given PCI device (including cardbus) by setting tunables for ACPI and PCI (see the manpages for syntax). However, with cardbus, the irq is assigned to the slot, not the device so once you route say irq 10 to a slot, all devices plugged into it get irq 10. On most cardbus chips, a single controller has an irq so both slots by design have the same irq. -Nate