Hi,
We are using iMX8M mini (5.4.47 kernel) with a camera (1080p 60fps) via CSI and a device on PCI.
We collect the data and encode on the board. When we are trying to run anything on PCI interface it causes error from from mx6s_capture.c (1107 line)
Rx fifo overflow
We aren't able to use both camera and PCI device at once because of that issue.
It looks like we have got some collision between those peripherals, but we didn't see any issue with PCI drivers. The problem occurs only on CSI interface.
How to find out the root of that problem? We were checking logs from DMA and interrupts and didn't notice any suspicious behavior. It looks like the system cannot handle those two communications at once.
It seems that RX FIFO Full always occurs after 7th PCI MSI interrupt, RX FIFO Full precedes ADDR_CH_ERR_INT.
Just to add to Kamil's message, there is a problem with CSI interrupts during PCIe communication. We set pin high at the beginning of mx6s_csi_irq_handler and low at the end.
Without PCIe communication we get 120 irq/sec with about 8 ms between each interrupt, as soon as we start PCIe communication delays between two interrupts may be 16+ ms which makes a problem with CSI reception and RX fifo overflows.
Is it possible to set PCIe interrupts to a lower priority so the CSI triggers in time?
Kind regards,
Krzysztof
Just to add to it, here is output from mx6s_log_counters function:
```