Re: Greetings. Having a FIFO overrun when my amplc_pci230 card is set on the other side of a PCI bridge

On 04/01/06 15:54, Michael R. Head wrote:
> Hello, I'm having some issues with my amplc_pci230 card. I have a 4U box
> here that has a PCI bus (#2) with a Pericom Semiconductor PCI to PCI
> bridge to another PCI bus (#3). When my PCI230 card is on bus #2, it
> functions just fine with comedi (comedi_test runs and appears to
> complete successfully). When I shut down and plug the card into a slot
> on bus #3, I get nonstop messages in /var/log/messages (this is a RHEL 3
> box)  once the driver is loaded.
> 
> kernel: comedi0: amplc_pci230: FIFO overrun
> ....
> 
> Any hints or clues? Right now, it's the only thing plugged into any of
> the PCI slots on the motherboard. 

If you haven't given up on this yet, could you try the attached patch? 
It does the following:

1. Initializes the board's INT_SCE register before hooking up the
    interrupt routine.
2. Corrects the error handling in pci230_handle_ai() to stop the ADC
    interrupt being enabled after an error!
3. Minor clean-up in the interrupt routine to silence a compiler warning
    about an unused variable when building for a 2.4 kernel.

I don't know why the behaviour should differ depending on the which PCI 
bus the card is attached to, but hopefully the patch will restore some 
sanity!

If you try the patch, please let me know how you get on, preferably on 
the mailing list.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-01-20Z13:48:37