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.

WILINK-BT_WIFI-WIRELESS_TOOLS: WiFi Tx Power Test crashes

Part Number: WILINK-BT_WIFI-WIRELESS_TOOLS
Other Parts Discussed in Thread: AM3358, WL1271

Hi,

We have used TiWi-BLE Module from LSR(450-0064) on our custom designed hardware based on AM3358 processor.

The module works fine both WiFi (Station mode and AP mode) and Bluetooth.

We want to perform FCC tests and for that we have used the calibrator utility as suggested in below link.

http://processors.wiki.ti.com/index.php/WL127x_TX_Testing

We are using arago yocto build environment and kernel version is 4.4.32.

For WiFi drivers we have selected wlcore, wlcore_sdio, wl12xx, cfg80211, mac80211 all as integrated.

Functionality using those configuration works fine.

But the issue comes when I try to use the plt mode of the TiWi-BLE module.

Here is the sequence and output of different commands

dmesg | grep wl
[ 3.084027] wlcore: loaded
[ 16.298529] wlcore: firmware booted (Rev 6.3.10.0.133)
[ 16.348918] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

ifconfig wlan0 down
wlcore: down

calibrator wlan0 plt power_mode on
[ 37.807364] wlcore: power up


[ 39.586831] ------------[ cut here ]------------
[ 39.591796] WARNING: CPU: 0 PID: 437 at /home/chirag/projects/ICG/SEM3_UCM/src-bsp/kernel/drivers/net/wireless/ti/wlcore/sdio.c:107 wl12xx_sdio_raw_r
ead+0xb8/0x144()


[ 39.616529] Modules linked in:
[ 39.619818] CPU: 0 PID: 437 Comm: calibrator Tainted: G W O 4.4.32-gbf06d5eb30 #6

[ 39.634277] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 39.648046] Backtrace:
[ 39.650721] [<c00134e4>] (dump_backtrace) from [<c00136e0>] (show_stack+0x18/0x1c)

