• Not Answered

How to avoid the time-consuming coming from memcpy from linux user space to kernel space?

Hi,all:

My use_case is like this.I transfer yuv data from linux host to c6678 through PCIE and

then c6678 do H264 encode.In order to achieve that goal,I decide to do like below steps:

step1.

First I transfer yuv data from user space to kernel space.On this step,I use memcpy.

step2:

Transfer yuv data from linux kernel space to c6678 DDR through PCIE .On this step.

I use EDMA as PCIE user guide said.

But after my profile,I find step1 using memcpy is the bottleneck.I want to cut the time-wasting

on memcpy from user space to kernel space.So,How to avoid that time consuming ?

Thanks!

1 Reply