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.

tiwi-5 issue with davinci processor DM8148

Other Parts Discussed in Thread: WL1271

Hi..

   we are designed one custom board based on the DM8148 EVM. in our custom board we are connecting the tiwi-5 chip to HSMMC1 port using TXS02612RTWR level converter(because processor side 3.3 port is there). we are using PSP04.04 linux kernel 2.6.37.  we also applied few patches ,which are given by TI to support wlan on DM8148. we are using compat wireless which is given by ti site.

we are able to load the firmware in wl1273, when we are running the wpa_supplicant some times we are getting sdio_read failed (-110/-84) and some times we getting sdio write failed -110/-84. after that IRQ line is in high state.

sdio_data0 line also some times becoming low for long time. when this is happen ,wifi is not working.
why wlan_IRQ line is always high? we dont know the reason . please help us..

i am attaching the log file

please help us...

Regards

Kishore

root@dm814x-evm:~# root@dm814x-evm:~# ./cmd.txt
Compat-wireless backport release: compat-wireless-2011-12-05-1-g84dbe2c
Backport based on wl12xx.git v2.6.39-1328-g0890f48
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Powering on wl12xx
wl1271: loaded
Powering off wl12xxroot@dm814x-evm:~# Powering on wl12xxwl12xx chip ID -4030111
wl12xx fw type -0
booting firmware ti-connectivity/wl127x-fw-3.bin

wl1271: firmware booted (Rev 6.3.0.0.77)
wl1271: Driver version: R4_SP2_02_03

 root@dm814x-evm:~#  wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
root@dm814x-evm:~# cfg80211: Calling CRDA for country: IN
wl1271: Association completed.
cfg80211: Regulatory domain changed to country: IN
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 2000 mBm)

108 bytes from 192.168.0.1: seq=1 ttl=64 time=9.421 ms
108 bytes from 192.168.0.1: seq=2 ttl=64 time=9.672 ms
108 bytes from 192.168.0.1: seq=3 ttl=64 time=9.247 ms
108 bytes from 192.168.0.1: seq=4 ttl=64 time=9.324 ms
108 bytes from 192.168.0.1: seq=5 ttl=64 time=9.421 ms
108 bytes from 192.168.0.1: seq=6 ttl=64 time=9.672 ms
108 bytes from 192.168.0.1: seq=7 ttl=64 time=9.247 ms
108 bytes from 192.168.0.1: seq=8 ttl=64 time=9.324 ms
108 bytes from 192.168.0.1: seq=9 ttl=64 time=9.344 ms
108 bytes from 192.168.0.1: seq=10 ttl=64 time=9.254 ms
108 bytes from 192.168.0.1: seq=11 ttl=64 time=9.187 ms
SDIO_DATA_ER-func:2 error:ffffff92
Backtrace:
[<c004cdcc>] (dump_backtrace+0x0/0x110) from [<c0375448>] (dump_stack+0x18/0x1c)
 r7:00000002 r6:00000001 r5:00000000 r4:00000004
[<c0375430>] (dump_stack+0x0/0x1c) from [<c02b8fb8>] (mmc_io_rw_extended+0x248/0x250)
[<c02b8d70>] (mmc_io_rw_extended+0x0/0x250) from [<c02ba374>] (sdio_io_rw_ext_helper+0x168/0x1dc)
[<c02ba20c>] (sdio_io_rw_ext_helper+0x0/0x1dc) from [<c02ba504>] (sdio_memcpy_fromio+0x24/0x2c)
[<c02ba4e0>] (sdio_memcpy_fromio+0x0/0x2c) from [<bf0cb3c8>] (wl1271_sdio_raw_read+0x48/0x138 [wl12xx_sdio])
[<bf0cb380>] (wl1271_sdio_raw_read+0x0/0x138 [wl12xx_sdio]) from [<bf093fa8>] (wl1271_cmd_send+0x284/0x3e0 [wl12xx])
 r6:000000c8 r5:c700ce60 r4:00005a5a
