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.

PROCESSOR-SDK-AM335X: USB WiFi card hotplug error

Part Number: PROCESSOR-SDK-AM335X

I used the rt818etv wireless network card test, and the SDK(ti-sdk-am335x-evm-07.00.00.00) integration driver was used, and the following errors were reported after repeated hot insertion.

so,I also tested it in the latest SDK(ti-processor-sdk-linux-rt-am335x-evm-04.01.00.06), tt will still cause the kernel to crash

What should I do?

==============================================================================================================================

root@am335x-evm:~# [ 429.291678] usb 1-1: USB disconnect, device number 10
[ 430.299007] ------------[ cut here ]------------
[ 430.303985] WARNING: CPU: 0 PID: 362 at drivers/usb/musb/musb_host.c:129 musb_h_tx_flush_fifo+0x60/0x9c [musb_hdrc]()
[ 430.315209] Could not flush host TX2 fifo: csr: 2403
[ 430.320459] Modules linked in: r8188eu(C) g_mass_storage usb_f_mass_storage libcomposite configfs musb_dsps musb_hdrc ti_am335x_adc industrialio musb_am335x
[ 430.335321] CPU: 0 PID: 362 Comm: khubd Tainted: G C 3.12.10-rt15-ti2013.12.01 #13
[ 430.344242] Backtrace:
[ 430.346865] [<c0016c9c>] (dump_backtrace+0x0/0x10c) from [<c0016e38>] (show_stack+0x18/0x1c)
[ 430.355785] r6:bf022cfb r5:00000009 r4:dd46bcc0 r3:00208040
[ 430.361836] [<c0016e20>] (show_stack+0x0/0x1c) from [<c052edbc>] (dump_stack+0x20/0x28)
[ 430.370322] [<c052ed9c>] (dump_stack+0x0/0x28) from [<c004108c>] (warn_slowpath_common+0x6c/0x8c)
[ 430.379713] [<c0041020>] (warn_slowpath_common+0x0/0x8c) from [<c0041150>] (warn_slowpath_fmt+0x38/0x40)
[ 430.389744] r8:c078099c r7:dd1dc404 r6:00000000 r5:00002403 r4:e093e522
[ 430.396911] [<c0041118>] (warn_slowpath_fmt+0x0/0x40) from [<bf01bd38>] (musb_h_tx_flush_fifo+0x60/0x9c [musb_hdrc])
[ 430.408043] r3:00000002 r2:bf022d18
[ 430.411886] [<bf01bcd8>] (musb_h_tx_flush_fifo+0x0/0x9c [musb_hdrc]) from [<bf01d3ac>] (musb_cleanup_urb+0x88/0xd8 [musb_hdrc])
[ 430.424018] r8:00000000 r7:dd6d0c80 r6:dd773554 r5:e093e520 r4:dd1dc404
[ 430.431195] [<bf01d324>] (musb_cleanup_urb+0x0/0xd8 [musb_hdrc]) from [<bf01d4f0>] (musb_urb_dequeue+0xf4/0x110 [musb_hdrc])
[ 430.443084] [<bf01d3fc>] (musb_urb_dequeue+0x0/0x110 [musb_hdrc]) from [<c03bf880>] (unlink1+0xb4/0xc4)
[ 430.453027] [<c03bf7cc>] (unlink1+0x0/0xc4) from [<c03c0cb8>] (usb_hcd_flush_endpoint+0x64/0xf0)
[ 430.462316] r7:dd0fe200 r6:dba0c27c r5:dba0c26c r4:dd6d0c80
[ 430.468354] [<c03c0c54>] (usb_hcd_flush_endpoint+0x0/0xf0) from [<c03c32a8>] (usb_disable_endpoint+0x68/0x80)
[ 430.478836] r7:00000000 r6:00000000 r5:dba0c26c r4:dd55e000
[ 430.484875] [<c03c3240>] (usb_disable_endpoint+0x0/0x80) from [<c03c3300>] (usb_disable_interface+0x40/0x50)
[ 430.495264] r6:dd55e000 r5:d9c49048 r4:00000002 r3:dba0c26c
[ 430.501302] [<c03c32c0>] (usb_disable_interface+0x0/0x50) from [<c03c5444>] (usb_unbind_interface+0x5c/0x168)
[ 430.511783] r8:bf0feff4 r7:00000000 r6:dd3c1000 r5:dd55e000 r4:dd3c1020
r3:00000000
[ 430.520138] [<c03c53e8>] (usb_unbind_interface+0x0/0x168) from [<c031aae0>] (__device_release_driver+0x84/0xcc)
[ 430.530815] [<c031aa5c>] (__device_release_driver+0x0/0xcc) from [<c031ab4c>] (device_release_driver+0x24/0x30)
[ 430.541499] r5:dd3c1020 r4:dd3c1054
[ 430.545327] [<c031ab28>] (device_release_driver+0x0/0x30) from [<c031a60c>] (bus_remove_device+0xe0/0xf0)
[ 430.555442] r5:dd430040 r4:dd3c1020
[ 430.559267] [<c031a52c>] (bus_remove_device+0x0/0xf0) from [<c0317ed0>] (device_del+0x110/0x174)
[ 430.568556] r6:dd55e068 r5:00000000 r4:dd3c1020 r3:00000002
[ 430.574601] [<c0317dc0>] (device_del+0x0/0x174) from [<c03c3394>] (usb_disable_device+0x84/0x19c)
[ 430.583982] r6:00000000 r5:00000000 r4:dd55e000 r3:0000000d
[ 430.590016] [<c03c3310>] (usb_disable_device+0x0/0x19c) from [<c03bacd0>] (usb_disconnect+0x88/0x148)
[ 430.599775] [<c03bac48>] (usb_disconnect+0x0/0x148) from [<c03bd43c>] (hub_thread+0x60c/0xea4)
[ 430.608895] [<c03bce30>] (hub_thread+0x0/0xea4) from [<c005a760>] (kthread+0xac/0xb8)
[ 430.617196] [<c005a6b4>] (kthread+0x0/0xb8) from [<c0013b98>] (ret_from_fork+0x14/0x3c)
[ 430.625682] r7:00000000 r6:00000000 r5:c005a6b4 r4:dd07de5c
[ 430.631724] ---[ end trace 0000000000000002 ]---
[ 431.644290] ------------[ cut here ]------------

  • The software team have been notified. They will respond here.
  • The log should be harmless. Do you have any functional issue with the network card after the kernel log happens? If not, the log can be ignored. If you do see any functional issue, please describe the symptom and provide any log.
  • When this error occurs, the terminal repeatedly repeats the above error and the network is disconnected.Occasionally, the debug terminal will be jammed

    ========================================================================================================================

    root@am335x-evm:~# if[ 2850.471371] R8188EU: ERROR indicate disassoc
    config
    root@am335x-evm:~# udhcpc -q -i wlan0[ 2859.812512] musb_ep_program 897: broken !rx_reinit, ep2 csr a203
    [ 2859.818908] ------------[ cut here ]------------
    [ 2859.818915] Kernel BUG at bf021ba8 [verbose debug info unavailable]
    [ 2859.818922] Internal error: Oops - BUG: 0 [#1] PREEMPT ARM
    [ 2859.818961] Modules linked in: r8188eu(C) g_mass_storage usb_f_mass_storage libcomposite configfs musb_dsps musb_hdrc ti_am335x_adc industrialio musb_am335x
    [ 2859.818978] CPU: 0 PID: 3462 Comm: RTW_CMD_THREAD Tainted: G C 3.12.10-rt15-ti2013.12.01 #1
    [ 2859.818987] task: dc1fd680 ti: dd142000 task.ti: dd142000
    [ 2859.819058] PC is at cppi41_dma_channel_program+0x30/0x21c [musb_hdrc]
    [ 2859.819080] LR is at musb_start_urb+0x730/0x858 [musb_hdrc]
    [ 2859.819091] pc : [<bf021ba8>] lr : [<bf01c90c>] psr: 600f0013
    [ 2859.819091] sp : dd143c60 ip : dd143cb0 fp : dd143cac
    [ 2859.819096] r10: dd42f980 r9 : 9c12c048 r8 : dd712068
    [ 2859.819104] r7 : 00000200 r6 : dd712068 r5 : 00003c00 r4 : dd712068
    [ 2859.819109] r3 : 00000002 r2 : 00000001 r1 : 00000200 r0 : 00000000
    [ 2859.819118] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
    [ 2859.819126] Control: 10c5387d Table: 9a450019 DAC: 00000017
    [ 2859.819133] Process RTW_CMD_THREAD (pid: 3462, stack limit = 0xdd142248)
    [ 2859.819141] Stack: (0xdd143c60 to 0xdd144000)
    [ 2859.819156] 3c60: dd1dc010 dd712068 00000002 dd42f980 dd143c9c dd143c80 c052ca94 c006a0e8
    [ 2859.819170] 3c80: bf022d79 dd1dc404 dd6d4b00 00000200 dd1dc010 dd712068 00000002 dd42f980
    [ 2859.819183] 3ca0: dd143d1c dd143cb0 bf01c90c bf021b84 00003c00 c0044a40 dd143cdc dd143cc8
    [ 2859.819196] 3cc0: c0044da8 e0946400 dc12c048 00000001 00000200 00000000 00000080 dd712000
    [ 2859.819209] 3ce0: 00003c00 dd1dc404 dd6d4b00 e0946400 dd143d1c dd6d4b00 dd1dc404 00000080
    [ 2859.819222] 3d00: dd1dc010 00000000 00000001 00000001 dd143d4c dd143d20 bf01d308 bf01c1e8
    [ 2859.819235] 3d20: 00000080 dd1dc404 e0946520 dd712068 dd42f380 00000000 dd404a00 00000080
    [ 2859.819248] 3d40: dd143d74 dd143d50 bf01d3f4 bf01d110 dd6d4b00 dd42f380 dd1dc010 c0009d80
    [ 2859.819261] 3d60: 00000001 00000000 dd143d9c dd143d78 bf01d4f0 bf01d330 dd6f5000 dd42f380
    [ 2859.819275] 3d80: fffffffe fffffffe 00000000 e259d384 dd143dbc dd143da0 c03bf880 bf01d408
    [ 2859.819288] 3da0: 00000000 dd42f380 fffffffe 0003e724 dd143ddc dd143dc0 c03c0c34 c03bf7d8
    [ 2859.819301] 3dc0: 00000001 dd42f380 dd42f38c 00000001 dd143e14 dd143de0 c03c1a98 c03c0be0
    [ 2859.819314] 3de0: c0532b50 c05311f0 00036cf8 ffffffff 00000924 c0257b40 00000001 dd23eab8
    [ 2859.819327] 3e00: dd23eb70 00000001 dd143e34 dd143e18 bf0e9a84 c03c1a54 bf0e9a28 e259c000
    [ 2859.819341] 3e20: 0003e7ec 00004094 dd143e44 dd143e38 bf085840 bf0e9a34 dd143e5c dd143e48
    [ 2859.819354] 3e40: bf0d32c4 bf08582c bf0d3280 e259c000 dd143e6c dd143e60 bf0bd94c bf0d328c
    [ 2859.819368] 3e60: dd143e84 dd143e70 bf0e8ebc bf0bd938 bf0e8e3c e259c000 dd143e9c dd143e88
    [ 2859.819381] 3e80: bf0e641c bf0e8e48 bf089938 e259c000 dd143ebc dd143ea0 bf0e64b8 bf0e63d4
    [ 2859.819394] 3ea0: 00000001 e259f1c8 e259c000 00000000 dd143ed4 dd143ec0 bf0a04e0 bf0e6458
    [ 2859.819408] 3ec0: e259f1c8 e259c000 dd143ef4 dd143ed8 bf0a0828 bf0a03e4 e259c000 dd404a00
    [ 2859.819421] 3ee0: e259c000 dd142000 dd143f2c dd143ef8 bf07f4a0 bf0a06ac bf07bb04 c05324c4
    [ 2859.819435] 3f00: e259d378 e259d378 dd143f2c dd143f18 dc5bfe40 e259d378 e259c000 dd142000
    [ 2859.819448] 3f20: dd143f64 dd143f30 bf07c940 bf07f42c bf07c784 00000000 00000000 dd4c7d54
    [ 2859.819461] 3f40: 00000000 e259c000 bf07c784 00000000 00000000 00000000 dd143fac dd143f68
    [ 2859.819474] 3f60: c005a760 bf07c790 dd143f94 00000000 c0063034 e259c000 00000000 dd143f7c
    [ 2859.819487] 3f80: dd143f7c 00000000 dd143f88 dd143f88 dd4c7d54 c005a6b4 00000000 00000000
    [ 2859.819499] 3fa0: 00000000 dd143fb0 c0013b98 c005a6c0 00000000 00000000 00000000 00000000
    [ 2859.819510] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 2859.819522] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 a653fff9 2e4cbf5b
    [ 2859.819528] Backtrace:
    [ 2859.819583] [<bf021b78>] (cppi41_dma_channel_program+0x0/0x21c [musb_hdrc]) from [<bf01c90c>] (musb_start_urb+0x730/0x858 [musb_hdrc])
    [ 2859.819625] [<bf01c1dc>] (musb_start_urb+0x0/0x858 [musb_hdrc]) from [<bf01d308>] (musb_advance_schedule+0x204/0x220 [musb_hdrc])
    [ 2859.819667] [<bf01d104>] (musb_advance_schedule+0x0/0x220 [musb_hdrc]) from [<bf01d3f4>] (musb_cleanup_urb+0xd0/0xd8 [musb_hdrc])
    [ 2859.819710] [<bf01d324>] (musb_cleanup_urb+0x0/0xd8 [musb_hdrc]) from [<bf01d4f0>] (musb_urb_dequeue+0xf4/0x110 [musb_hdrc])
    [ 2859.819749] [<bf01d3fc>] (musb_urb_dequeue+0x0/0x110 [musb_hdrc]) from [<c03bf880>] (unlink1+0xb4/0xc4)
    [ 2859.819764] [<c03bf7cc>] (unlink1+0x0/0xc4) from [<c03c0c34>] (usb_hcd_unlink_urb+0x60/0x80)
    [ 2859.819780] r7:0003e724 r6:fffffffe r5:dd42f380 r4:00000000
    [ 2859.819796] [<c03c0bd4>] (usb_hcd_unlink_urb+0x0/0x80) from [<c03c1a98>] (usb_kill_urb+0x50/0xec)
    [ 2859.819810] r6:00000001 r5:dd42f38c r4:dd42f380 r3:00000001
    [ 2859.820275] [<c03c1a48>] (usb_kill_urb+0x0/0xec) from [<bf0e9a84>] (usb_read_port_cancel+0x5c/0x7c [r8188eu])
    [ 2859.820290] r6:00000001 r5:dd23eb70 r4:dd23eab8
    [ 2859.820632] [<bf0e9a28>] (usb_read_port_cancel+0x0/0x7c [r8188eu]) from [<bf085840>] (_rtw_read_port_cancel+0x20/0x24 [r8188eu])
    [ 2859.820647] r6:00004094 r5:0003e7ec r4:e259c000 r3:bf0e9a28
    [ 2859.820948] [<bf085820>] (_rtw_read_port_cancel+0x0/0x24 [r8188eu]) from [<bf0d32c4>] (rtl8188eu_inirp_deinit+0x44/0x8c [r8188eu])
    [ 2859.821313] [<bf0d3280>] (rtl8188eu_inirp_deinit+0x0/0x8c [r8188eu]) from [<bf0bd94c>] (rtw_hal_inirp_deinit+0x20/0x30 [r8188eu])
    [ 2859.821323] r4:e259c000 r3:bf0d3280
    [ 2859.821702] [<bf0bd92c>] (rtw_hal_inirp_deinit+0x0/0x30 [r8188eu]) from [<bf0e8ebc>] (usb_intf_stop+0x80/0xd4 [r8188eu])
    [ 2859.822110] [<bf0e8e3c>] (usb_intf_stop+0x0/0xd4 [r8188eu]) from [<bf0e641c>] (rtw_ips_dev_unload+0x54/0x84 [r8188eu])
    [ 2859.822120] r4:e259c000 r3:bf0e8e3c
    [ 2859.822527] [<bf0e63c8>] (rtw_ips_dev_unload+0x0/0x84 [r8188eu]) from [<bf0e64b8>] (rtw_ips_pwr_down+0x6c/0xb4 [r8188eu])
    [ 2859.822536] r4:e259c000 r3:bf089938
    [ 2859.822881] [<bf0e644c>] (rtw_ips_pwr_down+0x0/0xb4 [r8188eu]) from [<bf0a04e0>] (ips_enter+0x108/0x13c [r8188eu])
    [ 2859.822895] r6:00000000 r5:e259c000 r4:e259f1c8 r3:00000001
    [ 2859.823175] [<bf0a03d8>] (ips_enter+0x0/0x13c [r8188eu]) from [<bf0a0828>] (rtw_ps_processor+0x188/0x248 [r8188eu])
    [ 2859.823185] r5:e259c000 r4:e259f1c8
    [ 2859.823421] [<bf0a06a0>] (rtw_ps_processor+0x0/0x248 [r8188eu]) from [<bf07f4a0>] (rtw_drvextra_cmd_hdl+0x80/0x1fc [r8188eu])
    [ 2859.823436] r7:dd142000 r6:e259c000 r5:dd404a00 r4:e259c000
    [ 2859.823630] [<bf07f420>] (rtw_drvextra_cmd_hdl+0x0/0x1fc [r8188eu]) from [<bf07c940>] (rtw_cmd_thread+0x1bc/0x328 [r8188eu])
    [ 2859.823645] r7:dd142000 r6:e259c000 r5:e259d378 r4:dc5bfe40
    [ 2859.823755] [<bf07c784>] (rtw_cmd_thread+0x0/0x328 [r8188eu]) from [<c005a760>] (kthread+0xac/0xb8)
    [ 2859.823782] [<c005a6b4>] (kthread+0x0/0xb8) from [<c0013b98>] (ret_from_fork+0x14/0x3c)
    [ 2859.823797] r7:00000000 r6:00000000 r5:c005a6b4 r4:dd4c7d54
    [ 2859.823810] Code: e3d30002 e1a07001 e59b5004 1a000000 (e7f001f2)
    [ 2860.503792] ---[ end trace 0000000000000002 ]---
  • LL shutor said:
    When this error occurs, the terminal repeatedly repeats the above error and the network is disconnected.

    The error should only happen once with Processor SDK v4.1.0.6, but not repeatly. Please don't test with Sitara SDK v7.0, which is very old and no longer supported by TI.

    LL shutor said:
    root@am335x-evm:~# udhcpc -q -i wlan0[ 2859.812512] musb_ep_program 897: broken !rx_reinit, ep2 csr a203
    [ 2859.818908] ------------[ cut here ]------------

    Can you please confirm if this error happens with Processor SDK v4.1.0.6?

  • I am using Sitara SDK v7.0, because the wayland weston problem is not solved(this problem has been handed over to colleagues), we can't use SDK v4.1.0.6, But I'll test this with SDK v4.1.0.6
  • Have you got the test result with SDK v4.1.0.6 yet?