[asterisk-users] Re: Dell PowerEdge 2950 Sharing NIC IRQ with
Digium Card
Eric "ManxPower" Wieling
eric at fnords.org
Sun Feb 11 14:37:08 MST 2007
The BIOS only lets you set the XT-PIC IRQs. It does not let you set the
APIC IRQs, as that is done by the OS.
Any yet on my system it DOES show the APIC IRQs. I suspect you have an
older version of lspci that does not support APIC.
[root at pbx-1 asterisk]# cat /proc/interrupts
CPU0
0: 271858226 IO-APIC-edge timer
1: 10 IO-APIC-edge i8042
8: 1 IO-APIC-edge rtc
9: 1 IO-APIC-level acpi
12: 110 IO-APIC-edge i8042
14: 147081 IO-APIC-edge ide0
15: 14 IO-APIC-edge ide1
16: 0 IO-APIC-level uhci_hcd:usb1
18: 5449064 IO-APIC-level uhci_hcd:usb3, eth0
19: 0 IO-APIC-level uhci_hcd:usb2
21: 1085194679 IO-APIC-level wanpipe3, wanpipe4
22: 1070806918 IO-APIC-level wanpipe1, wanpipe2
NMI: 0
LOC: 271872814
ERR: 0
MIS: 0
[root at pbx-1 asterisk]# lspci -v
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM
Controller/Host-Hub Interface (rev 03)
Subsystem: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM
Controller/Host-Hub Interface
Flags: bus master, fast devsel, latency 0
Memory at f8000000 (32-bit, prefetchable) [size=64M]
Capabilities: [e4] #09 [4105]
00:02.0 VGA compatible controller: Intel Corporation
82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
(prog-if 00 [VGA])
Subsystem: Intel Corporation: Unknown device 5247
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at f0000000 (32-bit, prefetchable) [size=128M]
Memory at ffa80000 (32-bit, non-prefetchable) [size=512K]
Expansion ROM at <unassigned> [disabled]
Capabilities: [d0] Power Management version 1
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation: Unknown device 5247
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at e800 [size=32]
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation: Unknown device 5247
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at e880 [size=32]
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation: Unknown device 5247
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at ec00 [size=32]
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82) (prog-if
00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: ff800000-ff8fffff
Prefetchable memory behind bridge: e6a00000-e6afffff
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC
Interface Bridge (rev 02)
Flags: bus master, medium devsel, latency 0
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller
(rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Intel Corporation: Unknown device 5247
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at ffa0 [size=16]
Memory at 1ff00000 (32-bit, non-prefetchable) [size=1K]
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M)
SMBus Controller (rev 02)
Subsystem: Intel Corporation: Unknown device 5247
Flags: medium devsel, IRQ 5
I/O ports at e480 [size=32]
01:00.0 Network controller: Unknown device 1923:0300 (rev 01)
Subsystem: Unknown device a011:2500
Flags: bus master, medium devsel, latency 255, IRQ 21
Memory at ff8ffc00 (32-bit, non-prefetchable) [size=1K]
Memory at ff8ff800 (32-bit, non-prefetchable) [size=1K]
01:01.0 Network controller: Unknown device 1923:0300 (rev 01)
Subsystem: Unknown device a011:2500
Flags: bus master, medium devsel, latency 255, IRQ 22
Memory at ff8ff400 (32-bit, non-prefetchable) [size=1K]
Memory at ff8ff000 (32-bit, non-prefetchable) [size=1K]
01:02.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado]
(rev 78)
Subsystem: 3Com Corporation 3C905C-TX Fast Etherlink for PC
Management NIC
Flags: bus master, medium devsel, latency 8, IRQ 18
I/O ports at dc00 [size=128]
Memory at ff8fec00 (32-bit, non-prefetchable) [size=128]
Expansion ROM at ff8c0000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
[root at pbx-1 asterisk]#
Matt wrote:
> Eric,
> I understand what you are saying about APIC... and from my understanding
> the
> O/S takes over control of the IRQs.. but aren't there still only 15
> physical
> IRQs that you can set in the BIOS for devices? I've never seen a machine
> in which I could go above 15 for a device in the BIOS.
>
> I have a machine on which I have APIC turned on and cat/proc/interrupts
> shows:
> CPU0
> 0: 103074143 IO-APIC-edge timer
> 1: 79 IO-APIC-edge i8042
> 2: 0 XT-PIC cascade
> 8: 1 IO-APIC-edge rtc
> 12: 93 IO-APIC-edge i8042
> 14: 23 IO-APIC-edge ide0
> 121: 663241 IO-APIC-level uhci_hcd:usb2, eth0
> 137: 0 IO-APIC-level uhci_hcd:usb3
> 153: 0 IO-APIC-level ehci_hcd:usb1
> 161: 104218 IO-APIC-level ips
> 169: 103024435 IO-APIC-level wctdm24xxp
> NMI: 0
> LOC: 103059761
> ERR: 0
> MIS: 0
>
> Everything looks good, yes? wctdm24xxp is on it's own IRQ. However,
> that's
> not entirely true. If you do an lspci -vb you get:
>
> [root at mrn-svr06 ~]# lspci -bv | grep -i "IRQ 11" --before-context=2
> 00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI
> Controller #1 (rev 02) (prog-if 00 [UHCI])
> Subsystem: IBM: Unknown device 02dd
> Flags: bus master, medium devsel, latency 0, IRQ 11
> --
> 04:04.0 Ethernet controller: Unknown device d161:2400 (rev 11)
> Subsystem: Unknown device d161:2400
> Flags: bus master, medium devsel, latency 64, IRQ 11
> --
> 05:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit
> Ethernet PCI Express (rev 11)
> Subsystem: IBM: Unknown device 02c6
> Flags: bus master, fast devsel, latency 0, IRQ 11
>
> Ooops. There's the Ethernet controller and the Digium (Unknown device) on
> the same IRQ.
>
>
> On 2/11/07, Eric ManxPower Wieling <eric at fnords.org> wrote:
>>
>> None of these mention APIC, so I assume they are written about machines
>> without APIC support. I'm sure what you claim was true in 1998, but is
>> not true on any modern PC.
>>
>> Here are some links about APIC and IO-APIC.
>>
>> http://www.microsoft.com/whdc/system/sysperf/apic.mspx
>> http://osdev.berlios.de/pic.html
>> http://www.tek-tips.com/faqs.cfm?fid=4455
>>
>> http://www.asteriskguru.com/tutorials/pci_irq_apic_tdm_ticks_te410p_te405p_noise.html
>>
>>
>> MANY other types of cards have issue with sharing IRQs. This seems to
>> be especially common with audio cards.
>>
>> Matt wrote:
>> > Sure, not a problem.
>> >
>> > http://www.pcguide.com/ref/mbsys/res/irq/num.htm
>> > *IRQ Number:* The number of the IRQ from 0 to 15.
>> >
>> > http://www.pcnineoneone.com/howto/irq1.html
>> >
>> > http://www.computerhope.com/irqs.htm
>> > No, unfortunately with PCs they are limited to 00-15.
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> ------------------------------------------------------------------------
>
> This message has been 'sanitized'. This means that potentially
> dangerous content has been rewritten or removed. The following
> log describes which actions were taken.
>
> Sanitizer (start="1171228140"):
> Part (pos="3602"):
> Part (pos="133"):
> SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
> Match (names="unnamed.txt", rule="1"):
> Enforced policy: accept
>
> Part (pos="3284"):
> SanitizeFile (filename="unnamed.html, filetype.html", mimetype="text/html"):
> Match (names="unnamed.html, filetype.html", rule="3"):
> ScanFile (file="/tmp/att-45cf85ec-R6M-unnamed.html"):
> Scan succeeded, file is clean.
>
> Enforced policy: unknown
>
> Match (names="unnamed.html, filetype.html", rule="4"):
> Enforced policy: accept
>
> Note: Styles and layers give attackers many tools to fool the
> user and common browsers interpret Javascript code found
> within style definitions.
>
> Rewrote HTML tag: >>_div_<<
> as: >>_p__DEFANGED_div_<<
> Rewrote HTML tag: >>_span class="gmail_quote"_<<
> as: >>_DEFANGED_span class="gmail_quote"_<<
> Rewrote HTML tag: >>_/span_<<
> as: >>_/DEFANGED_span_<<
> Rewrote HTML tag: >>_blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"_<<
> as: >>_blockquote class="gmail_quote" DEFANGED_style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"_<<
> Rewrote HTML tag: >>_/div_<<
> as: >>_/p__DEFANGED_div_<<
>
> Part (pos="12159"):
> SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
> Match (names="unnamed.txt", rule="1"):
> Enforced policy: accept
>
> Total modifications so far: 5
>
>
> Anomy 0.0.0 : Sanitizer.pm
> $Id: Sanitizer.pm,v 1.94 2006/01/02 16:43:10 bre Exp $
More information about the asterisk-users
mailing list