[ 39.665039] r7:c04afe54 r6:0000006b r5:00000009 r4:00000000
[ 39.674817] [<c00136c8>] (show_stack) from [<c02c67e8>] (dump_stack+0x24/0x28)
[ 39.688317] [<c02c67c4>] (dump_stack) from [<c0031d8c>] (warn_slowpath_common+0x88/0xb4)
[ 39.699936] [<c0031d04>] (warn_slowpath_common) from [<c0031e5c>] (warn_slowpath_null+0x24/0x2c)
[ 39.714438] r8:00000004 r7:eedfd940 r6:eedff210 r5:000157c4 r4:eedd9c00
[ 39.724795] [<c0031e38>] (warn_slowpath_null) from [<c04afe54>] (wl12xx_sdio_raw_read+0xb8/0x144)
[ 39.740317] [<c04afd9c>] (wl12xx_sdio_raw_read) from [<c04a9f84>] (wlcore_boot_run_firmware+0xa8/0x8f4)
[ 39.753261] r9:066665b0 r8:c0b2df80 r7:edbdfbd6 r6:c0bb9714 r5:c04afd9c r4:eee30c40
[ 39.765963] [<c04a9edc>] (wlcore_boot_run_firmware) from [<c04b2774>] (wl12xx_boot+0xdc8/0x1058)
[ 39.775398] r10:00000000 r9:066665b0 r8:c0b2df80 r7:edbdfbd6 r6:c0bb9714 r5:c04afd9c
[ 39.792750] r4:eee30c40
[ 39.795479] [<c04b19ac>] (wl12xx_boot) from [<c04b18ec>] (wl12xx_plt_init+0x1c/0xdc)
[ 39.809540] r10:ee98bc00 r9:eee30160 r8:eee30c78 r7:00000001 r6:00000000 r5:00000003
[ 39.825836] r4:eee30c40
[ 39.828592] [<c04b18d0>] (wl12xx_plt_init) from [<c049c8a0>] (wl1271_plt_start+0x8c/0x16c)
[ 39.843238] r7:00000001 r6:00000000 r5:00000003 r4:eee30c40
[ 39.852817] [<c049c814>] (wl1271_plt_start) from [<c04af23c>] (wl1271_tm_cmd+0x4c8/0x5a0)
[ 39.872673] r9:c0b71bb8 r8:00000000 r7:edaccf00 r6:ed91dc14 r5:eee30c40 r4:c04aed74
[ 39.881193] [<c04aed74>] (wl1271_tm_cmd) from [<c07c9d74>] (ieee80211_testmode_cmd+0x48/0x58)
[ 39.895377] r10:ee98bc00 r9:c0b71bb8 r8:00000000 r7:edaccf00 r6:ed91dc14 r5:eee30000
[ 39.907006] r4:c04aed74
[ 39.909741] [<c07c9d2c>] (ieee80211_testmode_cmd) from [<c078e68c>] (nl80211_testmode_do+0x7c/0xa8)
[ 39.925203] r5:eee30000 r4:c07c9d2c
[ 39.930237] [<c078e610>] (nl80211_testmode_do) from [<c064569c>] (genl_rcv_msg+0x258/0x3dc)
[ 39.942009] r5:c08a11cc r4:c0b799cc
[ 39.945931] [<c0645444>] (genl_rcv_msg) from [<c0644954>] (netlink_rcv_skb+0xa8/0xc4)
[ 39.954143] r10:edaccf00 r9:00000000 r8:00000000 r7:edaccf00 r6:edaccf00 r5:c0645444
[ 39.965672] r4:ed91dc00
[ 39.968929] [<c06448ac>] (netlink_rcv_skb) from [<c0645434>] (genl_rcv+0x2c/0x3c)
[ 39.981226] r7:edaccf00 r6:00000030 r5:edaccf00 r4:c0b7342c
[ 39.987365] [<c0645408>] (genl_rcv) from [<c0644280>] (netlink_unicast+0x168/0x244)
[ 39.995396] r5:edb07800 r4:ee98b800
[ 40.002241] [<c0644118>] (netlink_unicast) from [<c0644724>] (netlink_sendmsg+0x2f4/0x35c)
[ 40.013948] r8:00000000 r7:00000030 r6:edb07800 r5:00000000 r4:edbdff4c
[ 40.021740] [<c0644430>] (netlink_sendmsg) from [<c05fdb6c>] (sock_sendmsg+0x1c/0x2c)
[ 40.033158] r10:00000000 r9:edbdfe28 r8:00000000 r7:ee110480 r6:00000000 r5:00000000
[ 40.041540] r4:edbdff4c
[ 40.044216] [<c05fdb50>] (sock_sendmsg) from [<c05fe1a0>] (___sys_sendmsg+0x1f4/0x1fc)
[ 40.056966] [<c05fdfac>] (___sys_sendmsg) from [<c05fef5c>] (__sys_sendmsg+0x44/0x70)
[ 40.065198] r10:00000000 r9:edbde000 r8:c000fbc4 r7:00000128 r6:ee110480 r5:00000000
[ 40.075306] r4:bec4cb74
[ 40.079765] [<c05fef18>] (__sys_sendmsg) from [<c05fef98>] (SyS_sendmsg+0x10/0x14)
[ 40.090726] r6:0002b008 r5:0002b0e0 r4:0002b080
[ 40.097414] [<c05fef88>] (SyS_sendmsg) from [<c000fa00>] (ret_fast_syscall+0x0/0x3c)
[ 40.107331] ---[ end trace 02a95c506054bf72 ]---
[ 40.112195] wl1271_sdio mmc2:0001:2: sdio read failed (-110)
[ 41.833164] ------------[ cut here ]------------
[ 41.838305] WARNING: CPU: 0 PID: 437 at /home/chirag/projects/ICG/SEM3_UCM/src-bsp/kernel/drivers/net/wireless/ti/wlcore/sdio.c:107 wl12xx_sdio_raw_r
ead+0xb8/0x144()
[ 41.859762] Modules linked in:
[ 41.863049] CPU: 0 PID: 437 Comm: calibrator Tainted: G W O 4.4.32-gbf06d5eb30 #6
[ 41.882885] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 41.889539] Backtrace:
[ 41.892188] [<c00134e4>] (dump_backtrace) from [<c00136e0>] (show_stack+0x18/0x1c)
[ 41.905950] r7:c04afe54 r6:0000006b r5:00000009 r4:00000000
[ 41.912022] [<c00136c8>] (show_stack) from [<c02c67e8>] (dump_stack+0x24/0x28)
[ 41.935855] [<c02c67c4>] (dump_stack) from [<c0031d8c>] (warn_slowpath_common+0x88/0xb4)
[ 41.944409] [<c0031d04>] (warn_slowpath_common) from [<c0031e5c>] (warn_slowpath_null+0x24/0x2c)
[ 41.962321] r8:00000004 r7:eedfd940 r6:eedff210 r5:0001597c r4:eedd9c00
[ 41.969720] [<c0031e38>] (warn_slowpath_null) from [<c04afe54>] (wl12xx_sdio_raw_read+0xb8/0x144)
[ 41.984358] [<c04afd9c>] (wl12xx_sdio_raw_read) from [<c04b0cd4>] (wl12xx_top_reg_read+0x1e0/0x2a0)
[ 42.001168] r9:edbdfbd6 r8:0001fffc r7:003009bc r6:00000000 r5:00000020 r4:eee30c40
[ 42.010571] [<c04b0af4>] (wl12xx_top_reg_read) from [<c04b1a28>] (wl12xx_boot+0x7c/0x1058)
[ 42.025057] r10:ee98bc00 r9:eee30160 r8:eedfd840 r7:edbdfbd6 r6:00000000 r5:00000003
[ 42.036926] r4:eee30c40
[ 42.039608] [<c04b19ac>] (wl12xx_boot) from [<c04b18ec>] (wl12xx_plt_init+0x1c/0xdc)
[ 42.052654] r10:ee98bc00 r9:eee30160 r8:eee30c78 r7:00000001 r6:00000000 r5:00000002
[ 42.061019] r4:eee30c40
[ 42.063699] [<c04b18d0>] (wl12xx_plt_init) from [<c049c8a0>] (wl1271_plt_start+0x8c/0x16c)
[ 42.076647] r7:00000001 r6:00000000 r5:00000002 r4:eee30c40
[ 42.084672] [<c049c814>] (wl1271_plt_start) from [<c04af23c>] (wl1271_tm_cmd+0x4c8/0x5a0)
[ 42.097217] r9:c0b71bb8 r8:00000000 r7:edaccf00 r6:ed91dc14 r5:eee30c40 r4:c04aed74
[ 42.105371] [<c04aed74>] (wl1271_tm_cmd) from [<c07c9d74>] (ieee80211_testmode_cmd+0x48/0x58)
[ 42.118601] r10:ee98bc00 r9:c0b71bb8 r8:00000000 r7:edaccf00 r6:ed91dc14 r5:eee30000
[ 42.126969] r4:c04aed74
[ 42.129642] [<c07c9d2c>] (ieee80211_testmode_cmd) from [<c078e68c>] (nl80211_testmode_do+0x7c/0xa8)
[ 42.144020] r5:eee30000 r4:c07c9d2c
[ 42.147944] [<c078e610>] (nl80211_testmode_do) from [<c064569c>] (genl_rcv_msg+0x258/0x3dc)
[ 42.160187] r5:c08a11cc r4:c0b799cc
[ 42.163959] [<c0645444>] (genl_rcv_msg) from [<c0644954>] (netlink_rcv_skb+0xa8/0xc4)
[ 42.175750] r10:edaccf00 r9:00000000 r8:00000000 r7:edaccf00 r6:edaccf00 r5:c0645444
[ 42.183950] r4:ed91dc00
[ 42.188625] [<c06448ac>] (netlink_rcv_skb) from [<c0645434>] (genl_rcv+0x2c/0x3c)
[ 42.199893] r7:edaccf00 r6:00000030 r5:edaccf00 r4:c0b7342c
[ 42.205995] [<c0645408>] (genl_rcv) from [<c0644280>] (netlink_unicast+0x168/0x244)
[ 42.213970] r5:edb07800 r4:ee98b800
[ 42.221200] [<c0644118>] (netlink_unicast) from [<c0644724>] (netlink_sendmsg+0x2f4/0x35c)
[ 42.234069] r8:00000000 r7:00000030 r6:edb07800 r5:00000000 r4:edbdff4c
[ 42.241295] [<c0644430>] (netlink_sendmsg) from [<c05fdb6c>] (sock_sendmsg+0x1c/0x2c)
[ 42.253132] r10:00000000 r9:edbdfe28 r8:00000000 r7:ee110480 r6:00000000 r5:00000000
[ 42.261480] r4:edbdff4c
[ 42.264141] [<c05fdb50>] (sock_sendmsg) from [<c05fe1a0>] (___sys_sendmsg+0x1f4/0x1fc)
[ 42.277002] [<c05fdfac>] (___sys_sendmsg) from [<c05fef5c>] (__sys_sendmsg+0x44/0x70)
[ 42.288874] r10:00000000 r9:edbde000 r8:c000fbc4 r7:00000128 r6:ee110480 r5:00000000
[ 42.297211] r4:bec4cb74
[ 42.299872] [<c05fef18>] (__sys_sendmsg) from [<c05fef98>] (SyS_sendmsg+0x10/0x14)
[ 42.312684] r6:0002b008 r5:0002b0e0 r4:0002b080
[ 42.317726] [<c05fef88>] (SyS_sendmsg) from [<c000fa00>] (ret_fast_syscall+0x0/0x3c)
[ 42.329287] ---[ end trace 02a95c506054bf73 ]---
[ 42.334125] wl1271_sdio mmc2:0001:2: sdio read failed (-110)

