Author Topic: Irq 101...  (Read 496 times)

Offline Dux

  • Aces High CM Staff (Retired)
  • Platinum Member
  • ******
  • Posts: 7333
Irq 101...
« on: December 26, 2002, 07:45:06 AM »
Would someone mind posting just a quick FYI about IRQs... what it does, where to find and change assignments, any other useful trivia?

I'm not totally helpless when it comes to PCs, but IRQs remain to be a bit of voodoo to me.

Thanks in advance. :)
Rogue Squadron, CO
5th AF, FSO Squadron, Member

We all have a blind date with Destiny... and it looks like she's ordered the lobster.

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18724
Irq 101...
« Reply #1 on: December 26, 2002, 08:10:19 AM »
no expert here ...

IRQ are hooks which allow the computer to share between devices

some "share" better than others and is why it is always a good idea to have each device have its own IRQ - if possible

OS's handle IRQ's differently

win98 allows to assign some manually depending on motherboard slot/config

win2k & xp handles IRQ assignments cept when you disable ACPI

look at device hardware in Control Panel to see what IRQ is assigned to what piece of ur hardware

then for advice, IF you are having issues, post that info, motherboard type & operating sys

gl
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline Dux

  • Aces High CM Staff (Retired)
  • Platinum Member
  • ******
  • Posts: 7333
Irq 101...
« Reply #2 on: December 26, 2002, 08:23:12 AM »
Thanks, Eagler.

Are they in any way analagous to a SCSI ID#?

If XP handles assignment automatically, do we trust XP to do this correctly?
Rogue Squadron, CO
5th AF, FSO Squadron, Member

We all have a blind date with Destiny... and it looks like she's ordered the lobster.

Offline iceydee

  • Nickel Member
  • ***
  • Posts: 550
Irq 101...
« Reply #3 on: December 26, 2002, 08:24:40 AM »
Quote
Originally posted by Eagler
some "share" better than others and is why it is always a good idea to have each device have its own IRQ - if possible


actually, it's only the last couple of OSs that is able to have same IRQ for 1 device. IRQ stands for "Interrupt ReQuest", and is like an interface through which the device tells the computer how to operate it... I might be wrong though.

Offline iceydee

  • Nickel Member
  • ***
  • Posts: 550
Irq 101...
« Reply #4 on: December 26, 2002, 08:26:18 AM »
Quote
Originally posted by Dux
If XP handles assignment automatically, do we trust XP to do this correctly?


Since PCI-buses and Plug&Play, yes, we can trust it... if we were to struggle with ISA bus still, then we wouldn't be able to trust any OS to do it correctly...

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18724
Irq 101...
« Reply #5 on: December 26, 2002, 08:31:16 AM »
Quote
Originally posted by Dux
Thanks, Eagler.

Are they in any way analagous to a SCSI ID#?

If XP handles assignment automatically, do we trust XP to do this correctly?


SCSI ID only matters to ur SCSI devices and all use the same IRQ which is assigned to your SCSI controller

If you don't have any issues, then XP is handling them properly :)

really depends on what is sharing one with what - you wouldn't want two or more "busy" devices having to share an IRQ at the same time. Even then though some devices/manufactureres "play/share" better with others than others ... kinda a trial and error thing to get it straightened out IF you are having issues .. otherwise "if it ain't broke ... "
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline Dux

  • Aces High CM Staff (Retired)
  • Platinum Member
  • ******
  • Posts: 7333
Irq 101...
« Reply #6 on: December 26, 2002, 08:57:58 AM »
Thanks again, guys.

No, I'm not having any troubles... just looking to learn something new. :)
Rogue Squadron, CO
5th AF, FSO Squadron, Member

We all have a blind date with Destiny... and it looks like she's ordered the lobster.

Offline Skuzzy

  • Support Member
  • Administrator
  • *****
  • Posts: 31462
      • HiTech Creations Home Page
Irq 101...
« Reply #7 on: December 26, 2002, 09:08:16 AM »
Hmmm...

IRQ's are either hardware or software generated signals intended to get the attention of the CPU, as the hardware that generated it needs to be serviced.

