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 on DM365

I want to run the dvsdk demo program "decode"`.

First I execute the script "loadmodules_hd.sh"
got the messgae:

CMEMK module: built on Feb  9 2010 at 21:12:09
  Reference Linux version 2.6.18
  File /home/pencil722/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linux
utils/cmem/src/module/cmemk.c
ioremap_nocache(0x85000000, 50331648)=0xc6000000
allocated heap buffer 0xc6000000 of size 0x134000
cmem initialized 20 pools between 0x85000000 and 0x88000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84c00000)
ioremap_nocache(0x1000, 28672)=0xc5088000
no remaining memory for heap, no heap created for memory block 1
cmem initialized 1 pools between 0x1000 and 0x8000
IRQK module: built on Feb  9 2010 at 21:12:12
  Reference Linux version 2.6.18
  File /home/pencil722/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linux
utils/irq/src/module/irqk.c
irqk initialized
EDMAK module: built on Feb  9 2010 at 21:12:11
  Reference Linux version 2.6.18
  File /home/pencil722/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linux
utils/edma/src/module/edmak.c

I think there is no error here.

Then, when I run the program,
I got the following message:

Decode demo started.
DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 736,
 layer.pix_fmt.width = 720,
 layer.pix_fmt.height = 480,
 layer.pix_fmt.sizeimage =529920
DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
 layer->layer_info.config.line_length= 736
EDMAK Error: dma_ioctl: REQUESTDMA failed: -22
EDMA Error: EDMA_IOCREQUESTDMA error
Error: Failed to create video decoder: mpeg4dec

Can anyone help me solving the error message?

Peter

  • It sounds like a resource allocation failure by the linuxutils/edmak module.  Could you run dmesg -c  right before you run the app, and then dmesg right after ? See if that gives you any other clue on what's going on ?

    Is there anything else running on your board that might be using up the dma resources ?

  • Thanks for your answer.

    I have try the method you suggested,
    run dmesg right before the app and after the app.

    The difference between two messages only the demo program "decode" shows on screen.

    I don't run any app on my board after booting,
    but I am not sure is there anything else running on my board that might be using up the dma resources.
    I  list some messages when run the dmesg,

    nand_davinci nand_davinci.0: hardware revision: 2.3
    dm_spi.0: davinci SPI Controller driver at 0xc501e000 (irq = 42) use_dma=0
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.6:USB HID core driver
    musb_hdrc: version 6.0, cppi-dma, host, debug=0
    musb_hdrc musb_hdrc: No DMA interrupt line
    musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
    musb_hdrc: MHDRC RTL version 1.500
    musb_hdrc: setup fifo_mode 2
    musb_hdrc: 8/9 max ep, 3392/4096 memory
    musb_hdrc: hw_ep 0shared, max 64
    musb_hdrc: hw_ep 1tx, max 512
    musb_hdrc: hw_ep 1rx, max 512
    musb_hdrc: hw_ep 2tx, max 512
    musb_hdrc: hw_ep 2rx, max 512
    musb_hdrc: hw_ep 3tx, max 512
    musb_hdrc: hw_ep 3rx, max 512
    musb_hdrc: hw_ep 4shared, max 256
    musb_hdrc: USB Host mode controller at c5074000 using DMA, IRQ 12
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    mice: PS/2 mouse device common for all mice
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode

    Can you help me with this message,
    Is there anything else running on my board that might be using up the dma resources ?

  • Besides the error messages I show at the POST,
    when I run the "decode", I sometimes get the other messages:

    Decode demo started.
    DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
    layer.pix_fmt.bytesperline = 736,
     layer.pix_fmt.width = 720,
     layer.pix_fmt.height = 480,
     layer.pix_fmt.sizeimage =529920
    DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
     layer->layer_info.config.line_length= 736
    decode: ce/Vdec2.c:117: Vdec2_process: Assertion `Buffer_getNumBytesUsed(hInBuf)' failed.
    Aborted

    I don't know that is there anythig relation between these two error messages?

  • I'd ask DVSDK experts to help you run the unmodified demo successfully.