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.

AM4376: Kernel warning

Part Number: AM4376
Other Parts Discussed in Thread: AM4372

Hi,

I browsed forum but cannot find exact response to my issues. IIRC L3 interconnect is not available so cannot really understand what is going on.

I have this in my bootlog:

NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at /kernel-source//drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x2e0/0x344
44000000.ocp:L3 Custom Error: MASTER M2 (64-bit) TARGET GPMC (Read): Data Access in User mode during Debug access
Modules linked in:
CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.28-wifi-emc-dut #6
Hardware name: Generic AM43 (Flattened Device Tree)
[<c010fa08>] (unwind_backtrace) from [<c010c45c>] (show_stack+0x20/0x24)
[<c010c45c>] (show_stack) from [<c04cc0d4>] (dump_stack+0x20/0x28)
[<c04cc0d4>] (dump_stack) from [<c01324ac>] (__warn+0xec/0x108)
[<c01324ac>] (__warn) from [<c0132510>] (warn_slowpath_fmt+0x48/0x50)
[<c0132510>] (warn_slowpath_fmt) from [<c04fe370>] (l3_interrupt_handler+0x2e0/0x344)
[<c04fe370>] (l3_interrupt_handler) from [<c0170fac>] (__handle_irq_event_percpu+0xd4/0x238)
[<c0170fac>] (__handle_irq_event_percpu) from [<c017113c>] (handle_irq_event_percpu+0x2c/0x68)
[<c017113c>] (handle_irq_event_percpu) from [<c01711e4>] (handle_irq_event+0x6c/0x90)
[<c01711e4>] (handle_irq_event) from [<c0174a9c>] (handle_fasteoi_irq+0xc4/0x164)
[<c0174a9c>] (handle_fasteoi_irq) from [<c01701d0>] (generic_handle_irq+0x28/0x38)
[<c01701d0>] (generic_handle_irq) from [<c0170838>] (__handle_domain_irq+0xc0/0xdc)
[<c0170838>] (__handle_domain_irq) from [<c0101544>] (gic_handle_irq+0x60/0x8c)
[<c0101544>] (gic_handle_irq) from [<c093108c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xef11db58 to 0xef11dba0)
db40:                                                       ef1c3300 ef1f4b80
db60: 00000000 00000000 ef1f4b80 ef1c3300 00000000 00000000 00000015 ef1c3338
db80: 60000013 ef11dbdc ef11dba8 ef11dba8 c0172ddc c0172d18 60000013 ffffffff
[<c093108c>] (__irq_svc) from [<c0172d18>] (__setup_irq+0x548/0x66c)
[<c0172d18>] (__setup_irq) from [<c0172fbc>] (request_threaded_irq+0xc4/0x17c)
[<c0172fbc>] (request_threaded_irq) from [<c0175730>] (devm_request_threaded_irq+0x7c/0xb8)
[<c0175730>] (devm_request_threaded_irq) from [<c04fe508>] (omap_l3_probe+0x134/0x214)
[<c04fe508>] (omap_l3_probe) from [<c05d81fc>] (platform_drv_probe+0x60/0xac)
[<c05d81fc>] (platform_drv_probe) from [<c05d63d4>] (driver_probe_device+0x214/0x2dc)
[<c05d63d4>] (driver_probe_device) from [<c05d6644>] (__device_attach_driver+0xa4/0xbc)
[<c05d6644>] (__device_attach_driver) from [<c05d4700>] (bus_for_each_drv+0x98/0xa0)
[<c05d4700>] (bus_for_each_drv) from [<c05d6108>] (__device_attach+0xac/0x114)
[<c05d6108>] (__device_attach) from [<c05d6678>] (device_initial_probe+0x1c/0x20)
[<c05d6678>] (device_initial_probe) from [<c05d56a0>] (bus_probe_device+0x38/0x90)
[<c05d56a0>] (bus_probe_device) from [<c05d3880>] (device_add+0x414/0x514)
[<c05d3880>] (device_add) from [<c0729050>] (of_device_add+0x44/0x48)
[<c0729050>] (of_device_add) from [<c07295a8>] (of_platform_device_create_pdata+0x94/0xc4)
[<c07295a8>] (of_platform_device_create_pdata) from [<c0729680>] (of_platform_bus_create+0x84/0x1f8)
[<c0729680>] (of_platform_bus_create) from [<c072996c>] (of_platform_populate+0x84/0xd8)
[<c072996c>] (of_platform_populate) from [<c0e0fc24>] (pdata_quirks_init+0x68/0xa0)
[<c0e0fc24>] (pdata_quirks_init) from [<c0e0f70c>] (omap_generic_init+0x1c/0x28)
[<c0e0f70c>] (omap_generic_init) from [<c0e03ac4>] (customize_machine+0x2c/0x38)
[<c0e03ac4>] (customize_machine) from [<c0101bf0>] (do_one_initcall+0x134/0x15c)
[<c0101bf0>] (do_one_initcall) from [<c0e00f88>] (kernel_init_freeable+0x1d4/0x290)
[<c0e00f88>] (kernel_init_freeable) from [<c092b5e8>] (kernel_init+0x18/0x11c)
[<c092b5e8>] (kernel_init) from [<c0107b08>] (ret_from_fork+0x14/0x2c)
---[ end trace ca236957eef2cfb1 ]---
OMAP GPIO hardware version 0.1

