Interesting Graphics Card IRQ

Programming, for all ages and all languages.
Post Reply
janktrank
Posts: 13
Joined: Thu Aug 11, 2011 2:52 pm

Interesting Graphics Card IRQ

Post by janktrank »

I just happened to stumble upon an interesting IRQ for my graphics card. All the other hardware devices have IRQs < 200 except my graphics card which apparently has the IRQ 0xFFFFFFFE. What exactly is the significance of this IRQ? It looks like it would be much too large to refer to a physical interrupt line on the PIC/IO APIC like the other devices do. Does it have something to do with a message signaled interrupt?

Thanks in advance.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Interesting Graphics Card IRQ

Post by Combuster »

Processor interrupts are limited to 256 total (0-255). 0xFFFFFFFE probably means you didn't understand the documentation (nor what 2s complement is).
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
janktrank
Posts: 13
Joined: Thu Aug 11, 2011 2:52 pm

Re: Interesting Graphics Card IRQ

Post by janktrank »

Combuster wrote:Processor interrupts are limited to 256 total (0-255). 0xFFFFFFFE probably means you didn't understand the documentation (nor what 2s complement is).
I wasn't reading any documentation; I was just looking at the IRQs for Windows 7. As for 2s compliment, an IRQ of negative two doesn't make sense to me either.
azblue
Member
Member
Posts: 147
Joined: Sat Feb 27, 2010 8:55 pm

Re: Interesting Graphics Card IRQ

Post by azblue »

janktrank wrote:
Combuster wrote:Processor interrupts are limited to 256 total (0-255). 0xFFFFFFFE probably means you didn't understand the documentation (nor what 2s complement is).
I wasn't reading any documentation; I was just looking at the IRQs for Windows 7. As for 2s compliment, an IRQ of negative two doesn't make sense to me either.
-3 on my wife's computer; I don't know what it's supposed to mean either. Weird.
rdos
Member
Member
Posts: 3279
Joined: Wed Oct 01, 2008 1:55 pm

Re: Interesting Graphics Card IRQ

Post by rdos »

I've seen it too. I think you are right and it refers to a MSI. M$ could have written "MSI" instead of faulty interrupt numbers!
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Interesting Graphics Card IRQ

Post by Brendan »

Hi,

Maybe it's meant to be "interrupt 0xFE" and was sign extended (during conversion to "int") by accident.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
rdos
Member
Member
Posts: 3279
Joined: Wed Oct 01, 2008 1:55 pm

Re: Interesting Graphics Card IRQ

Post by rdos »

Brendan wrote:Hi,

Maybe it's meant to be "interrupt 0xFE" and was sign extended (during conversion to "int") by accident.


Cheers,

Brendan
Or maybe M$ allocated an interrupt (for MSI) that was lower than the base for IO-APIC interrupts, and then they report a negative number?
evoex
Member
Member
Posts: 103
Joined: Tue Dec 13, 2011 4:11 pm

Re: Interesting Graphics Card IRQ

Post by evoex »

This is a bit of a late reply... I read this message googling regarding something else for osdev, and I wanted to mention something not mentioned yet.

I think the "error" must be in the code similar to this:

Code: Select all

isr254:
push byte 254
I used that code at first in nasm but got a warning about 254 being too big a value: apparently, there is no instruction for "push byte 254" where 254 is unsigned. Rather, it is translated into "push byte -2" and pushes "0xFFFFFFFE" on the stack (haven't tested this, but that's what I read).
So that interrupt number may really just mean interrupt 254. Just take the least significant 8 bits.
Post Reply