In the PC world, IRQ's are mostly hardware generated. and the number for the IRQ is the priority at which the IRQ is to be serviced, with the lower number having the higher priority.

IRQ sharing is a means to allow the deficient design of the PC to support more devices.  Until recently (i.e. newer extended IRQ support), there were a very limited number of available hardware IRQ's.
Until the PCI architecture came along, you could not share interrupts as multiple generations of the same IRQ would only show up as one interrupt to the CPU.

The PCI architecture also had some short comings in the design as only 3 hardware interrupts were ever specified to be available.  Again, this was due to the original design of the PC.


Interrupt sharing has always been a problem, as the design requires the manufacturer of the hardware device to validate whether or not the interrupt is intended for the hardware via an interrupt handler function.
Basically, the interrupt handler looks at its hardware to see if an interrupt was generated (most cards have status registers to read this information from).  If it does, then it services the interrupt, and then the next device interrupt handler sharing the interrupt is called and so on.
This adds overhead for every device which shares an interrupt.  It also puts the user at risk, as you are assuming the driver manufacturer has properly written its software driver to share interrupts.
Performance can suffer dramatically depending on which devices are sharing which interrupts.  Reliability is often compromised as well.

New generations of chips and motherboards are now available which allow up to 64 hardware interrupts.  Windows 2K and XP will use these, if the following conditions are met:
1)  APIC must be available (Advanced Programmable Interrupt Controller)
2)  ACPI must be disabled

When you use ACPI, Windows 2K and XP will use software based interrupts, where a table is built for all the devices and all hardware interrupts are funneled through an OS supplied function which attempts to call the correct Interrupt handler for the device that actually generated the interrupt.
One of the things lost in this scheme is the interrupt priority.  Two devices at different hardware interrupts are serviced based on the order they were installed, rather than the actual interrupt priority.

That help?
Roy "Skuzzy" Neese
support@hitechcreations.com

Offline Dux

  • Aces High CM Staff (Retired)
  • Platinum Member
  • ******
  • Posts: 7333
Irq 101...
« Reply #8 on: December 26, 2002, 04:46:45 PM »
Thanks all!
Rogue Squadron, CO
5th AF, FSO Squadron, Member

We all have a blind date with Destiny... and it looks like she's ordered the lobster.

Offline snafu

  • Silver Member
  • ****
  • Posts: 842
      • http://www.btinternet.com/~snaffers
Irq 101...
« Reply #9 on: December 27, 2002, 05:17:26 AM »

Offline Dowding (Work)

  • Nickel Member
  • ***
  • Posts: 627
Irq 101...
« Reply #10 on: December 27, 2002, 05:36:41 AM »
Skuzzy - so if I want a good internet connect through my NIC card, I should set its IRQ to a higher number? Currently its at 10, and I think there are unused IRQ numbers further up the list.

BTW, is there a way to view the IRQ assignments in list form, rather than having to go through all the devices in turn using the Control Panel > System >devices tab?

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18724
Irq 101...
« Reply #11 on: December 27, 2002, 06:14:48 AM »
Quote
Originally posted by Dowding (Work)
Skuzzy - so if I want a good internet connect through my NIC card, I should set its IRQ to a higher number? Currently its at 10, and I think there are unused IRQ numbers further up the list.

BTW, is there a way to view the IRQ assignments in list form, rather than having to go through all the devices in turn using the Control Panel > System >devices tab?

yes to ur 2nd question .. how depends on your OS

It's under control panel/system/hardware/device manager/view/resources by type/IRQ in XP

win98 bout the same - control panel/systems/device manager double click Computer - I think its in there
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline bloom25

  • Silver Member
  • ****
  • Posts: 1675
Irq 101...
« Reply #12 on: December 27, 2002, 10:49:11 AM »
Great job Skuzzy! :)  I was working on something, but I just don't have the time anymore to write posts like that.

In the "old days" only 16 total interupts were available.  Most are preassigned to certain devices.  (System timer, com ports, LPT [parallel port], IDE controllers (14 and 15), PS2 ports, etc)

It makes no real difference in practice to assign the lowest IRQ to a device.