Hi,
I have a DM368 custom board on which we are using dvsdk 2_10_01_18.We have a streaming applications which captures YUV data from VPFE and does the encoding and outputs the data.Now we had a scenario where we had to perform a memcpy of 115200 bytes in one case and 259200 bytes in another case.This took almost 3.2 ms to get executed which affected our application a lot since it was real time hence we went for DMA copy hoping that it would solve our problem.We used the dm365mm module which came along with the DVSDK in order to perform the DMA copy.Now when we profile this DM365MM_memcpy by putting a gettimeofday across this function we found that the time taken to perform this DMA copy varies drastically. ie sometimes it as less as .6ms and sometimes it is as huge 4.2 ms .What we were suspecting was that since MJCP/HDVICP also used DMA probably the DMA channels were not free hence we were seeing such a drastic variation.Is there a way that i can improve this DMA copy by assigning some kind of priority or is this the observed behavior.Also i have read that if by using channel 0 there will be a higher priority and by using channel 64 there will be a low priority.I found out that DM365MM_memcpy always gets channel 60 sue to which the its priority is always very less.Is there a way that i can request for a particular channel say channel 10 due to which there will be a higher priority for this DMA operation compared to the other DMA operations.
Regards
Haran