Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Nov 2004 10:19:23 -0800
From:      Nate Lawson <nate@root.org>
To:        Bruce M Simpson <bms@spc.org>
Cc:        current@freebsd.org
Subject:   Re: IRQ-Routing for 5.3-BETA
Message-ID:  <41910A2B.6020707@root.org>
In-Reply-To: <20041109064402.GA23401@empiric.icir.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41910A2B.6020707>