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.

EDMAK Error: dma_ioctl: REQUESTDMA failed: -22



Hi,

We used RDK1.0 to develop our application. We plan to migrate to new SDK(UDworks RDK2.0).

However, the application shows the "edmak error" error when starting encoder (initializing sequence: capturer, software OSD, encoder, decoder....).

How to solve this problem?

[module version]

DVSDK  2.10.01.18
 H.264 Encoder 2.00.00.09
 H.264 Decoder 2.00.00.09
 Codec Engine 2.24
 FrameWork Components 2.25.00.04
 LinuxUtils 2.24.03
 MPEG4 Encoder 1.10.00.03
 MPEG4 Decoder 1.10.00.01

./av_capture_load.sh
Stopping system log daemon: klogd syslogd.
ccdc intturpt 0 0
ccdc intturpt 1 0
CSL: Module install successful, device major num = 250
CSL: Module version 0.10.00, built on Aug 20 2010 01:12:28
I2C: Module install successful, device major num = 249
DMA: Module install successful, device major num = 248
DRV: Module install successful
DRV: Module built on Aug 20 2010 01:12:30
DRV: EDMACC.QUEPRI  = 00000777
DRV: SYSTEM.MSTPRI0 = 00550011
DRV: SYSTEM.MSTPRI1 = 00000144
DRV: SYSTEM.MISC = 00000399
DRV: ISP.BCR        = 00000002
CMEMK module: built on Aug 20 2010 at 01:13:37
  Reference Linux version 2.6.18
  File /vmlab1/personlin/ti36x/bsp/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc6000000 of size 0x2b00000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x85500000)
cmemk initialized
EDMAK module: built on Aug 20 2010 at 03:26:20
  Reference Linux version 2.6.18
  File /vmlab1/personlin/ti36x/bsp/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
EDMAK Debug: edma registered major = 246
EDMAK Debug: initializing channel owner array...
IRQK module: built on Aug 19 2010 at 19:50:40
  Reference Linux version 2.6.18
  File /vmlab1/personlin/ti36x/bsp/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized

 

[enable EDMA module debug]

 ENCODE: Creating ALG_vidEnc 0
