IMX8MQ pcie failed for large size data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MQ pcie failed for large size data

885 Views
mcggoal
Contributor I

Hi, 

I am trying to connect IMX8MQ with intel FPGA thru PCIE+DMA, IMX8 as RP and FPGA as EP.

I've succeed to read/write a 4KB size data from/to RP thru FPGA's DMA, but it failed when changed to the larger size, e.g 16KB.

When I captured signals on DMA, it was founded that only 1 cycle of read operation happened, then DMA hang up with BUSY status, and bytes_left is 16,384.

Anyone who knows why ? Sincerely hope for your help!

0 Kudos
4 Replies

821 Views
mcggoal
Contributor I

Hi, igor

Thanks for reply.

I am now using 4.19.35, IMX8MQ EVK, it is almost the newest.

One point to be confirmed, I found below description in processor reference manual:

pastedImage_1.png

Does it mean the DMA operation must be splited into 4K pieces for a large size data ?

0 Kudos

821 Views
igorpadykov
NXP Employee
NXP Employee

Hi Chenguang

 

sorry  4.19.35 is not newest, please check latest on

Embedded Linux for i.MX Applications Processors | NXP 

linux-imx - i.MX Linux kernel 

 

Best regards
igor

0 Kudos

821 Views
mcggoal
Contributor I

Pls, It is a big effort to change kernel. 
And I am sure that will not work.

0 Kudos

821 Views
igorpadykov
NXP Employee
NXP Employee

Hi Chenguang

what bsp used in the case, could you try latest

Embedded Linux for i.MX Applications Processors | NXP 

linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos