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.

wl12xx: ERROR ELP wakeup timeout! and Wifi dump error message while resume from suspend

Other Parts Discussed in Thread: WL1283, WL1271, TWL6040

Hi 

I got a problem on suspend/resume when wifi enable. there are dump error message after resume from suspend show you below but WiFi can recovery itself and work as normal after resume.

Could you help this, thanks.

Wireless:wl1283

OS: android KitKat

CPU: omap4430

The IRQ and WIFI_EN config seems correct 

static struct wl12xx_platform_data omap4_sdp4430_wlan_data __initdata = {
.irq = OMAP_GPIO_IRQ(GPIO_WIFI_IRQ),
.board_ref_clock =  WL12XX_REFCLOCK_26,
.board_tcxo_clock = WL12XX_TCXOCLOCK_26,
};

static void __init omap4_sdp4430_wifi_mux_init(void)
{
omap_mux_init_gpio(GPIO_WIFI_IRQ, OMAP_PIN_INPUT |
OMAP_PIN_OFF_WAKEUPENABLE);

,,,

}

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

<3>[ 103.375427] wl12xx: ERROR ELP wakeup timeout!

<4>[ 103.380828] ------------[ cut here ]------------

<4>[ 103.386474] WARNING: at /home/tw023899/mywork/mc40/android_fs/hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/main.c:1414 wl12xx_queue_recovery_work+0x34/0x7c [wl12xx]()

<4>[ 103.405853] Modules linked in: wl12xx_sdio(O) wl12xx(O) mac80211(O) pvrsrvkm_sgx540_120(O) cfg80211(O) compat(O)

<4>[ 103.418212] Backtrace:

<4>[ 103.421112] [<c0017b74>] (dump_backtrace+0x0/0x10c) from [<c0681168>] (dump_stack+0x18/0x1c)

<4>[ 103.430328] r6:00000586 r5:bf143570 r4:00000000 r3:c09f3dd0

<4>[ 103.436981] [<c0681150>] (dump_stack+0x0/0x1c) from [<c0047194>] (warn_slowpath_common+0x54/0x6c)

<4>[ 103.446624] [<c0047140>] (warn_slowpath_common+0x0/0x6c) from [<c00471d0>] (warn_slowpath_null+0x24/0x2c)

<4>[ 103.457061] r8:bf166a10 r7:ffff9d61 r6:c09a80c0 r5:d2d89ad0 r4:d2d89a80

<4>[ 103.464508] r3:00000009

<4>[ 103.467590] [<c00471ac>] (warn_slowpath_null+0x0/0x2c) from [<bf143570>] (wl12xx_queue_recovery_work+0x34/0x7c [wl12xx])

<4>[ 103.479461] [<bf14353c>] (wl12xx_queue_recovery_work+0x0/0x7c [wl12xx]) from [<bf14dbd8>] (wl1271_ps_elp_wakeup+0xf4/0x228 [wl12xx])

<4>[ 103.492340] r4:d2d89a80 r3:c09f3dd0

<4>[ 103.496582] [<bf14dae4>] (wl1271_ps_elp_wakeup+0x0/0x228 [wl12xx]) from [<bf1404e4>] (wl1271_op_configure_filter+0x58/0x120 [wl12xx])

<4>[ 103.509765] [<bf14048c>] (wl1271_op_configure_filter+0x0/0x120 [wl12xx]) from [<bf0a917c>] (ieee80211_configure_filter+0x17c/0x3f0 [mac80211])

<4>[ 103.523773] [<bf0a9000>] (ieee80211_configure_filter+0x0/0x3f0 [mac80211]) from [<bf0a9404>] (ieee80211_reconfig_filter+0x14/0x18 [mac80211])

<4>[ 103.537597] [<bf0a93f0>] (ieee80211_reconfig_filter+0x0/0x18 [mac80211]) from [<c006217c>] (process_one_work+0x134/0x4ac)

<4>[ 103.549499] [<c0062048>] (process_one_work+0x0/0x4ac) from [<c0062680>] (worker_thread+0x18c/0x3d8)

<4>[ 103.559356] [<c00624f4>] (worker_thread+0x0/0x3d8) from [<c0067104>] (kthread+0x90/0x9c)

<4>[ 103.568237] [<c0067074>] (kthread+0x0/0x9c) from [<c004b0a8>] (do_exit+0x0/0x804)

<4>[ 103.576324] r6:c004b0a8 r5:c0067074 r4:d6861ec4

<4>[ 103.581726] Board Information:

<4>[ 103.581726] Revision : 0010

<4>[ 103.581726] Serial : 0000000000000000

<4>[ 103.581726] SoC Information:

<4>[ 103.581726] CPU : OMAP4430

<4>[ 103.581726] Rev : ES2.3

<4>[ 103.581756] Type : GP