[<bf093d24>] (wl1271_cmd_send+0x0/0x3e0 [wl12xx]) from [<bf0958ec>] (wl1271_cmd_ps_mode+0x80/0xbc [wl12xx])
[<bf09586c>] (wl1271_cmd_ps_mode+0x0/0xbc [wl12xx]) from [<bf09a6b8>] (wl1271_ps_set_mode+0xb8/0x124 [wl12xx])
 r6:c700c2c0 r5:00000000 r4:c700ce60
[<bf09a600>] (wl1271_ps_set_mode+0x0/0x124 [wl12xx]) from [<bf090250>] (wl1271_op_config+0x21c/0x394 [wl12xx])
 r5:c700ce94 r4:c700ce60
[<bf090034>] (wl1271_op_config+0x0/0x394 [wl12xx]) from [<bf03d198>] (ieee80211_hw_config+0x114/0x164 [mac80211])
[<bf03d084>] (ieee80211_hw_config+0x0/0x164 [mac80211]) from [<bf0483e4>] (ieee80211_dynamic_ps_enable_work+0xe8/0x2bc [mac80211])
 r5:00000000 r4:c700ca10
[<bf0482fc>] (ieee80211_dynamic_ps_enable_work+0x0/0x2bc [mac80211]) from [<c00881dc>] (process_one_work+0x124/0x40c)
[<c00880b8>] (process_one_work+0x0/0x40c) from [<c0088f24>] (worker_thread+0x170/0x458)
[<c0088db4>] (worker_thread+0x0/0x458) from [<c008df94>] (kthread+0x94/0x98)
[<c008df00>] (kthread+0x0/0x98) from [<c0077a60>] (do_exit+0x0/0x68c)
 r7:00000013 r6:c0077a60 r5:c008df00 r4:c7023ed0
wl1271: ERROR sdio read failed (-110)
wl1271: ERROR command execute failure 0

------------[ cut here ]------------
WARNING: at /home/kishore/ti_compat/compat-wireless/drivers/net/wireless/wl12xx/cmd.c:107 wl1271_cmd_send+0x398/0x3e0 [wl12xx]()
Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat
Backtrace:
[<c004cdcc>] (dump_backtrace+0x0/0x110) from [<c0375448>] (dump_stack+0x18/0x1c)
 r7:00000000 r6:bf0940bc r5:bf0abd34 r4:0000006b
[<c0375430>] (dump_stack+0x0/0x1c) from [<c007454c>] (warn_slowpath_common+0x5c/0x6c)
[<c00744f0>] (warn_slowpath_common+0x0/0x6c) from [<c0074580>] (warn_slowpath_null+0x24/0x2c)
 r9:0000000b r8:c700d20c r7:c04b4998 r6:fffffffb r5:c700ce60
r4:00005a5a
[<c007455c>] (warn_slowpath_null+0x0/0x2c) from [<bf0940bc>] (wl1271_cmd_send+0x398/0x3e0 [wl12xx])
[<bf093d24>] (wl1271_cmd_send+0x0/0x3e0 [wl12xx]) from [<bf0958ec>] (wl1271_cmd_ps_mode+0x80/0xbc [wl12xx])
[<bf09586c>] (wl1271_cmd_ps_mode+0x0/0xbc [wl12xx]) from [<bf09a6b8>] (wl1271_ps_set_mode+0xb8/0x124 [wl12xx])
 r6:c700c2c0 r5:00000000 r4:c700ce60
[<bf09a600>] (wl1271_ps_set_mode+0x0/0x124 [wl12xx]) from [<bf090250>] (wl1271_op_config+0x21c/0x394 [wl12xx])
 r5:c700ce94 r4:c700ce60
[<bf090034>] (wl1271_op_config+0x0/0x394 [wl12xx]) from [<bf03d198>] (ieee80211_hw_config+0x114/0x164 [mac80211])
[<bf03d084>] (ieee80211_hw_config+0x0/0x164 [mac80211]) from [<bf0483e4>] (ieee80211_dynamic_ps_enable_work+0xe8/0x2bc [mac80211])
 r5:00000000 r4:c700ca10