EDMAK Debug: GETVERSION ioctl received, returning 0x1100000.
EDMAK Debug: GETBASEPHYSADDR ioctl received, returning 0x1c00000.
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 9 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 15
EDMAK Debug: calling davinci_request_params(1006, 15, -1)...
EDMAK Debug: ...returned 134
EDMAK Debug:   dma channel 134 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 10 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 11 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 14 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 3
EDMAK Debug: calling davinci_request_params(1006, 3, -1)...
EDMAK Debug: ...returned 149
EDMAK Debug:   dma channel 149 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 15 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 2
EDMAK Debug: calling davinci_request_params(1006, 2, -1)...
EDMAK Debug: ...returned 152
EDMAK Debug:   dma channel 152 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 16 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 2
EDMAK Debug: calling davinci_request_params(1006, 2, -1)...
EDMAK Debug: ...returned 154
EDMAK Debug:   dma channel 154 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 17 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 18 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 19 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 7
EDMAK Debug: calling davinci_request_params(1006, 7, -1)...
EDMAK Debug: ...returned 156
EDMAK Debug:   dma channel 156 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 20 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 2
EDMAK Debug: calling davinci_request_params(1006, 2, -1)...
EDMAK Debug: ...returned 163
EDMAK Debug:   dma channel 163 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 21 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 22 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 23 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 24 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 25 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 28 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 29 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 32 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 165
EDMAK Debug:   dma channel 165 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 33 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 34 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 2
EDMAK Debug: calling davinci_request_params(1006, 2, -1)...
EDMAK Debug: ...returned 166
EDMAK Debug:   dma channel 166 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 35 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 168
EDMAK Debug:   dma channel 168 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 36 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 37 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 38 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 39 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 44 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 2
EDMAK Debug: calling davinci_request_params(1006, 2, -1)...
EDMAK Debug: ...returned 169
EDMAK Debug:   dma channel 169 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 45 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 2
EDMAK Debug: calling davinci_request_params(1006, 2, -1)...
EDMAK Debug: ...returned 171
EDMAK Debug:   dma channel 171 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 46 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 47 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 48 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 173
EDMAK Debug:   dma channel 173 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 49 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 174
EDMAK Debug:   dma channel 174 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 50 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: -1, nParam: 7
EDMAK Debug: calling davinci_request_params(1006, 7, -1)...
EDMAK Debug: ...returned 175
EDMAK Debug:   dma channel 175 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 51 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 182
EDMAK Debug:   dma channel 182 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 52 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 183
EDMAK Debug:   dma channel 183 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 53 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 54 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1006, eventq_no: 0, tcc: -1, param: 1006, nParam: 1
EDMAK Debug: calling davinci_request_params(1006, 1, 1006)...
EDMAK Debug: ...returned 184
EDMAK Debug:   dma channel 184 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 55 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 56 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 57 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 58 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 59 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 60 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 61 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned 0
EDMAK Debug:   dma channel 62 allocated
EDMAK Debug: copying to user
EDMAK Debug: dma_ioctl(): EDMA_IOCREQUESTDMA called
EDMAK Debug: dev_id: 1003, eventq_no: 0, tcc: 1005, param: 1006, nParam: 1
EDMAK Debug: request dma: linuxutils DMA...returned -22
EDMAK Error: dma_ioctl: REQUESTDMA failed: -22
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMA Error: EDMAEDMAK Debug:   release_channel: freeing channel 9...
_IOCREQUESTDMA eEDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
rror
EDMAK Debug:   release_channel: freeing channel 134...
EDMAK Debug:   release_channel: freeing channel 135...
EDMAK Debug:   release_channel: freeing channel 136...
EDMAK Debug:   release_channel: freeing channel 137...
EDMAK Debug:   release_channel: freeing channel 138...
EDMAK Debug:   release_channel: freeing channel 139...
EDMAK Debug:   release_channel: freeing channel 140...
EDMAK Debug:   release_channel: freeing channel 141...
EDMAK Debug:   release_channel: freeing channel 142...
EDMAK Debug:   release_channel: freeing channel 143...
EDMAK Debug:   release_channel: freeing channel 144...
EDMAK Debug:   release_channel: freeing channel 145...
EDMAK Debug:   release_channel: freeing channel 146...
EDMAK Debug:   release_channel: freeing channel 147...
EDMAK Debug:   release_channel: freeing channel 148...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 10...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 11...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 14...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 149...
EDMAK Debug:   release_channel: freeing channel 150...
EDMAK Debug:   release_channel: freeing channel 151...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 15...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 152...
EDMAK Debug:   release_channel: freeing channel 153...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 16...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 154...
EDMAK Debug:   release_channel: freeing channel 155...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 17...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 18...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 19...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 156...
EDMAK Debug:   release_channel: freeing channel 157...
EDMAK Debug:   release_channel: freeing channel 158...
EDMAK Debug:   release_channel: freeing channel 159...
EDMAK Debug:   release_channel: freeing channel 160...
EDMAK Debug:   release_channel: freeing channel 161...
EDMAK Debug:   release_channel: freeing channel 162...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 20...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 163...
EDMAK Debug:   release_channel: freeing channel 164...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 21...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 22...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 23...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 24...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 25...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 28...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 29...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 32...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 165...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 33...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 34...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 166...
EDMAK Debug:   release_channel: freeing channel 167...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 35...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 168...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 36...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 37...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 38...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 39...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 44...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 169...
EDMAK Debug:   release_channel: freeing channel 170...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 45...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 171...
EDMAK Debug:   release_channel: freeing channel 172...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 46...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 47...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 48...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 173...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 49...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 174...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 50...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 175...
EDMAK Debug:   release_channel: freeing channel 176...
EDMAK Debug:   release_channel: freeing channel 177...
EDMAK Debug:   release_channel: freeing channel 178...
EDMAK Debug:   release_channel: freeing channel 179...
EDMAK Debug:   release_channel: freeing channel 180...
EDMAK Debug:   release_channel: freeing channel 181...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 51...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 182...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 52...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 183...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 53...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 54...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 184...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 55...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 56...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 57...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 58...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 59...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 60...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 61...
EDMAK Debug: dma_ioctl(): EDMA_IOCRELEASEDMA called
EDMAK Debug:   release_channel: freeing channel 62...
EDMAK Debug: close: called.
EDMAK Debug: close: returning
ERROR
Enc.c|ALG_vidEncCreate|177): Failed to open video encode algorithm: h264enc (0x0)
 ERROR  (encode_tsk.c|ENCODE_tskCreate|155): DavinciDisplay DavinciDisplay.1: streaming not started in layer id = 0