<4>[ 103.581756] Production ID: C00DB95C-000600F0

<4>[ 103.581756] Die ID : 44900006-00000001-0913DA3B-0D01900F

<4>[ 103.581756]

<4>[ 103.616363] ---[ end trace 8744095cf6e8dd83 ]---

<6>[ 103.621551] wl12xx: Reading FW panic log

<4>[ 103.625885] ------------[ cut here ]------------

<4>[ 103.630981] WARNING: at /home/tw023899/mywork/mc40/android_fs/hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/cmd.c:61 wl1271_cmd_send+0x4f0/0x548 [wl12xx]()

<4>[ 103.648040] Modules linked in: wl12xx_sdio(O) wl12xx(O) mac80211(O) pvrsrvkm_sgx540_120(O) cfg80211(O) compat(O)

<4>[ 103.659729] Backtrace:

<4>[ 103.662536] [<c0017b74>] (dump_backtrace+0x0/0x10c) from [<c0681168>] (dump_stack+0x18/0x1c)

<4>[ 103.671661] r6:0000003d r5:bf146ad0 r4:00000000 r3:c09f3dd0

<4>[ 103.678192] [<c0681150>] (dump_stack+0x0/0x1c) from [<c0047194>] (warn_slowpath_common+0x54/0x6c)

<4>[ 103.687866] [<c0047140>] (warn_slowpath_common+0x0/0x6c) from [<c00471d0>] (warn_slowpath_null+0x24/0x2c)

<4>[ 103.698242] r8:d2d89cc4 r7:d2d89cc4 r6:d2faee40 r5:d2d89a80 r4:d2d89a80

<4>[ 103.705718] r3:00000009

<4>[ 103.708801] [<c00471ac>] (warn_slowpath_null+0x0/0x2c) from [<bf146ad0>] (wl1271_cmd_send+0x4f0/0x548 [wl12xx])

<4>[ 103.719757] [<bf1465e0>] (wl1271_cmd_send+0x0/0x548 [wl12xx]) from [<bf1493b8>] (wl12xx_cmd_stop_fwlog+0x60/0xa4 [wl12xx])

<4>[ 103.731781] [<bf149358>] (wl12xx_cmd_stop_fwlog+0x0/0xa4 [wl12xx]) from [<bf144f14>] (wl1271_recovery_work+0x488/0x644 [wl12xx])

<4>[ 103.744323] r5:ca4e9bc0 r4:d2d89a80

<4>[ 103.748474] [<bf144a8c>] (wl1271_recovery_work+0x0/0x644 [wl12xx]) from [<c006217c>] (process_one_work+0x134/0x4ac)

<4>[ 103.759857] [<c0062048>] (process_one_work+0x0/0x4ac) from [<c0062680>] (worker_thread+0x18c/0x3d8)

<4>[ 103.769714] [<c00624f4>] (worker_thread+0x0/0x3d8) from [<c0067104>] (kthread+0x90/0x9c)

<4>[ 103.778472] [<c0067074>] (kthread+0x0/0x9c) from [<c004b0a8>] (do_exit+0x0/0x804)

<4>[ 103.786682] r6:c004b0a8 r5:c0067074 r4:d6861ec4

<4>[ 103.791992] Board Information:

<4>[ 103.791992] Revision : 0010

<4>[ 103.791992] Serial : 0000000000000000

<4>[ 103.791992] SoC Information:

<4>[ 103.791992] CPU : OMAP4430

<4>[ 103.791992] Rev : ES2.3

<4>[ 103.792022] Type : GP

<4>[ 103.792022] Production ID: C00DB95C-000600F0

<4>[ 103.792022] Die ID : 44900006-00000001-0913DA3B-0D01900F

<4>[ 103.792022]

<4>[ 103.826690] ---[ end trace 8744095cf6e8dd84 ]---

<3>[ 103.831787] wl12xx: ERROR failed to send stop firmware logger command

<6>[ 103.839141] wl12xx: Hardware recovery in progress. FW ver: Rev 7.3.10.0.125

<6>[ 103.846893] wl12xx: pc: 0x0

<6>[ 103.849975] wl12xx: down

<6>[ 103.852874] wl12xx: down

<6>[ 103.857849] ieee80211 phy0: Hardware restart was requested

<6>[ 103.877136] wl12xx: state: 0

<6>[ 104.335540] wl12xx: firmware booted (Rev 7.3.10.0.125)

<6>[ 104.399597] wl12xx: down

<4>[ 105.201995] AUDIO::twl6040: twl6040_hf_boost_event() Enter