[<bf0482fc>] (ieee80211_dynamic_ps_enable_work+0x0/0x2bc [mac80211]) from [<c00881dc>] (process_one_work+0x124/0x40c)
[<c00880b8>] (process_one_work+0x0/0x40c) from [<c0088f24>] (worker_thread+0x170/0x458)
[<c0088db4>] (worker_thread+0x0/0x458) from [<c008df94>] (kthread+0x94/0x98)
[<c008df00>] (kthread+0x0/0x98) from [<c0077a60>] (do_exit+0x0/0x68c)
 r7:00000013 r6:c0077a60 r5:c008df00 r4:c7023ed0
---[ end trace 05be04ff69f57f87 ]---
wl1271: ERROR cmd set_ps_mode failed
wl1271: Reading FW panic log
First address of fwlogger = 0x2603
wl1271: Hardware recovery in progress. FW ver: Rev 6.3.0.0.77 pc: 0x0
wl1271: down
Powering off wl12xx
ieee80211 phy0: Hardware restart was requested
Powering on wl12xxwl12xx chip ID -4030111
wl12xx fw type -1
wl1271: firmware booted (Rev 6.3.0.0.77)
wl1271: Driver version: R4_SP2_02_03
wl1271: Association completed.

208 bytes from 192.168.0.1: seq=12 ttl=64 time=9.770 ms
208 bytes from 192.168.0.1: seq=13 ttl=64 time=10.490 ms
208 bytes from 192.168.0.1: seq=14 ttl=64 time=9.993 ms
208 bytes from 192.168.0.1: seq=15 ttl=64 time=9.662 ms
208 bytes from 192.168.0.1: seq=16 ttl=64 time=9.702 ms
208 bytes from 192.168.0.1: seq=17 ttl=64 time=9.867 ms
208 bytes from 192.168.0.1: seq=18 ttl=64 time=9.644 ms
208 bytes from 192.168.0.1: seq=19 ttl=64 time=12.208 ms
208 bytes from 192.168.0.1: seq=20 ttl=64 time=9.893 ms
208 bytes from 192.168.0.1: seq=21 ttl=64 time=10.618 ms
SDIO_CMD_ER-func:2 error:ffffff92
Backtrace:
[<c004cdcc>] (dump_backtrace+0x0/0x110) from [<c0375448>] (dump_stack+0x18/0x1c)
 r7:00000002 r6:00000001 r5:00000000 r4:00000054
[<c0375430>] (dump_stack+0x0/0x1c) from [<c02b8f9c>] (mmc_io_rw_extended+0x22c/0x250)
[<c02b8d70>] (mmc_io_rw_extended+0x0/0x250) from [<c02ba374>] (sdio_io_rw_ext_helper+0x168/0x1dc)
[<c02ba20c>] (sdio_io_rw_ext_helper+0x0/0x1dc) from [<c02ba504>] (sdio_memcpy_fromio+0x24/0x2c)
[<c02ba4e0>] (sdio_memcpy_fromio+0x0/0x2c) from [<bf0cb3c8>] (wl1271_sdio_raw_read+0x48/0x138 [wl12xx_sdio])
[<bf0cb380>] (wl1271_sdio_raw_read+0x0/0x138 [wl12xx_sdio]) from [<bf09260c>] (wl1271_fw_status+0x48/0x2ec [wl12xx])
 r6:c700ce60 r5:c61cdc80 r4:c700ce60
[<bf0925c4>] (wl1271_fw_status+0x0/0x2ec [wl12xx]) from [<bf093748>] (wl1271_irq+0xb8/0x2dc [wl12xx])
[<bf093690>] (wl1271_irq+0x0/0x2dc [wl12xx]) from [<c00ac40c>] (irq_thread+0x100/0x1f0)
[<c00ac30c>] (irq_thread+0x0/0x1f0) from [<c008df94>] (kthread+0x94/0x98)
[<c008df00>] (kthread+0x0/0x98) from [<c0077a60>] (do_exit+0x0/0x68c)
 r7:00000013 r6:c0077a60 r5:c008df00 r4:c73ebd30
wl1271: ERROR sdio read failed (-110)