[ 44.063904] ------------[ cut here ]------------
[ 44.069895] WARNING: CPU: 0 PID: 437 at /home/chirag/projects/ICG/SEM3_UCM/src-bsp/kernel/drivers/net/wireless/ti/wlcore/sdio.c:107 wl12xx_sdio_raw_r
ead+0xb8/0x144()
[ 44.091354] Modules linked in:
[ 44.094636] CPU: 0 PID: 437 Comm: calibrator Tainted: G W O 4.4.32-gbf06d5eb30 #6
[ 44.114907] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 44.121575] Backtrace:
[ 44.124223] [<c00134e4>] (dump_backtrace) from [<c00136e0>] (show_stack+0x18/0x1c)
[ 44.138511] r7:c04afe54 r6:0000006b r5:00000009 r4:00000000
[ 44.144585] [<c00136c8>] (show_stack) from [<c02c67e8>] (dump_stack+0x24/0x28)
[ 44.166989] [<c02c67c4>] (dump_stack) from [<c0031d8c>] (warn_slowpath_common+0x88/0xb4)
[ 44.175541] [<c0031d04>] (warn_slowpath_common) from [<c0031e5c>] (warn_slowpath_null+0x24/0x2c)
[ 44.193128] r8:00000004 r7:eedfd940 r6:eedff210 r5:0001597c r4:eedd9c00
[ 44.200629] [<c0031e38>] (warn_slowpath_null) from [<c04afe54>] (wl12xx_sdio_raw_read+0xb8/0x144)
[ 44.215271] [<c04afd9c>] (wl12xx_sdio_raw_read) from [<c04b0cd4>] (wl12xx_top_reg_read+0x1e0/0x2a0)
[ 44.233332] r9:edbdfbd6 r8:0001fffc r7:003009bc r6:00000000 r5:00000020 r4:eee30c40
[ 44.241840] [<c04b0af4>] (wl12xx_top_reg_read) from [<c04b1a28>] (wl12xx_boot+0x7c/0x1058)
[ 44.255817] r10:ee98bc00 r9:eee30160 r8:eedfd840 r7:edbdfbd6 r6:00000000 r5:00000003
[ 44.264126] r4:eee30c40
[ 44.273922] [<c04b19ac>] (wl12xx_boot) from [<c04b18ec>] (wl12xx_plt_init+0x1c/0xdc)
[ 44.288278] r10:ee98bc00 r9:eee30160 r8:eee30c78 r7:00000001 r6:00000000 r5:00000001
[ 44.299655] r4:eee30c40
[ 44.302423] [<c04b18d0>] (wl12xx_plt_init) from [<c049c8a0>] (wl1271_plt_start+0x8c/0x16c)

Can you please help why it is crashing here?

Regards,

Chirag