interrupt problem....

mdaljeet@in.ibm.com
Tue, 26 Jun 2001 10:19:04 +0530


I am experiencing a strange problem.
I am doing a continuous DMA for long hours using a card on my system. In my
code I enable interrupts and clear the interrupts in the interrupt handler
which is called on completion of every DMA cycle. Now, the program works
fine for say 16-20 hours but I think when the debug files'(where i put some
debug information for each DMA cycle + system log files etc) size becomes
too large, card stops generating interrupts.

1. There is a bit in card that tells that DMA is complete
2. There is a bit in card that tells card to generate interrupt when DMA is
complete
3. If we clear the above two bits, the interrupt handling is complete

Now, DMA is getting complete as the bits specified in the point 1 and 2 are
getting set. I have added a 'printk' in the interrupt handler to see
whether the card is generating interrupts or not. Card stops generating
interrupt. Even if I delete all the debug files and start my program again,
same thing happens. After I reboot the system and run my program, the card
starts working properly with same code.

I have noted following things:

a) If I delete all the system log files and restrict the size of my debug
file, the code runs fine for more than 48 hours. Basically I stop the
program after having a 48 hour run.
b) If the system log files has large size and I do not delete them before
starting my program, the card stops generating interrupts after 16-20 hours
of run.

Any pointers to the problem......????

Regards,
Daljeet.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/