ALG_vidEncCreate(0)

[alg_server.cfg]

var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
osalGlobal.runtimeEnv = osalGlobal.LINUX;

environment['xdc.cfg.check.fatal'] = 'false';


var RMAN = xdc.useModule('ti.sdo.fc.rman.RMAN');
RMAN.useDSKT2 = false;
RMAN.persistentAllocFxn = "__ALG_allocMemory";
RMAN.persistentFreeFxn = "__ALG_freeMemory";
RMAN.semCreateFxn = "Sem_create";
RMAN.semDeleteFxn = "Sem_delete";
RMAN.semPendFxn = "Sem_pend";
RMAN.semPostFxn = "Sem_post";
RMAN.tableSize = 10;
RMAN.trace = true;
RMAN.debug = true;


var EDMA3 = xdc.useModule('ti.sdo.fc.edma3.Settings');
EDMA3.globalInit = true;
EDMA3.maxQdmaChannels = [10,10,10,10];
EDMA3.maxRequests = 128;
EDMA3.trace = false;
EDMA3.debug = false;



var vicp = xdc.useModule('ti.sdo.linuxutils.vicp.VICP');
vicp.debug = false;


var HDVICP = xdc.useModule('ti.sdo.fc.ires.hdvicp.HDVICP');
HDVICP.trace = false;
HDVICP.debug = false;

//Change this to VICP if the chip is not DM355
var VICP = xdc.useModule('ti.sdo.fc.ires.vicp.VICP2');
VICP.debug = true;

var VICPSYNC = xdc.useModule('ti.sdo.fc.vicpsync.VICPSYNC');
VICPSYNC.debug = false;



var HDVICPSYNC = xdc.useModule('ti.sdo.fc.hdvicpsync.HDVICPSYNC');
HDVICPSYNC.debug = false;
HDVICPSYNC.trace = false;

var VICP = xdc.useModule('ti.sdo.fc.memutils.MEMUTILS');

ADDRSPACE = xdc.useModule('ti.sdo.fc.ires.addrspace.ADDRSPACE');

var MEMTCM = xdc.useModule('ti.sdo.fc.ires.memtcm.MEMTCM');
MEMTCM.cmemBlockId = 1; //Since we use _1 in our insmod command.

var EDMA3CHAN = xdc.useModule('ti.sdo.fc.ires.edma3chan.EDMA3CHAN');
EDMA3CHAN.trace = false;
EDMA3CHAN.debug = false;

var LSP = xdc.useModule('ti.sdo.linuxutils.edma.EDMA');
LSP.debug = false;

var CMEM = xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');

var ALG_MEM = xdc.useModule('ti.sdo.ce.alg.Settings');
ALG_MEM.useHeap = true;

xdc.loadPackage("ti.sdo.ce.video2");
xdc.loadPackage("ti.sdo.fc.hdvicpsync");

