Skip to contentSkip to conversation

How to control IRQ polarities on PCI devices?

DISCUSSION Andrew de Quincey 1 participant 3 messages Jul 26, 2003 2 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi, I've just tested what Windows XP programs my IO-APIC to with my wavelan card (using Softice to interrogate the IO-APIC by hand :)

It turns out that with my latest patch, I am programming the IO-APIC the same way it is set up under windows.

Thing is, the IO-APIC is set up to active high, level trigger. This is how it is setup under windows as well (the device works under windows).

I'm assuming the device is by default expecting PCI standard IRQs which are active LOW, level polarity... which is why I either get no IRQs, or lots of rubbish ones.

Is there a standard way of controlling the polarity of IRQs generated by PCI devices? This looks like the last issue to be resolved under linux.

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

A message that is not in the archive (sent off-list or not yet received): 200307260246.35849.adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org

#2 lore raw
Quoted 7 lines

I'm assuming the device is by default expecting PCI standard IRQs which are active LOW, level polarity... which is why I either get no IRQs, or lots of rubbish ones.

Is there a standard way of controlling the polarity of IRQs generated by PCI devices? This looks like the last issue to be resolved under linux.

Just had the idea to test a different PCI device in this slot. it works fine, so it looks like this is just a problem with the wavelan card.

So, unless someone else finds a problem, my latest patch is probably the final one for this problem.

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

A message that is not in the archive (sent off-list or not yet received): 200307261604.13239.adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org

#4 lore raw
Quoted 4 lines · Andrew de Quincey
Quoted 4 lines

I'm assuming the device is by default expecting PCI standard IRQs which are active LOW, level polarity... which is why I either get no IRQs, or lots of rubbish ones.

Quoted 8 lines
Quoted 2 lines

Is there a standard way of controlling the polarity of IRQs generated by PCI devices? This looks like the last issue to be resolved under linux.

Just had the idea to test a different PCI device in this slot. it works fine, so it looks like this is just a problem with the wavelan card.

So, unless someone else finds a problem, my latest patch is probably the final one for this problem.

Please ignore this, I was talking absolute rubbish once again. The rtl ethernet device is detected fine, but IRQs do not work for it.

I've posted a message to lkml about this issue. I think this must be something in the MCP-T southbridge chip not being set correctly. I have had reports that the same thing happens with nforce2 boards from other manufacturers as well.

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01