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.

kernel panic while running node.js on AM437x EVM



Hi ,

  I am observing some kernel panic when i run node.js . Can anybody help in understanding the  below logs.

 5484.079955] ------------[ cut here ]------------
[ 5484.084903] WARNING: CPU: 0 PID: 1490 at drivers/bus/omap_l3_noc.c:121 l3_interrupt_handler+0x104/0x28c()
[ 5484.095056] L3 standard error: TARGET:GPMC at address 0x61fd85f0
[ 5484.101427] Modules linked in: dwc3 snd_soc_evm snd_soc_omap snd_pcm_dmaengine pixcir_i2c_ts snd_soc_tlv320aic3x snd_soc_davinci_mcasp ti_am335x_adc industrialio snd_soc_davinci snd_soc_core dwc3_omap e
[ 5484.129681] CPU: 0 PID: 1490 Comm: node Tainted: G      D W    3.12.10 #1
[ 5484.136883] Backtrace:
[ 5484.139490] [<c00179dc>] (dump_backtrace+0x0/0x10c) from [<c0017b78>] (show_stack+0x18/0x1c)
[ 5484.148443]  r6:00000079 r5:00000009 r4:ed443c58 r3:00000000
[ 5484.154478] [<c0017b60>] (show_stack+0x0/0x1c) from [<c05741f0>] (dump_stack+0x20/0x28)
[ 5484.162983] [<c05741d0>] (dump_stack+0x0/0x28) from [<c004702c>] (warn_slowpath_common+0x6c/0x8c)
[ 5484.172404] [<c0046fc0>] (warn_slowpath_common+0x0/0x8c) from [<c00470f0>] (warn_slowpath_fmt+0x38/0x40)
[ 5484.182463]  r8:00000000 r7:00080001 r6:f1000700 r5:00000007 r4:c0809b50
[ 5484.189601] [<c00470b8>] (warn_slowpath_fmt+0x0/0x40) from [<c02857a4>] (l3_interrupt_handler+0x104/0x28c)
[ 5484.199845]  r3:c06d3380 r2:c06d3268
[ 5484.203655] [<c02856a0>] (l3_interrupt_handler+0x0/0x28c) from [<c0071acc>] (handle_irq_event_percpu+0x54/0x1b8)
[ 5484.214458] [<c0071a78>] (handle_irq_event_percpu+0x0/0x1b8) from [<c0071c60>] (handle_irq_event+0x30/0x40)
[ 5484.224805] [<c0071c30>] (handle_irq_event+0x0/0x40) from [<c00744ec>] (handle_fasteoi_irq+0x74/0x128)
[ 5484.234679]  r4:ed0056c0 r3:00000000
[ 5484.238483] [<c0074478>] (handle_fasteoi_irq+0x0/0x128) from [<c00713cc>] (generic_handle_irq+0x28/0x38)
[ 5484.248542]  r4:0000002a r3:c0074478
[ 5484.252354] [<c00713a4>] (generic_handle_irq+0x0/0x38) from [<c00156a0>] (handle_IRQ+0x38/0x8c)
[ 5484.261584]  r4:c080937c r3:00000182
[ 5484.265387] [<c0015668>] (handle_IRQ+0x0/0x8c) from [<c00087e0>] (gic_handle_irq+0x30/0x5c)
[ 5484.274248]  r6:ed443d70 r5:c07b4480 r4:fa24010c r3:00000100
[ 5484.280274] [<c00087b0>] (gic_handle_irq+0x0/0x5c) from [<c0577e80>] (__irq_svc+0x40/0x54)
[ 5484.289043] Exception stack(0xed443d70 to 0xed443db8)
[ 5484.294403] 3d60:                                     ad41e840 00000000 fa242000 fa242730
[ 5484.303084] 3d80: ad41e840 fa242000 c08383b0 ad41e840 a0070113 c0837c80 c07b4040 ed443ddc
[ 5484.311763] 3da0: fa242000 ed443db8 c0030904 c00243b0 60070113 ffffffff
[ 5484.318778]  r7:ed443da4 r6:ffffffff r5:60070113 r4:c00243b0
[ 5484.324821] [<c00241d0>] (l2x0_inv_range+0x0/0x1f0) from [<c001ed5c>] (__dma_page_dev_to_cpu+0x60/0x140)
[ 5484.334888] [<c001ecfc>] (__dma_page_dev_to_cpu+0x0/0x140) from [<c001fa00>] (arm_dma_unmap_page+0x50/0x5c)
[ 5484.345238] [<c001f9b0>] (arm_dma_unmap_page+0x0/0x5c) from [<c03ccfc0>] (__cpdma_chan_free+0x78/0xb0)
[ 5484.355113]  r4:f010c7c0 r3:00000002
[ 5484.358916] [<c03ccf48>] (__cpdma_chan_free+0x0/0xb0) from [<c03cd0d4>] (__cpdma_chan_process+0xdc/0x118)
[ 5484.369074] [<c03ccff8>] (__cpdma_chan_process+0x0/0x118) from [<c03cd154>] (cpdma_chan_process+0x44/0x5c)
[ 5484.379327] [<c03cd110>] (cpdma_chan_process+0x0/0x5c) from [<c03d0bd4>] (cpsw_poll+0x1c/0xb0)
[ 5484.388464]  r6:00000040 r5:ed32b448 r4:ed32b448 r3:c0837c88
[ 5484.394499] [<c03d0bb8>] (cpsw_poll+0x0/0xb0) from [<c04c5ef8>] (net_rx_action+0xa4/0x1a8)
[ 5484.403267]  r6:00000040 r5:ed32b448 r4:c03d0bb8 r3:c0837c88
[ 5484.409298] [<c04c5e54>] (net_rx_action+0x0/0x1a8) from [<c004a67c>] (__do_softirq+0xc8/0x1ac)
[ 5484.418443] [<c004a5b4>] (__do_softirq+0x0/0x1ac) from [<c004a800>] (do_softirq+0x50/0x5c)
[ 5484.427218] [<c004a7b0>] (do_softirq+0x0/0x5c) from [<c004aa78>] (irq_exit+0x9c/0xf0)
[ 5484.435525]  r4:ed442000 r3:00000000
[ 5484.439330] [<c004a9dc>] (irq_exit+0x0/0xf0) from [<c00156a4>] (handle_IRQ+0x3c/0x8c)
[ 5484.447637]  r4:c080937c r3:00000182
[ 5484.451439] [<c0015668>] (handle_IRQ+0x0/0x8c) from [<c00087e0>] (gic_handle_irq+0x30/0x5c)
[ 5484.460300]  r6:ed443fb0 r5:c07b4480 r4:fa24010c r3:00000100
[ 5484.466324] [<c00087b0>] (gic_handle_irq+0x0/0x5c) from [<c0578060>] (__irq_usr+0x40/0x60)
[ 5484.475093] Exception stack(0xed443fb0 to 0xed443ff8)
[ 5484.480452] 3fa0:                                     bef6a878 bef6a8f8 bef6a8f4 00586380
[ 5484.489132] 3fc0: 007175f0 00714080 bef6a874 bef6a8f8 0073d4c8 bef6a8f4 0073c4e8 bef6a8dc
[ 5484.497811] 3fe0: 00000000 bef6a870 0032b8d0 0032b414 80070010 ffffffff
[ 5484.504827]  r7:bef6a8f8 r6:ffffffff r5:80070010 r4:0032b414
[ 5484.510847] ---[ end trace a5932ebb2ca65173 ]---