/* This package provides mock implementation of Locks and Semaphores */
/* var EX = xdc.useModule("ti.sdo.fc.rman.examples.EXAMPLE");*/
/*EX.debug = false;*/
/*
 *  ======== Engine Configuration ========
 */

var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');
var G711ENC = xdc.useModule('ti.sdo.ce.examples.codecs.g711.G711ENC');

var MPEG4DEC = xdc.useModule('ti.sdo.codecs.mpeg4dec.ce.MPEG4DEC');
var H264DEC = xdc.useModule('ti.sdo.codecs.h264dec.ce.H264DEC');
var JPEGDEC = xdc.useModule('ti.sdo.codecs.jpegdec.ce.JPEGDEC');
var G711DEC = xdc.useModule('ti.sdo.ce.examples.codecs.g711.G711DEC');

var Engine = xdc.useModule('ti.sdo.ce.Engine');
var myEngine = Engine.create("alg_server", [

    {name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
    {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
    {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},   
    {name: "g711enc", mod: G711ENC, local: true},
    {name: "mpeg4dec", mod: MPEG4DEC, local: true, groupId: 1},
    {name: "h264dec", mod: H264DEC, local: true, groupId: 1},
    {name: "jpegdec", mod: JPEGDEC, local: true, groupId: 1},   
    {name: "g711dec", mod: G711DEC, local: true},   

]);

/* set the cache enabling feature of CE for ARM-side algos  - Required for audio decoder*/
/*
algSettings = xdc.useModule('ti.sdo.ce.alg.Settings');
algSettings.useCache = true;
*/


Program.main = null;

  • Hi,

    If i am not wrong, you are trying to put H.264 ver 2.0 codecs in the DVR RDK ver 1.0. Is that correct? If yes, looking at the errors, it is clear that you are not getting the EDMA channels needed for the codec. Can you confirm, if you are using the HIGH_SPEED/HIGH_QUALITY mode of the codec and not the legacy ver 1.10 mode (XDM_USER_DEFINED and encQuality = 0)?

    If all the above is true, you might have to reduce the number of channels in the LSP package. We had done it as following

    In ti-davinci\include\asm-arm\arch-davinci\edma.h change as following

    //#define DM365_DMACH2EVENT_MAP0  0x0C00300Cu
    //#define DM365_DMACH2EVENT_MAP1  0x80000F00u
    #define DM365_DMACH2EVENT_MAP0  0x0C00000Cu // Relieved DM365_DMA_IMCOP_IMX0INT etc
    #define DM365_DMACH2EVENT_MAP1  0x80000000u //Relieved EMAC (40,41,42,43)

     

    Let me know if it solves your problem.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • Hi,

    It has solved if modifing the edma.h by your patch. Thank you very much!

    I noticed option 'DM368_CONFIG' before, too.

    If we use the DM365, should we put what kind of parameter values for encoder?

    [alg_priv.h]

    #define ALG_VID_ADV_FEATURE_KTNF_NAME  "ktnf"
    #define DM368_CONFIG                   0

    [alg_vidEnc.c]

    #if DM368_CONFIG
     pObj->params.encodingPreset        = XDM_HIGH_SPEED;
    //  pObj->params.encodingPreset        = XDM_USER_DEFINED;
    #else
     pObj->params.encodingPreset        = XDM_HIGH_QUALITY;
    #endif

    #if DM368_CONFIG
       pObj->h264Params.encQuality = 2 ; // 2010 2.5 light codec
    #else
       pObj->h264Params.encQuality = 0 ; // person added?
    #endif

    Regards,

    Person

  • Person,

    You can use the same codec settings for DM365 and DM368. I think the definition (DM368_CONFIG) was from earlier codebase but now we use it always for DM368 and DM365. The new codec is valid for DM365 as well as DM368. If you read through the codec user guide, you will realize that XDM_HIGHSPEED and XDM_HIGHQUALITY, both point to the same configuration.

    Regards,

    Anshuman

    PS: Please mark the post as verified, if you think it has answered your questions. Thanks.