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.

AM335x wl18xx wlcore: ERROR ELP wakeup timeout!

Other Parts Discussed in Thread: AM3352, WL1271

Hi all,


I've a problem with using wl18xx with our AM3352 board and wifi

wl18xx is connected to mmc3 irq pin is configured the right way, interfase wlan0 comes up.

wpa_supplicant gives the following messages:

#wpa_supplicant -B -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf

Successfully initialized wpa_supplicant


# [  950.465662] wlcore: ERROR ELP wakeup timeout!
[  950.470378] Modules linked in: fb_ili9341_txt fbtft_device fbtft syscopyarea sysfillrect sysimgblt fb_sys_fops usb_f_ecm g_ether usb_f_rndis u_rndis u_ether libcomposite configfs wl18xx wlcore mac80211 cfg80211 musb_dsps musb_hdrc snd_soc_omap snd_pcm_dmaengine snd_soc_core snd_compress regmap_spi snd_pcm snd_page_alloc snd_timer snd soundcore wlcore_sdio musb_am335x btwilink bluetooth
[  950.506673] CPU: 0 PID: 984 Comm: wpa_supplicant Tainted: G        W    3.12.10 #15
[  950.514746] Backtrace:
[  950.517367] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[  950.526281]  r6:bf1589fc r5:00000009 r4:00000000 r3:00000000
[  950.532290] [<c0017a04>] (show_stack+0x0/0x1c) from [<c0535140>] (dump_stack+0x20/0x28)
[  950.540761] [<c0535120>] (dump_stack+0x0/0x28) from [<c0044e24>] (warn_slowpath_common+0x70/0x90)
[  950.550143] [<c0044db4>] (warn_slowpath_common+0x0/0x90) from [<c0044e68>] (warn_slowpath_null+0x24/0x2c)
[  950.560245]  r8:bf175818 r7:0000fde4 r6:c0790b00 r5:00000000 r4:cd6b4c00
[  950.567377] [<c0044e44>] (warn_slowpath_null+0x0/0x2c) from [<bf1589fc>] (wl12xx_queue_recovery_work+0x74/0x80 [wlcore])
[  950.578899] [<bf158988>] (wl12xx_queue_recovery_work+0x0/0x80 [wlcore]) from [<bf16348c>] (wl1271_ps_elp_wakeup+0x1b8/0x1e4 [wlcore])
[  950.591568]  r4:cd6b4c00 r3:00000001
[  950.595378] [<bf1632d4>] (wl1271_ps_elp_wakeup+0x0/0x1e4 [wlcore]) from [<bf154348>] (wl1271_op_hw_scan+0x64/0xdc [wlcore])
[  950.607206] [<bf1542e4>] (wl1271_op_hw_scan+0x0/0xdc [wlcore]) from [<bf10b6f0>] (ieee80211_scan_completed+0x2c8/0x4ac [mac80211])
[  950.619654] [<bf10b564>] (ieee80211_scan_completed+0x13c/0x4ac [mac80211]) from [<bf10c300>] (ieee80211_request_scan+0x2c/0x44 [mac80211])
[  950.632781]  r6:00000000 r5:cd51fa00 r4:cd3fa440
[  950.637729] [<bf10c2d4>] (ieee80211_request_scan+0x0/0x44 [mac80211]) from [<bf119c20>] (ieee80211_scan+0xa8/0xb0 [mac80211])
[  950.649663]  r5:cd6b4000 r4:00000001
[  950.653518] [<bf119b78>] (ieee80211_scan+0x0/0xb0 [mac80211]) from [<bf0ec90c>] (nl80211_trigger_scan+0x558/0x5a0 [cfg80211])
[  950.665454]  r4:cd0a7c88 r3:bf119b78
[  950.669288] [<bf0ec3b4>] (nl80211_trigger_scan+0x0/0x5a0 [cfg80211]) from [<c04a3c10>] (genl_rcv_msg+0x1f4/0x370)
[  950.680138] [<c04a3a1c>] (genl_rcv_msg+0x0/0x370) from [<c04a3124>] (netlink_rcv_skb+0xb4/0xc8)
[  950.689336] [<c04a3070>] (netlink_rcv_skb+0x0/0xc8) from [<c04a3308>] (genl_rcv+0x28/0x3c)
[  950.698063]  r6:cd3b6800 r5:cd3dbc80 r4:c07c28d8 r3:c04a32e0
[  950.704063] [<c04a32e0>] (genl_rcv+0x0/0x3c) from [<c04a2b08>] (netlink_unicast+0x158/0x1b0)
[  950.712973]  r5:000000a8 r4:cd138c00
[  950.716776] [<c04a29b0>] (netlink_unicast+0x0/0x1b0) from [<c04a2ec8>] (netlink_sendmsg+0x2c0/0x374)
[  950.726434] [<c04a2c08>] (netlink_sendmsg+0x0/0x374) from [<c0474a98>] (sock_sendmsg+0x8c/0xac)
[  950.735632] [<c0474a0c>] (sock_sendmsg+0x0/0xac) from [<c04758d0>] (___sys_sendmsg.part.26+0x28c/0x29c)
[  950.745537]  r5:000000a8 r4:cd0a7f5c
[  950.749342] [<c0475644>] (___sys_sendmsg.part.26+0x0/0x29c) from [<c0476c20>] (__sys_sendmsg+0x54/0x80)
[  950.759272] [<c0476bcc>] (__sys_sendmsg+0x0/0x80) from [<c0476c5c>] (SyS_sendmsg+0x10/0x14)
[  950.768090]  r6:b6f16900 r5:0015e560 r4:0016ec50
[  950.772995] [<c0476c4c>] (SyS_sendmsg+0x0/0x14) from [<c0014660>] (ret_fast_syscall+0x0/0x30)
[  950.782888] Modules linked in: fb_ili9341_txt fbtft_device fbtft syscopyarea sysfillrect sysimgblt fb_sys_fops usb_f_ecm g_ether usb_f_rndis u_rndis u_ether libcomposite configfs wl18xx wlcore mac80211 cfg80211 musb_dsps musb_hdrc snd_soc_omap snd_pcm_dmaengine snd_soc_core snd_compress regmap_spi snd_pcm snd_page_alloc snd_timer snd soundcore wlcore_sdio musb_am335x btwilink bluetooth
[  950.819202] CPU: 0 PID: 981 Comm: kworker/u2:1 Tainted: G        W    3.12.10 #15
[  950.827134] Workqueue: phy0 wl1271_recovery_work [wlcore]
[  950.832829] Backtrace:
[  950.835424] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[  950.844338]  r6:bf15f528 r5:00000009 r4:00000000 r3:c0791f28
[  950.850354] [<c0017a04>] (show_stack+0x0/0x1c) from [<c0535140>] (dump_stack+0x20/0x28)
[  950.858823] [<c0535120>] (dump_stack+0x0/0x28) from [<c0044e24>] (warn_slowpath_common+0x70/0x90)
[  950.868205] [<c0044db4>] (warn_slowpath_common+0x0/0x90) from [<c0044e68>] (warn_slowpath_null+0x24/0x2c)
[  950.878305]  r8:00000008 r7:00000000 r6:bf175818 r5:bf189fc4 r4:cd6b4c00
[  950.885423] [<c0044e44>] (warn_slowpath_null+0x0/0x2c) from [<bf15f528>] (wlcore_set_partition+0xa0/0x488 [wlcore])
[  950.896478] [<bf15f488>] (wlcore_set_partition+0x0/0x488 [wlcore]) from [<bf158e94>] (wl1271_recovery_work+0x70/0x53c [wlcore])
[  950.908596]  r7:cd074300 r6:cd6b4c34 r5:cd6b4c00 r4:cd6b4e94
[  950.914608] [<bf158e24>] (wl1271_recovery_work+0x0/0x53c [wlcore]) from [<c0057e88>] (process_one_work+0xfc/0x340)
[  950.925548] [<c0057d8c>] (process_one_work+0x0/0x340) from [<c0058490>] (worker_thread+0x130/0x370)
[  950.935121] [<c0058360>] (worker_thread+0x0/0x370) from [<c005d688>] (kthread+0xac/0xb8)
[  950.943694] [<c005d5dc>] (kthread+0x0/0xb8) from [<c00146f8>] (ret_from_fork+0x14/0x3c)
[  950.952147]  r7:00000000 r6:00000000 r5:c005d5dc r4:cc129e74

  • Have fixed dt issues now wl18xx is detected proper on mmc3 but I've the following problem now.

    pls look at:

    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/358117.aspx


    and close this posting

  • Reinhard, the link you have posted leads to this thread.

    Best regards,
    Miroslav

  • yes this is a new problem with wl18xx devices


    Can you give an advice how to fix this (it's the last device on our custom hardware which isn't working yet)

    Regards Reinhard

  • Reinhard, please also post your question to the WiLink forum, in order to reach more people: http://e2e.ti.com/support/wireless_connectivity/f/307.aspx

    Best regards,
    Miroslav

  • What I've tried now is checking interrupts and increasing

    #define WL1271_WAKEUP_TIMEOUT 500

    to

    #define WL1271_WAKEUP_TIMEOUT 2500

    which only effects the delay till wl18xx drops.

    irq seems to be set up proper as /proc/interrupts reports.

    # cat /proc/interrupts
               CPU0
     20:          0      INTC   4  48080000.elm
     28:       1103      INTC  12  edma
     30:         13      INTC  14  edma_error
     32:          0      INTC  16  TI-am335x-tsc
     33:          4      INTC  17  47400000.dma-controller
     34:         95      INTC  18  musb-hdrc.1.auto
     35:          1      INTC  19  musb-hdrc.2.auto
     45:        274      INTC  29  mmc0
     60:       3807      INTC  44
     80:       3413      INTC  64  mmc1
     84:       2440      INTC  68  gp_timer
     86:        240      INTC  70  44e0b000.i2c
     88:        145      INTC  72  OMAP UART0
     90:          4      INTC  74  OMAP UART2
     91:          0      INTC  75  rtc0
     92:          0      INTC  76  rtc0
     93:          0      INTC  77  wkup_m3
     94:          1      INTC  78  wkup_m3_txev
    116:          0      INTC 100  gpmc
    125:          0      INTC 109  53100000.sham
    127:          0      INTC 111  48310000.rng
    172:          0      GPIO  28  wl18xx
    260:          0      GPIO  20  mmc1
    Err:          0

    above is before calling wpa supplicant:

    next is after

    # cat /proc/interrupts
               CPU0
     20:          0      INTC   4  48080000.elm
     28:       3708      INTC  12  edma
     30:         16      INTC  14  edma_error
     32:          0      INTC  16  TI-am335x-tsc
     33:          6      INTC  17  47400000.dma-controller
     34:        100      INTC  18  musb-hdrc.1.auto
     35:          1      INTC  19  musb-hdrc.2.auto
     45:       3302      INTC  29  mmc0
     60:       3807      INTC  44
     80:       3827      INTC  64  mmc1
     84:       3891      INTC  68  gp_timer
     86:        240      INTC  70  44e0b000.i2c
     88:        303      INTC  72  OMAP UART0
     90:          4      INTC  74  OMAP UART2
     91:          0      INTC  75  rtc0
     92:          0      INTC  76  rtc0
     93:          0      INTC  77  wkup_m3
     94:          1      INTC  78  wkup_m3_txev
    116:          0      INTC 100  gpmc
    125:          0      INTC 109  53100000.sham
    127:          0      INTC 111  48310000.rng
    172:          2      GPIO  28  wl18xx
    260:          0      GPIO  20  mmc1
    Err:          0

    about what I'm confused is mmc naming:

    we have attached micro sd slot on mmc0 and WL18xx on mmc2 !

    why is it named mmc1 I would expect mmc2

    Regards Reinhard

  • Hi Reinhard,

        We are having this same problem - would you mind posting the wlan sections of the devicetree file you are using?  

    Thanks,

    Chris

  • Hi Chris,

    Have you resolved this issue?. If so, could you please share the solution. Thank you.


    Regards,
    Ijaz Fazily