kworker fails during boot?

Hello,
I am using the Yocto “stock” image for BBB (kirkstone). After building the image, every time I reboot the board I get an issue with kworker as presented in line 307 and onward- the board then does not boot:

Boot log: U-Boot SPL 2023.04-gb0d717b732 (Dec 06 2023 - 15:11:45 +0000)Trying to boot fr - Pastebin.com

This happens always when I run a reboot. This happens sometimes when I restart via power recycle… What could be the root cause of this? I would appreciate all help.

Further tests show that it seems that this happens during boot:

  1. After first boot up after image burning,
  2. Each time the device is restarted without a halt.

Once this happens, I need to re-power cycle in a loop, until the image boots again. Once this happens, a “dirty” power recycle will cause this again. Given the above log, the abnormal part starts at line 277:

[   11.196823] 8<--- cut here ---
[   11.199991] Unhandled fault: external abort on non-linefetch (0x1008) at 0xe036f010
[   11.207867] [e036f010] *pgd=839bd811, *pte=47400653, *ppte=47400453
[   11.214340] Internal error: : 1008 [#1] PREEMPT SMP ARM
[   11.219719] Modules linked in:
[   11.222864] CPU: 0 PID: 23 Comm: kworker/u2:1 Not tainted 6.1.46+ #1
[   11.229403] Hardware name: Generic AM33XX (Flattened Device Tree)
[   11.235670] Workqueue: events_unbound deferred_probe_work_func
[   11.241692] PC is at sysc_reset+0x12c/0x210
[   11.246009] LR is at sysc_probe+0xf90/0x1560
[   11.250401] pc : [<c091bc48>]    lr : [<c091cef4>]    psr: 20000013
[   11.256846] sp : e0065be0  ip : 00000001  fp : c108f5b8
[   11.262213] r10: 00000001  r9 : c108f5b8  r8 : 00000000
[   11.267584] r7 : c23360c0  r6 : e036f010  r5 : 00000015  r4 : c3b9d640
[   11.274294] r3 : e036f010  r2 : 00000014  r1 : 10002900  r0 : e036f000
[   11.281004] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   11.288347] Control: 10c5387d  Table: 80004019  DAC: 00000051
[   11.294253] Register r0 information: 0-page vmalloc region starting at 0xe036f000 allocated at devm_ioremap+0x4c
[   11.305192] Register r1 information: non-paged memory
[   11.310391] Register r2 information: non-paged memory
[   11.315588] Register r3 information: 0-page vmalloc region starting at 0xe036f000 allocated at devm_ioremap+0x4c
[   11.326513] Register r4 information: slab kmalloc-256 start c3b9d600 pointer offset 64 size 256
[   11.335490] Register r5 information: non-paged memory
[   11.340686] Register r6 information: 0-page vmalloc region starting at 0xe036f000 allocated at devm_ioremap+0x4c
[   11.351607] Register r7 information: slab task_struct start c23360c0 pointer offset 0
[   11.359680] Register r8 information: NULL pointer
[   11.364519] Register r9 information: non-slab/vmalloc memory
[   11.370342] Register r10 information: non-paged memory
[   11.375629] Register r11 information: non-slab/vmalloc memory
[   11.381539] Register r12 information: non-paged memory
[   11.386823] Process kworker/u2:1 (pid: 23, stack limit = 0x(ptrval))
[   11.393361] Stack: (0xe0065be0 to 0xe0066000)
[   11.397845] 5be0: c3b9d640 c1806b00 c3b83c10 c091cef4 00000001 00000000 c1617a4c c1323b1c
[   11.406253] 5c00: c3b83c10 c1806b00 00000001 c3b83c10 c23360c0 c13239c8 00000001 00000001
[   11.414665] 5c20: 00000003 27a61206 00000000 00000000 c3b83c10 c1704234 00000000 c23360c0
[   11.423076] 5c40: df95a084 00000000 c1711ab4 c0a90878 c3b83c10 00000000 c1704234 c0a8d95c
[   11.431486] 5c60: c3b83d10 c0a9d6f8 c3b83c10 c3b83c10 c1704234 c3b83c10 00000059 c0a8dd0c
[   11.439896] 5c80: c1711ab4 c0fd9f94 c180dcac c1704234 c3b83c10 00000059 c23360c0 c0a8de98
[   11.448307] 5ca0: 00000001 c1704234 e0065cfc c3b83c10 c23360c0 c0a8e570 00000000 e0065cfc
[   11.456718] 5cc0: c23360c0 c0a8e4d0 c23360c0 c0a8b65c c3b83c54 c215176c c24a6f38 27a61206
[   11.465131] 5ce0: 00000001 c3b83c10 00000001 c23360c0 c3b83c54 c0a8e158 df95aee0 c3b83c10
[   11.473542] 5d00: 00000001 27a61206 df95a090 c3b83c10 c1712048 c3b83c10 c21c3010 c0a8c9f8
[   11.481954] 5d20: c3b83c10 00000000 c180dc80 c0a8a09c 00000200 00000000 00000000 00000000
[   11.490368] 5d40: 00000000 27a61206 00000001 c3b83c00 c21c3010 00000000 c1617a4c df95a0dc
[   11.498779] 5d60: 00000000 c23360c0 00000001 c0cfd924 df95a078 c1617980 c1617a30 00000000
[   11.507189] 5d80: c1617a4c c0cfdc14 00000000 27a61206 00000000 00000000 c21c3010 00000001
[   11.515600] 5da0: c21c3010 47400000 47400003 ff8f5114 00000200 00000000 00000000 00000000
[   11.524012] 5dc0: 00000000 27a61206 60000013 df95a078 df92ef30 00000000 c1617980 c21c3010
[   11.532421] 5de0: 00000001 00000000 c202b80d c0cfdf44 00000001 c1711df4 c21c3010 df92ef30
[   11.540835] 5e00: c1617980 00000000 c1711df4 c135026c c1781f10 c0919954 00000000 c21c3010
[   11.549248] 5e20: c1704150 c0a90878 c21c3010 00000000 c1704150 c0a8d95c c21c3110 c0a9d6f8
[   11.557660] 5e40: c21c3010 c21c3010 c1704150 c21c3010 00000001 c0a8dd0c c202b80d c0fd9f94
[   11.566073] 5e60: c180dcac c1704150 c21c3010 00000001 c1711df4 c0a8de98 00000001 c1704150
[   11.574483] 5e80: e0065ed4 c21c3010 c1711df4 c0a8e570 00000000 e0065ed4 c23360c0 c0a8e4d0
[   11.582893] 5ea0: c1711df4 c0a8b65c c21c3054 c215176c c24a64b8 27a61206 fffffff3 c21c3010
[   11.591303] 5ec0: 00000001 c23360c0 c21c3054 c0a8e158 c21c3010 c21c3010 00000001 27a61206
[   11.599713] 5ee0: 00000000 c2221954 c1712048 c21c3010 c1711d9c c0a8c9f8 c2221954 c21c3010
[   11.608124] 5f00: c1711d98 c0a8d43c c1711dc8 c230a900 c2006a00 c202b800 00000000 00000040
[   11.616536] 5f20: c23360c0 c01511a0 df918980 c23360c0 c2006a00 c0fd9bd4 e0009e9c c230a900
[   11.624944] 5f40: c2006a00 c230a918 c2006a1c c1604d40 00000088 c23360c0 c2006a00 c0151a4c
[   11.633354] 5f60: 00000000 c1767ce4 00000000 c2317c00 c23360c0 c015186c c230a900 c2317d40
[   11.641765] 5f80: e0029ebc 00000000 00000000 c0158ddc c2317c00 c0158cec 00000000 00000000
[   11.650175] 5fa0: 00000000 00000000 00000000 c0100148 00000000 00000000 00000000 00000000
[   11.658586] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   11.667001] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   11.675426]  sysc_reset from sysc_probe+0xf90/0x1560
[   11.680541]  sysc_probe from platform_probe+0x64/0xc4
[   11.685750]  platform_probe from really_probe+0xd8/0x3f4
[   11.691220]  really_probe from __driver_probe_device+0x94/0x1e8
[   11.697312]  __driver_probe_device from driver_probe_device+0x38/0xc8
[   11.703941]  driver_probe_device from __device_attach_driver+0xa0/0x114
[   11.710750]  __device_attach_driver from bus_for_each_drv+0x84/0xc8
[   11.717216]  bus_for_each_drv from __device_attach+0xb0/0x200
[   11.723137]  __device_attach from bus_probe_device+0x8c/0x94
[   11.728961]  bus_probe_device from device_add+0x3c4/0x7e0
[   11.734522]  device_add from of_platform_device_create_pdata+0x98/0xc8
[   11.741266]  of_platform_device_create_pdata from of_platform_bus_create+0x1d4/0x338
[   11.749249]  of_platform_bus_create from of_platform_populate+0x80/0x124
[   11.756152]  of_platform_populate from simple_pm_bus_probe+0x9c/0xc4
[   11.762695]  simple_pm_bus_probe from platform_probe+0x64/0xc4
[   11.768702]  platform_probe from really_probe+0xd8/0x3f4
[   11.774169]  really_probe from __driver_probe_device+0x94/0x1e8
[   11.780264]  __driver_probe_device from driver_probe_device+0x38/0xc8
[   11.786892]  driver_probe_device from __device_attach_driver+0xa0/0x114
[   11.793701]  __device_attach_driver from bus_for_each_drv+0x84/0xc8
[   11.800159]  bus_for_each_drv from __device_attach+0xb0/0x200
[   11.806078]  __device_attach from bus_probe_device+0x8c/0x94
[   11.811902]  bus_probe_device from deferred_probe_work_func+0xa4/0xe8
[   11.818530]  deferred_probe_work_func from process_one_work+0x1e0/0x4f4
[   11.825355]  process_one_work from worker_thread+0x1e0/0x4d0
[   11.831190]  worker_thread from kthread+0xf0/0x120
[   11.836135]  kthread from ret_from_fork+0x14/0x2c
[   11.840981] Exception stack(0xe0065fb0 to 0xe0065ff8)
[   11.846175] 5fa0:                                     00000000 00000000 00000000 00000000
[   11.854587] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   11.863000] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   11.869808] Code: e5865000 e3530000 baffffd0 e0803003 (e5933000)
[   11.876073] ---[ end trace 0000000000000000 ]---
[   11.880821] note: kworker/u2:1[23] exited with irqs disabled

What could be wrong with this image…?

For sanity check, I have removed the meta-ti-bsp and ‘meta-ti-extras’ from the bitbake layers. I added the meta-yocto-bsp back. This problem does not occur anymore and the image always boots…

Same problem using meta-ti-bsp.

Thanks for the info @marcel85 . I confirmed this issue with another tester as well. No ack from the meta-ti mailing list though…