Hi, group, another question about XDAIS compilant codecs running on
DM6446 DVSDK.

Is it possible to access the memory taken exclusively   by DSP ( i.e.:
not the memory taken by ARM linux kernel, CMEMK module, and DSPLINK
module) from ARM side?

actually, my issue comes from this fact:

(1) the dsp algorithm allocates some buffers to contain some critical
data, e.g.: reconstruced image data;
        
(2) now, i want to print these data from ARM side. i know theere is DSP
traceutil tool i can use,  but I prefer to read these data from arm
client application, so i make use of IVIDENC_OutArgs to get the address
of that buffer, e.g.:
    a). at dsp algorithm side,   in each IVIDENC_**_process() call, i
set IVIDEnc_OutArgs just like below:
               outArgs->reconBufs.numBufs = 1;
               outArgs->reconBufs.width = DSP_BUF_STRIDE;
               outArgs->reconBufs.bufs[0] =  DSP_BUF_ADDR;
               outArgs->reconBufs.bufSizes[0] =  DSP_BUF_SIZE;
   b). at arm client application, after each VIDENC_process() call, i
intend to access the dsp buffer just like below:
              
          status = VIDENC_process(hencode,
                                                &inbuf_desc,
                                                &outbuf_desc,
                                                &encoder_inargs,
                                               &encoder_outargs);
          ........

          bufPhyAddr =  encoder_outargs.reconBufs.bufs[0];
          bufSize = encoder_outargs.reconBufs.bufSizes[0];
          bufLogAddr = Memory_getBufferVirtualAddress(bufPhyAddr,
bufSize);
           fwrite(bufLogAddr, bufSize, 1, fp);

          ......
  While, i founded that the "bufPhyAddr" gotten by arm is always equal
to be 0 !!!   I feel very confused!

  anyway,   i also tried to pass the bufPhyAddr via other fileld of
encoder_outargs.reconBufs, except the bufs fields.  It seems
sucessfully,    but the  Memory_getBufferVirtualAddress() call failed!

  Is it impossile for arm to access the physical memory taken
exclusively  by dsp?

  if does, how can i do for this requirement?

  ZhouXiao




This message (including any attachments) is for the named addressee(s)'s use 
only. It may contain
sensitive, confidential, private proprietary or legally privileged information 
intended for a
specific individual and purpose, and is protected by law. If you are not the 
intended recipient,
please immediately delete it and all copies of it from your system, destroy any 
hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of this 
message and/or any
attachments is strictly prohibited.

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to