Any help would be really appreciated.

Thanks and Regards,

Sai

  • Forwarding this to the SW team.

  • Hello Sai,

    The panic comes from a standard interconnect error:
    [ 5484.084903] WARNING: CPU: 0 PID: 1490 at drivers/bus/omap_l3_noc.c:121 l3_interrupt_handler+0x104/0x28c()
    [ 5484.095056] L3 standard error: TARGET:GPMC at address 0x61fd85f0
    [ 5484.101427] Modules linked in: dwc3 snd_soc_evm snd_soc_omap snd_pcm_dmaengine pixcir_i2c_ts snd_soc_tlv320aic3x snd_soc_davinci_mcasp

    Standard error means something of the following happened:
    - Firewall error: Protection violation; this error indicates that a request was rejected by a firewall and is reported to the control module.
    - Address hole: This error reports an unknown address for a request. The address map is local to each master; therefore, an address hole error is reported each time a master requests an access to a slave to which it is not logically connected, even if this address exists in the global L3 address map. This error is detected only once per burst.
    - Unsupported command: This error reports that the master sent a command that cannot be processed, because the slave cannot accept it and no conversion to another command is possible. This error is detected only once per burst.

    Most likely it is address hole or unsupported command. Your kernel log indicates that linked modules to the L3 path are dwc3 sound & mcasp.
    What does the node.js do?
    From the log, I see that your audio engine is trying to read/write from a restricted memory location or to execute unsupported command.

    Hope this helps.

    Best Regards,
    Yordan
  • Hi Sai,

    Can you give some more information on the issue?
    What is your case in details?
    The problem appears in net_rx_action() software interrupt handler, that is invoked from net/core/dev.o driver

    BR,
    Georgi