Re: hwo to adjust interrupt?

Ming Zhang
2005-08-12T19:28:27Z

On Fri, 2005-08-12 at 20:14 +0100, Matthew Wilcox wrote:
> On Fri, Aug 12, 2005 at 03:05:51PM -0400, Ming Zhang wrote:
> > i tried to remove the SA_SHIRQ option when request_irq(), unfortunately
> > it seems that the IO-APIC will only try to allocate same # to it and
> > once that slot is used, the request_irq will fail.
>
> Yes. These two interrupts are physically on the same wire attached to
> the IO-APIC. You need to put the card in a different slot to change
> which interrupt it gets.
>
thanks.

i tried to move aic7xxx into another slot and now it uses 17 and 18
instead of previously 16 17.

thus my question is how many intr available in APIC? what if i have a
quad port nic card and 1-2 scsi dual port controllers on board? then
they must share anyway?

[root@sc420 root]# cat /proc/interrupts
CPU0 CPU1
0: 103368 60018 IO-APIC-edge timer
1: 80 68 IO-APIC-edge i8042
4: 7 0 IO-APIC-edge serial
8: 3 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-level acpi
14: 494 0 IO-APIC-edge ide0
16: 740 0 IO-APIC-level eth1
17: 15 0 IO-APIC-level aic7xxx
18: 28 43 IO-APIC-level uhci_hcd:usb4, eth0, aic7xxx
20: 4178 179 IO-APIC-level libata
21: 0 0 IO-APIC-level ehci_hcd:usb1, uhci_hcd:usb2
22: 0 0 IO-APIC-level uhci_hcd:usb3
23: 0 0 IO-APIC-level uhci_hcd:usb5
NMI: 0 0
LOC: 163279 163330
ERR: 0
MIS: 0