<4>[ 105.209411] AUDIO::twl6040: twl6040_hf_boost_event() Enter

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

  • Hi,

    The firmware you are using is not the latest... Please update the driver/fw (ol_R5.SP7.01) and retry.

    Regards,
    Gigi Joseph.

  • Hi,

    I download driver release from below link. But I can't get the driver after run the scrip (./scripts/driver-select wl1
    2xx)  the message say "Must run ./scripts/driver-select from the compat-wireless top level directory". Could you tell me how to get driver?

    https://github.com/TI-OpenLink/ti-utils/releases/tag/ol_R5.SP7.01

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

    #./scripts/driver-select
    Usage: ./scripts/driver-select [ <driver-name> | <driver-group-name> | restore ]
    Supported 802.11 drivers:
            ath5k
            ath9k
            ath9k_htc
            carl9170
            ath6kl
            b43
            zd1211rw
            rt2x00
            wl1251
            wl12xx
            brcmsmac
            brcmfmac

    Supported group drivers:
            atheros <  ath5k ath9k carl9170 zd1211rw ath6kl >
            ath <  ath5k ath9k carl9170 ath6kl >
            brcm80211 <  brcmsmac brcmfmac >
            intel <  iwlwifi, iwlegacy >
            rtl818x <  rtl8180 rtl8187 >
            rtlwifi <  rtl8192ce >
            wl12xx <  wl1251 wl12xx (SPI and SDIO)>

    Supported group drivers: Bluetooth & Ethernet:
            atlxx <  atl1 atl2 atl1e atl1c >
            bt <  Linux bluetooth drivers >
    Restoring compat-wireless:
            restore: you can use this option to restore compat-wireless to the original state


    #./scripts/driver-select wl12xx
    Must run ./scripts/driver-select from the compat-wireless top level directory

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

    Thanks

    Johnny

  • Hi Johnny,

    You need to also download the wl12xx, compat & compat-wireless gits.
    The easiest way would be to just execute https://github.com/TI-ECS/build-utilites/blob/master/wl12xx_build.sh

    Regards,
    Gigi Joseph.

  • Hi Gigi,

    The driver and FW have updated to latest version ol_R5.SP7.01. the problem still existing during device suspend/resume.

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

    <6>[ 14.460998] (stc): add_channel_to_table: id 3
    <6>[ 14.524444] wl12xx: driver version: ol_R5.SP7.01
    <6>[ 14.536529] wl12xx: compilation time: Tue Jun 10 15:23:11 2014
    <3>[ 14.611572] init: property 'sys.powerctl' doesn't exist while expanding

    ....

    <6>[ 86.534454] isl29030: isl_set_default_config isl29030 set_default_config call,
    <6>[ 86.534729] isl29030: prox now 0
    <6>[ 86.535186] isl29030: als now 0
    <4>[ 86.642578] extagent_resume +
    <4>[ 86.642791] extagent_resume -
    <4>[ 86.690612] duty_cycle_apply_cooling: not throttling
    <4>[ 86.691162] ------------[ cut here ]------------
    <4>[ 86.691192] WARNING: at /home/johwa/mywork/mc40/android_fs/hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/sdio.c:126 wl12xx_sdio_raw_write+0xa0/0xd8 [wl12xx_sdio]()
    <4>[ 86.691192] Modules linked in: wl12xx_sdio(O) wl12xx(O) mac80211(O) pvrsrvkm_sgx540_120(O) cfg80211(O) compat(O)
    <4>[ 86.691253] Backtrace:
    <4>[ 86.691284] [<c0017bdc>] (dump_backtrace+0x0/0x10c) from [<c06d2528>] (dump_stack+0x18/0x1c)
    <4>[ 86.691284] r6:0000007e r5:bf0021c0 r4:00000000 r3:00000000
    <4>[ 86.691314] [<c06d2510>] (dump_stack+0x0/0x1c) from [<c0047148>] (warn_slowpath_common+0x54/0x6c)
    <4>[ 86.691345] [<c00470f4>] (warn_slowpath_common+0x0/0x6c) from [<c0047184>] (warn_slowpath_null+0x24/0x2c)
    <4>[ 86.691345] r8:00000004 r7:d48c3e80 r6:d4a0c808 r5:0001fffc r4:d50f7800
    <4>[ 86.691375] r3:00000009
    <4>[ 86.691375] [<c0047160>] (warn_slowpath_null+0x0/0x2c) from [<bf0021c0>]

    ....

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

    BRs,

    Johnny0083.dmesg2.log

  • Hi Gigi,

    Do you have any idea?

    Johnny

  • Hi Johnny,

    Sorry for my late response. In the latest driver log also, I see the below:

    Line 619: <6>[ 52.745086] wl12xx: firmware booted (Rev 7.3.10.0.125)
    Line 949: <6>[ 88.551818] wl12xx: firmware booted (Rev 7.3.10.0.125)

    So this means the firmware has not been updated.

    Can you please follow the build instructions from: https://github.com/TI-ECS/build-utilites/blob/master/wl12xx_build.sh and rebuild the driver/firmware?

    Regards,
    Gigi Joseph.