discrepency betwen IRQ in /proc/pci and the IRQ in PCI_INTERRUPT_LINE configuration register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a device driver that was working on a few computers.  When I
installed in on another computer I stopped getting 
interrupts.  What I noticed was that the IRQ in /proc/pci and the IRQ in the
configuration registers are not the same. (See below)
And if I use the IRQ from the configurations registers it doesn't work, but
when I hardcode the IRQ from /proc/pci it does work.
I have a few questions.

1. Shouldn't the values be the same?
2. Who is responsible for assigning the IRQ, the BIOS or Linux?  Or is what
happened that the bios assigned it,
and then Linux changed it, and the configurations registers were not
updated?
3. Should I be taking the irq from /proc/pci instead of the configuration
registers, and if so how do I do that?

Thanks in advance,
Linda

/proc/pci:

Bus  3, device   5, function  0:
IRQ 29.
Master Capable.  Latency=64.  
Non-prefetchable 32 bit memory at 0xc6ff7c00 [0xc6ff7fff].
Non-prefetchable 32 bit memory at 0xc6f00000 [0xc6f7ffff].
Non-prefetchable 32 bit memory at 0xc6800000 [0xc6bfffff].



03:05.0 Class 1080: 1222:0004 (rev 01)
00: a8 12 04 00 17 01 90 02 01 00 80 10 08 40 00 00
10: 00 7c ff c6 00 00 f0 c6 00 00 80 c6 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 b5 10 80 04
30: 00 00 00 00 40 00 00 00 00 00 00 00 0f 01 00 00

__________________________________________________________ 
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
postmaster@ndsisrael.com and destroy the original message.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux