This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[OMAP3530] speeding up DSPLINK proc_write

I am abhishek, i am a graduate student, i am working on  "AUTOMOTIVE SAFETY SYSTEMS,  BASED ON IMAGE PROCESSING" . I am using DEVKIT 8000 a beagle boardvariant with camera interface. I am writing application for Lane departure warning system where in images from camera are processed on omap and warning are given out if there is lane departure. my application execution outline is as below

1. Capture image frame from camera via video for linux and camera specific driver

2. Processes it on dsp

3. Send information about processed image to arm

4. Arm displays on to the lcd

 

I want to do these four operations as fast as possible. In order to do that 

I get frames from driver into buffer which i map to my application space in ARM which is running linux

Then i am using dsp link to pass on this data to DSP using proc write and proc read

but this process is slow so how do i go about in speeding this process ? is it possible to map address from driver buffer directly todsp application space ? or  is it possible to map buffer in ARM application space to DSP application space ? so that dsp will be able to process data without waiting for data to get tranfered.

Thanks in advance

  • Hello,

    DSPLink provides a way to map memory using on ARM application space using the PROC_control API. There are two commands that can be used PROC_CTRL_CMD_MMU_ADD_ENTRY and PROC_CTRL_CMD_MMU_DEL_ENTRY

    Please refer to $DSPLINK/gpp/inc/usr/proc.h and
    $DSPLINK/gpp/inc/usr/procdefs.h on more details.

    Sample code to map memory is as below:

      ProcMemMapInfo mapInfo;



      mapInfo.dspAddr = (Uint32)physical_ptr;
      mapInfo.size    = size;


      status = PROC_control(processorId, PROC_CTRL_CMD_MMU_ADD_ENTRY, &mapInfo);

    Some more detail on the way DSPLink configures mmu entries is at http://processors.wiki.ti.com/index.php/OMAP3_DSP_MMU_Configuration

    This should speed up things a bit.

    Deepali