Other Parts Discussed in Thread: TPS65217
Hi All,
TI_SDK used for our development purpose.
TI_SDK :- http://software-dl.ti.com/processor-sdk-linux/esd/AM335X/05_00_00_15/index_FDS.html
Compiler:- gcc-linaro-7.2.1-2017.11
Yocto Version :- Rocko
Linux Kernel details :- 4.14.71
Wifi Dongle Details :- Dlink (Dwa171 - Rev C)
Observing and issue w.r.t to cppi41_dma_channel_program where we were able to reproduce the issue with below steps
Our device running with Yocto build
Deivce running without booting for ~2 days
I was copying few log files from Logs (on of the device partition) folder and simultaneously was copying some new screenlogs into Logs paritition folder. So both rx and tx on wlan0 were stressed. Undefined instruction - Oops happened after many iterations of copying logs into GW.
Log:-
Internal error: Oops - undefined instruction: 0 [#1] PREEMPT ARM
[166426.830246] Modules linked in: usb_f_acm u_serial usb_f_rndis u_ether libcomposite 8821cu(O) usb_storage scsi_mod musb_dsps musb_hdrc udc_core phy_am335x usbcore phy_generic usb_common phy_am335x_control sha512_generic sha512_arm sha256_generic sha1_generic sha1_arm md5 des_generic cbc wkup_m3_rproc pm33xx wkup_m3_ipc remoteproc omap_aes_driver omap_sham crypto_engine omap_crypto ti_emif_sram at24 usb251xb rtc_omap omap_wdt musb_am335x sch_fq_codel cryptodev(O)
[166426.830321] CPU: 0 PID: 8 Comm: ktimersoftd/0 Tainted: G O 4.14.71-rt44-g6a3dcd5e69 #1
[166426.830324] Hardware name: Generic AM33XX (Flattened Device Tree)
[166426.830330] task: dc0ff100 task.stack: dc118000
[166426.830464] PC is at cppi41_dma_channel_program+0x31c/0x50c [musb_hdrc]
[166426.830489] LR is at ring_buffer_unlock_commit+0x20/0xfc
[166426.830492] pc : [<bf1febf8>] lr : [<c01cb8c8>] psr: 60080013
[166426.830496] sp : dc119bd8 ip : 000001f4 fp : dc119c34
[166426.830499] r10: db519600 r9 : db6f1848 r8 : 00000200
[166426.830502] r7 : 00000000 r6 : 00000c76 r5 : db6f1848 r4 : bf1fe8dc
[166426.830506] r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : 00000004
[166426.830512] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[166426.830516] Control: 10c5387d Table: 9b094019 DAC: 00000051
[166426.830520] Process ktimersoftd/0 (pid: 8, stack limit = 0xdc118208)
[166426.830525] Stack: (0xdc119bd8 to 0xdc11a000)
[166426.830531] 9bc0: bf202684 00000002
[166426.830539] 9be0: c014de80 c017e41c bf1f4e1c bf1f4c88 d98c4e00 99980000 d98a6010 e0df2c10
[166426.830547] 9c00: bf20470c e0df2c10 00002500 bf1fe8dc d98a64f0 db6c1e80 00000000 db6f1848
[166426.830555] 9c20: 00000200 db519600 dc119c64 dc119c38 bf1f4e1c bf1fe8e8 00000c76 d98a6010
[166426.830563] 9c40: d98a6010 db519600 bf204704 00000200 bf204700 00000002 dc119cfc dc119c68
[166426.830570] 9c60: bf1f528c bf1f4d9c 00000000 00000c76 00000004 00000008 bf201544 00000002
[166426.830578] 9c80: 00000000 00000c76 db596300 00000000 00000000 bf1efeac e0df2c00 00000000
[166426.830586] 9ca0: 0000ffff 00000200 d98a7010 db6f1848 d9980000 db6c1e80 00000c76 bf20470c
[166426.830594] 9cc0: e0df2c00 d98a64f0 db273380 d98a64f0 bf201604 db519600 00000000 db596300
[166426.830602] 9ce0: d98a64f0 d98a64f0 d98a6010 00000000 dc119d3c dc119d00 bf1f5e74 bf1f4e94
[166426.830609] 9d00: db273380 bf1f0470 00000000 00000001 00000051 00002100 db519600 db6f1848
[166426.830617] 9d20: 00000c76 db596314 d98a6010 00000000 dc119dc4 dc119d40 bf1f7c44 bf1f5d2c
[166426.830625] 9d40: bf201808 dc0030c0 d7b8917c bf1f00b4 000001c0 d98a6330 bf204228 ffffeffe
[166426.830633] 9d60: fffffbfe bf204700 e0df2c00 00000000 bf20470c 00000002 00000003 00000000
[166426.830640] 9d80: d98a64f0 bf204704 db596300 e0df2c10 00000c76 00000000 dc0030c0 db6f1848
[166426.830648] 9da0: d98a64f0 d98a6010 d6257154 e0df2c10 bf1ff538 00000000 dc119dd4 dc119dc8
[166426.830656] 9dc0: bf1f00b4 bf1f76f8 dc119e24 dc119dd8 bf1fefbc bf1f0064 e0df2c10 bf1fe01c
[166426.830664] 9de0: db6f1848 db6c1ed8 e0df2c10 bf1ee058 db6f1848 db6c1ed8 db6c1ea8 db6f1884
[166426.830672] 9e00: db6c1e9c db6f1848 db6c1ed8 db6c1ea8 d98a6010 ffffe000 dc119e54 dc119e28
[166426.830679] 9e20: bf1ff538 bf1fedf4 dc119e54 dc119e38 c0e1c7b8 db6c1ea8 c0ea5370 c0ea535c
[166426.830687] 9e40: bf1ff4a4 ffffe000 dc119ebc dc119e58 c018e098 bf1ff4b0 c0ea4c98 c0bf1058
[166426.830695] 9e60: 0000975d 43fa0bb1 c0e1c6c0 dc119e84 43fa0bb1 0000975d 60080013 c0ea5384
[166426.830703] 9e80: ffffffff 00000020 43fa0bb1 0000975d c014db50 00000000 00000000 83ec3e00
[166426.830711] 9ea0: 1629dde0 c0e1c6c0 60080013 ffffe000 dc119ee4 dc119ec0 c018e51c c018dfa8
[166426.830718] 9ec0: 00000008 00000020 c0e1127c 04208140 00000100 c0ea9e60 dc119f34 dc119ee8
[166426.830726] 9ee0: c0130dc4 c018e4a8 c0150440 60080013 dc119f74 dc119f00 c0e151a8 00000000
[166426.830734] 9f00: c0ea4fec c0ea9e00 dc0ff100 ffffe000 ffffe000 c0e10ec0 00000001 00000000
[166426.830742] 9f20: c015040c dc101df4 dc119f4c dc119f38 c0131170 c0130be4 dc0cca80 ffffe000
[166426.830750] 9f40: dc119f74 dc119f50 c01506c8 c0131140 dc0ccb40 dc0ccb00 00000000 dc118000
[166426.830757] 9f60: dc0cca80 c015040c dc119fac dc119f78 c014c320 c0150418 dc0ccb58 dc0ccb58
[166426.830765] 9f80: 00000000 dc0ccb00 c014c1b8 00000000 00000000 00000000 00000000 00000000
[166426.830773] 9fa0: 00000000 dc119fb0 c0107db0 c014c1c4 00000000 00000000 00000000 00000000
[166426.830780] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[166426.830787] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[166426.830788] Backtrace:
[166426.830868] [<bf1fe8dc>] (cppi41_dma_channel_program [musb_hdrc]) from [<bf1f4e1c>] (musb_tx_dma_program+0x8c/0xf8 [musb_hdrc])
[166426.830878] r10:db519600 r9:00000200 r8:db6f1848 r7:00000000 r6:db6c1e80 r5:d98a64f0
[166426.830881] r4:bf1fe8dc
[166426.830946] [<bf1f4d90>] (musb_tx_dma_program [musb_hdrc]) from [<bf1f528c>] (musb_start_urb+0x404/0xe98 [musb_hdrc])
[166426.830953] r9:00000002 r8:bf204700 r7:00000200 r6:bf204704 r5:db519600 r4:d98a6010
[166426.831017] [<bf1f4e88>] (musb_start_urb [musb_hdrc]) from [<bf1f5e74>] (musb_advance_schedule+0x154/0x2ac [musb_hdrc])
[166426.831024] r10:00000000 r9:d98a6010 r8:d98a64f0 r7:d98a64f0 r6:db596300 r5:00000000
[166426.831027] r4:db519600
[166426.831091] [<bf1f5d20>] (musb_advance_schedule [musb_hdrc]) from [<bf1f7c44>] (musb_host_tx+0x558/0x904 [musb_hdrc])
[166426.831098] r10:00000000 r9:d98a6010 r8:db596314 r7:00000c76 r6:db6f1848 r5:db519600
[166426.831101] r4:00002100
[166426.831164] [<bf1f76ec>] (musb_host_tx [musb_hdrc]) from [<bf1f00b4>] (musb_dma_completion+0x5c/0x88 [musb_hdrc])
[166426.831171] r10:00000000 r9:bf1ff538 r8:e0df2c10 r7:d6257154 r6:d98a6010 r5:d98a64f0
[166426.831174] r4:db6f1848
[166426.831237] [<bf1f0058>] (musb_dma_completion [musb_hdrc]) from [<bf1fefbc>] (cppi41_trans_done+0x1d4/0x3c4 [musb_hdrc])
[166426.831302] [<bf1fede8>] (cppi41_trans_done [musb_hdrc]) from [<bf1ff538>] (cppi41_recheck_tx_req+0x94/0xf8 [musb_hdrc])
[166426.831309] r10:ffffe000 r9:d98a6010 r8:db6c1ea8 r7:db6c1ed8 r6:db6f1848 r5:db6c1e9c
[166426.831312] r4:db6f1884
[166426.831359] [<bf1ff4a4>] (cppi41_recheck_tx_req [musb_hdrc]) from [<c018e098>] (__hrtimer_run_queues.constprop.4+0xfc/0x3d0)
[166426.831366] r9:ffffe000 r8:bf1ff4a4 r7:c0ea535c r6:c0ea5370 r5:db6c1ea8 r4:c0e1c7b8
[166426.831375] [<c018df9c>] (__hrtimer_run_queues.constprop.4) from [<c018e51c>] (hrtimer_run_softirq+0x80/0x118)
[166426.831383] r10:ffffe000 r9:60080013 r8:c0e1c6c0 r7:1629dde0 r6:83ec3e00 r5:00000000
[166426.831385] r4:00000000
[166426.831395] [<c018e49c>] (hrtimer_run_softirq) from [<c0130dc4>] (do_current_softirqs+0x1ec/0x3c4)
[166426.831402] r9:c0ea9e60 r8:00000100 r7:04208140 r6:c0e1127c r5:00000020 r4:00000008
[166426.831410] [<c0130bd8>] (do_current_softirqs) from [<c0131170>] (run_ksoftirqd+0x3c/0x7c)
[166426.831417] r10:dc101df4 r9:c015040c r8:00000000 r7:00000001 r6:c0e10ec0 r5:ffffe000
[166426.831420] r4:ffffe000
[166426.831428] [<c0131134>] (run_ksoftirqd) from [<c01506c8>] (smpboot_thread_fn+0x2bc/0x2c0)
[166426.831431] r5:ffffe000 r4:dc0cca80
[166426.831441] [<c015040c>] (smpboot_thread_fn) from [<c014c320>] (kthread+0x168/0x170)
[166426.831448] r9:c015040c r8:dc0cca80 r7:dc118000 r6:00000000 r5:dc0ccb00 r4:dc0ccb40
[166426.831462] [<c014c1b8>] (kthread) from [<c0107db0>] (ret_from_fork+0x14/0x24)
[166426.831470] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c014c1b8
[166426.831472] r4:dc0ccb00
[166426.831482] Code: e3a01001 e1a00004 ebfffd51 eaffff89 (e7f001f2)
Please share us some inputs to resolve this issue.