Linux and PCI bridge
Please CC your response.
We are currently debugging a problem involving 2 PCI boards that we have developed. Our system eventually "hangs" after running for awhile. By this I mean that no hardware interrupts can get through (keyboard, mouse, ethernet, etc.). However, software components are still running. During this process I added some debug software and have determined that individual IRQs were not disabled at the 8259 interrupt controller. I have also determined that interrupts are still on at the processor - so there was not a naughty piece of software that did a "cli" and forget to clean up after itself. Something is getting hosed in the hardware and interrupts are not able to get from our PCI device to my driver. We have confirmed that our device has it's interrupt asserted when it hangs. That makes the PCI bus, bridge and Front Side Bus the suspects in this.
So, my questions to you are:
- Can anyone recommend any tools that would be useful in debugging this? I've started looking at a couple of PCI bus analyzers, but I'm not sure that it will allow me to detect anything with respect to the bridge or the FSB.
- Other than the handling of 8259 and APIC interrupts (BTW, we don't use APIC), does the Linux O/S drive anything else in the bridge, or is this a BIOS thing?
We have tried other slots, exclusive interrupt use and updates to BIOS. At one point, I thought it was an APM related bug in the BIOS because we
experienced no failures once we told it to NOT issue CPU idle calls. Since
we don't need power management, we turned it off completely. However, testing of our second product has not gone as well. We experience the same symptoms.
Thanks in advance for your help.
Kathy Frazier
Senior Software Engineer
Max Daetwyler Corporation-Dayton Division
2133 Lyons Road
Miamisburg, OH 45342
Tel #: 937.439-1582 ext 6158
Fax #: 937.439-1592
Email: [email protected]
http://www.daetwyler.com
Quoted 3 lines · Kathy Frazier
- Can anyone recommend any tools that would be useful in debugging this? I've started looking at a couple of PCI bus analyzers, but I'm not sure that it will allow me to detect anything with respect to the bridge or the FSB.
In the past couple of years, probably the most valuable asset in developping both the hardware and the software of our PCI boards has been the VMetro PCI bus analyzer/excerciser. The analyzer allows us to watch and trace all PCI signals/cycles in real time, while the excerciser gives us the capability to probe/drive all mem/io/config address ranges which are visible from the bus which the bus analyzer board is sitting on. This excludes everything beyond the PCI bus domain unless you are able to hook an additional signal to one of the general purpose trace inputs.
In fact, I'd never ever develop a driver for whichever OS you like without such a tool - it spoils you ;-) As it turned out, it's even more valuable in software development than hardware development.
Ciao,
Dani
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniela Engert, systems engineer at MEDAV GmbH Gräfenberger Str. 32-34, 91080 Uttenreuth, Germany Phone ++49-9131-583-348, Fax ++49-9131-583-11