So from above error message it seems that GPMC is trying to read something but in dts we have gpmc disabled (we don't use it we use eMMC and sdio). Is there any chance to get more insight what does this warning means (board normally boots and works just having warning in bootlog is not nice ;)).

Thanks,
marek

  • Hello marek,

    Please, completely remove the GPMC node from your device tree to fix this issue.

    Best regards,
    Kemal

  • Hi Kemal,

    ok thanks for pointer. I'll try and get back to you if this resolve my issue. Thanks and BR,

    marek

  • Hi Kemal,

    still same (dropped gpmc from am4372.dtsi) and I got other warning also:

    omap_hwmod: gpmc: no dt node
    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 1 at /kernel-source//arch/arm/mach-omap2/omap_hwmod.c:2359 _init+0x178/0x494
    omap_hwmod: gpmc: doesn't have mpu register target base
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.28-eth-vehicle-variant #20
    Hardware name: Generic AM43 (Flattened Device Tree)
    [<c010fa08>] (unwind_backtrace) from [<c010c45c>] (show_stack+0x20/0x24)
    [<c010c45c>] (show_stack) from [<c04cc0d4>] (dump_stack+0x20/0x28)
    [<c04cc0d4>] (dump_stack) from [<c01324ac>] (__warn+0xec/0x108)
    [<c01324ac>] (__warn) from [<c0132510>] (warn_slowpath_fmt+0x48/0x50)
    [<c0132510>] (warn_slowpath_fmt) from [<c0e0c150>] (_init+0x178/0x494)
    [<c0e0c150>] (_init) from [<c012004c>] (omap_hwmod_for_each+0x50/0x70)
    [<c012004c>] (omap_hwmod_for_each) from [<c0e0cbf8>] (__omap_hwmod_setup_all+0x34/0x50)
    [<c0e0cbf8>] (__omap_hwmod_setup_all) from [<c0101bf0>] (do_one_initcall+0x134/0x15c)
    [<c0101bf0>] (do_one_initcall) from [<c0e00f88>] (kernel_init_freeable+0x1d4/0x290)
    [<c0e00f88>] (kernel_init_freeable) from [<c092adc8>] (kernel_init+0x18/0x11c)
    [<c092adc8>] (kernel_init) from [<c0107b08>] (ret_from_fork+0x14/0x2c)
    ---[ end trace 2f70114f3506be56 ]---
    cpuidle: using governor ladder
    cpuidle: using governor menu
    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 1 at /kernel-source//drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x2e0/0x344
    44000000.ocp:L3 Custom Error: MASTER M2 (64-bit) TARGET GPMC (Read): Data Access in User mode during Debug access
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper Tainted: G        W       4.12.28-eth-vehicle-variant #20
    Hardware name: Generic AM43 (Flattened Device Tree)
    [<c010fa08>] (unwind_backtrace) from [<c010c45c>] (show_stack+0x20/0x24)
    [<c010c45c>] (show_stack) from [<c04cc0d4>] (dump_stack+0x20/0x28)
    [<c04cc0d4>] (dump_stack) from [<c01324ac>] (__warn+0xec/0x108)
    [<c01324ac>] (__warn) from [<c0132510>] (warn_slowpath_fmt+0x48/0x50)
    [<c0132510>] (warn_slowpath_fmt) from [<c04fe370>] (l3_interrupt_handler+0x2e0/0x344)
    [<c04fe370>] (l3_interrupt_handler) from [<c0170fac>] (__handle_irq_event_percpu+0xd4/0x238)
    [<c0170fac>] (__handle_irq_event_percpu) from [<c017113c>] (handle_irq_event_percpu+0x2c/0x68)
    [<c017113c>] (handle_irq_event_percpu) from [<c01711e4>] (handle_irq_event+0x6c/0x90)
    [<c01711e4>] (handle_irq_event) from [<c0174a9c>] (handle_fasteoi_irq+0xc4/0x164)
    [<c0174a9c>] (handle_fasteoi_irq) from [<c01701d0>] (generic_handle_irq+0x28/0x38)
    [<c01701d0>] (generic_handle_irq) from [<c0170838>] (__handle_domain_irq+0xc0/0xdc)
    [<c0170838>] (__handle_domain_irq) from [<c0101544>] (gic_handle_irq+0x60/0x8c)
    [<c0101544>] (gic_handle_irq) from [<c093084c>] (__irq_svc+0x6c/0xa8)
    Exception stack(0xef11db58 to 0xef11dba0)
    db40:                                                       ef1c3300 ef1cef80
    db60: 00000000 00000000 ef1cef80 ef1c3300 00000000 00000000 00000015 ef1c3338
    db80: 60000013 ef11dbdc ef11dba8 ef11dba8 c0172ddc c0172d18 60000013 ffffffff
    [<c093084c>] (__irq_svc) from [<c0172d18>] (__setup_irq+0x548/0x66c)
    [<c0172d18>] (__setup_irq) from [<c0172fbc>] (request_threaded_irq+0xc4/0x17c)
    [<c0172fbc>] (request_threaded_irq) from [<c0175730>] (devm_request_threaded_irq+0x7c/0xb8)
    [<c0175730>] (devm_request_threaded_irq) from [<c04fe508>] (omap_l3_probe+0x134/0x214)
    [<c04fe508>] (omap_l3_probe) from [<c05d81fc>] (platform_drv_probe+0x60/0xac)
    [<c05d81fc>] (platform_drv_probe) from [<c05d63d4>] (driver_probe_device+0x214/0x2dc)
    [<c05d63d4>] (driver_probe_device) from [<c05d6644>] (__device_attach_driver+0xa4/0xbc)
    [<c05d6644>] (__device_attach_driver) from [<c05d4700>] (bus_for_each_drv+0x98/0xa0)
    [<c05d4700>] (bus_for_each_drv) from [<c05d6108>] (__device_attach+0xac/0x114)
    [<c05d6108>] (__device_attach) from [<c05d6678>] (device_initial_probe+0x1c/0x20)
    [<c05d6678>] (device_initial_probe) from [<c05d56a0>] (bus_probe_device+0x38/0x90)
    [<c05d56a0>] (bus_probe_device) from [<c05d3880>] (device_add+0x414/0x514)
    [<c05d3880>] (device_add) from [<c072f310>] (of_device_add+0x44/0x48)
    [<c072f310>] (of_device_add) from [<c072f868>] (of_platform_device_create_pdata+0x94/0xc4)
    [<c072f868>] (of_platform_device_create_pdata) from [<c072f940>] (of_platform_bus_create+0x84/0x1f8)
    [<c072f940>] (of_platform_bus_create) from [<c072fc2c>] (of_platform_populate+0x84/0xd8)
    [<c072fc2c>] (of_platform_populate) from [<c0e0fc24>] (pdata_quirks_init+0x68/0xa0)
    [<c0e0fc24>] (pdata_quirks_init) from [<c0e0f70c>] (omap_generic_init+0x1c/0x28)
    [<c0e0f70c>] (omap_generic_init) from [<c0e03ac4>] (customize_machine+0x2c/0x38)
    [<c0e03ac4>] (customize_machine) from [<c0101bf0>] (do_one_initcall+0x134/0x15c)
    [<c0101bf0>] (do_one_initcall) from [<c0e00f88>] (kernel_init_freeable+0x1d4/0x290)
    [<c0e00f88>] (kernel_init_freeable) from [<c092adc8>] (kernel_init+0x18/0x11c)
    [<c092adc8>] (kernel_init) from [<c0107b08>] (ret_from_fork+0x14/0x2c)
    ---[ end trace 2f70114f3506be57 ]---
    

    Any ideas? One note this is am4376HS chip (secure not unsecure). Thanks.

  • Hi Marek,

    You use kernel v4.12, which is not supported by TI. But please try to apply the following kernel patch along with your dts change of removing gpmc nodes.

    diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c                                                                                                                                           
    index 5f73b730d4fc..d27d3e6c4292 100644                                                                                                                                                                                                        
    --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c                                                                                                                                                                                               
    +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c                                                                                                                                                                                               
    @@ -964,7 +964,6 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {                                                                                                                                                     
            &am33xx_l4_ls__epwmss0,                                                                                                                                                                                                                
            &am33xx_l4_ls__epwmss1,                                                                                                                                                                                                                
            &am33xx_l4_ls__epwmss2,                                                                                                                                                                                                                
    -       &am33xx_l3_s__gpmc,                                                                                                                                                                                                                    
            &am33xx_l4_ls__mcspi0,                                                                                                                                                                                                                 
            &am33xx_l4_ls__mcspi1,                                                                                                                                                                                                                 
            &am33xx_l3_main__tptc0,
    
  • Hi Bin,

    ok thanks for hint, unfortunately it doesn't help. I'll open question on HS forum then. Thanks.

    BR,

    marek

  • Hi Marek,

    I also have the same problem as you, have you solved it?
    Looking forward to your reply.

    Best Regards,
    allen

  • Hi,

    unfortunately not. Got an advice to strip down all extra changes in custom dtb and add one by one and verify. This way it should be possible to trace down which component cause it and disable it. Disabling gpmc only as suggested above doesn't help. I didn't have time to look on it yet but will do in next few weeks so update status if will find something. Thanks and BR,

    marek