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.

DMA issue

Hi,

We got following log when we use SwMsLink_drvDoDma function in swMsLink_drv.c. we use rdk4.1 as code base to develop our usecase. the system still work normally after this log appear. Any problem cause this log appear? it will cause any problem in my system? Thanks.

irq 14: nobody cared (try booting with the "irqpoll" option)
Backtrace:
[<c0045bdc>] (dump_backtrace+0x0/0x110) from [<c03a6828>] (dump_stack+0x18/0x1c)
 r7:00000000 r6:00000000 r5:c054fec4 r4:c054fec4
[<c03a6810>] (dump_stack+0x0/0x1c) from [<c0097090>] (__report_bad_irq+0x38/0x90)
[<c0097058>] (__report_bad_irq+0x0/0x90) from [<c009723c>] (note_interrupt+0x154/0x1d8)
 r5:c054fec4 r4:c054fec4
[<c00970e8>] (note_interrupt+0x0/0x1d8) from [<c0097f54>] (handle_level_irq+0xcc/0x11c)
 r9:0000000a r8:d8000000 r7:00000002 r6:00000000 r5:0000000e
r4:c054fec4
[<c0097e88>] (handle_level_irq+0x0/0x11c) from [<c003707c>] (asm_do_IRQ+0x7c/0xa0)
 r5:c0535f40 r4:0000000e
[<c0037000>] (asm_do_IRQ+0x0/0xa0) from [<c03a88f4>] (__irq_svc+0x34/0xa0)
Exception stack(0xc0535e98 to 0xc0535ee0)
5e80:                                                       00000008 c053a5b0
5ea0: 00000000 c05a4800 c0534000 00000000 00000000 00000002 d8000000 0000000a
5ec0: 0000001f c0535f14 c0535f18 c0535ee0 c006ddc4 c006dcbc 20000113 ffffffff
 r5:fa200000 r4:ffffffff
[<c006dc74>] (__do_softirq+0x0/0x108) from [<c006ddc4>] (irq_exit+0x48/0x94)
[<c006dd7c>] (irq_exit+0x0/0x94) from [<c0037080>] (asm_do_IRQ+0x80/0xa0)
[<c0037000>] (asm_do_IRQ+0x0/0xa0) from [<c03a88f4>] (__irq_svc+0x34/0xa0)
Exception stack(0xc0535f40 to 0xc0535f88)
5f40: 81600281 40000013 c0535f88 00000814 00000816 c0583780 c002c0a0 c0538084
5f60: d8000000 413fc082 0000001f c0535f9c c0535f88 c0535f88 c0042fac c0042fb0
5f80: 20000013 ffffffff
 r5:fa200000 r4:ffffffff
[<c0042f44>] (default_idle+0x0/0x78) from [<c0043558>] (cpu_idle+0x50/0x90)
 r5:c0583780 r4:c0534000
[<c0043508>] (cpu_idle+0x0/0x90) from [<c03a0374>] (rest_init+0x60/0x78)
 r5:c0583780 r4:c05a79ec
[<c03a0314>] (rest_init+0x0/0x78) from [<c0008cc8>] (start_kernel+0x274/0x2cc)
[<c0008a54>] (start_kernel+0x0/0x2cc) from [<d8008048>] (0xd8008048)
 r6:c002c09c r5:c058389c r4:10c53c7d
handlers:
[<c004b714>] (dma_ccerr_handler+0x0/0x1fc)
Disabling IRQ #14

  • This error indicates EDMA TCERR. This is not expected. it indicates EDMA xfer with wrong params was initiated.

    Pls do cat /proc/interrupts and check if irq14 is DMA error. If it is EDMA error you will have to add debug prints in utils_dma to see which xfer is causing error and what is the wrong param.Have you made any changes to SwMs in DVRRDK 4.1 ?

  • Hi Badri Narayanan,

    Thanks for your reply.

    # cat /proc/interrupts [J
               CPU0
      4:          0        INTC  omap2_elm
     12:          0        INTC  edma
     14:     200000        INTC  edma_error
     20:          0        INTC  gpmc
     38:          0        INTC  HDMI
     44:          0        INTC  eth1
     45:      86209        INTC  eth1
     46:     232852        INTC  eth1
     47:          0        INTC  eth1
     67:     214074        INTC  gp timer
     70:      47512        INTC  omap_i2c
     71:        784        INTC  omap_i2c
     72:      38350        INTC  serial idle, OMAP UART0
     73:          0        INTC  serial idle
     74:          0        INTC  serial idle
     75:          0        INTC  rtc0
     76:          0        INTC  rtc0
     77:      30780        INTC  mailbox-dsp, mailbox-video, mailbox-vpss
    120:       1622        INTC  sr_hvt
    121:       1622        INTC  sr_svt
    122:          0        INTC  omap-iommu.1
    123:          0        INTC  omap-iommu.0
    Err:          0


    What parameter should I print out to check? We have not change dma usage in SwMs, we just use three SwMs and each one have grid dma function inside.

    Thanks,

    Jacson

  • Hi Badri,

    Following line parameter is ok? Is it any rule or alignment should be follow?

    linedraw 16 104 752 568

                 startx starty width height

    linedraw 776 104 240 184

    linedraw 776 296 240 184

    linedraw 776 488 240 184

    Thanks,

    Jacson

  • Hi Badri,

    What parameter should we print to figure out this issue? Could you give me some help?

    Thanks,

    Jacson