Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20707 Discussions

Discuss the issue of PCIe

allen18
New Contributor I
495 Views

Hello everyone, I would like to discuss a problem related to PCIe transmission:

I use stratix10 PCIe for avmm IP to transfer image data to CPU. The data is first written into DDR and then a frame of data is read to FIFO. After the frame is filled, an MSI interrupt is initiated to CPU. Upon receiving the interrupt, CPU set the PCIe descriptor and configure PCIe registers to execute DMA transfer through the PCIe DMA mover. Once the data described by a descriptor, which is a frame of data, is transferred, the PCIe module will automatically initiate another interrupt to notify the CPU that the transfer is complete and the CPU can retrieve the uploaded data. Due to the high speed of PCIe transmission, X4 theoretically has a bandwidth of up to 30G, so after this DMA transfer is completed, the next frame of data is being prepared. Once the next frame is ready, the previous steps are repeated to continuously upload frame by frame.

However, there is a problem with this process. Although the bandwidth of PCIe is large,Perhaps other processes or interrupts are affecting its response speed to this interrupt.the CPU may not respond to interrupts promptly. For example, if the data in the FIFO is ready and an interrupt is issued to tell the CPU to make DMA mover work, but the software does not respond to the interrupt right away, the FIFO may become full and the next frame of data will arrive, resulting in the loss of the next frame of data. Does anyone have any good ideas for handling this situation?

Labels (1)
0 Kudos
3 Replies
VenTingT
Employee
438 Views

Hi @allen18,


Thanks for reaching out to Intel Community Forum.


The situation you described could be a FIFO overflow situation. An FIFO overflow occurs when there's incoming data to write the full FIFO. In this case, you can try to increase the FIFO size (depth of the FIFO) to accommodate more data and overcome the overflow situation.


Thanks.

Best Regards,

VenTing_Intel


0 Kudos
VenTingT
Employee
368 Views

Hi @allen18,


May I know if you have further questions regarding this case?


Thanks.

Best Regards,

VenTing_Intel


p/s: If any answers from the community or Intel support are helpful, please feel free to mark them as solutions, give them kudos, and rate the survey 4/5.


0 Kudos
VenTingT
Employee
340 Views

Hi @allen18,


We have not received any response from you on the previous answer that we provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you.


After 15 days, this thread will be transitioned to community support.

The community users will be able to help you with your follow-up questions.


If you feel your support experience was less than a 4 or 5, please allow me to correct it before closing, or please let me know the cause so that I may improve your future support experience.


Thanks.

Best Regards,

VenTing_Intel


0 Kudos
Reply