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.

Linux/WL1807MOD: AM5708 SDO issue :wl1271_sdio mmc3:0001:2: sdio write failed (-110)

Part Number: WL1807MOD
Other Parts Discussed in Thread: AM5708, WL1271

Tool/software: Linux

Hi Team

When Customer use AM5708  load wlcore_sdio, log will show a issue :wl1271_sdio mmc3:0001:2: sdio write failed (-110). Customer uses TXS0108E as voltage transfer chip, but SDO clock signal is distorted. Please check below screenshot and log. Customer will provide more details.

[ 49.898047] WARNING: CPU: 0 PID: 1077 at drivers/net/wireless/ti/wlcore/sdio.c:145 wl12xx_sdio_raw_write+0xb8/0x144 [w
lcore_sdio]
[ 49.912136] Modules linked in: wl18xx(+) wlcore mac80211 wlcore_sdio bc_example(O) sha512_generic sha512_arm sha256_ge
neric sha1_generic sha1_arm_neon sha1_arm md5 cbc xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo xhc
i_plat_hcd xhci_hcd usbcore rpmsg_proto dwc3 udc_core usb_common rpmsg_rpc bluetooth prueth pru_rproc pruss pruss_intc ex
tcon_usb_gpio snd_soc_omap_hdmi_audio pvrsrvkm(O) omap_aes_driver pruss_soc_bus omap_sham omap_wdt ti_vip ti_vpe ti_sc ti
_csc ti_vpdma dwc3_omap extcon_core cfg80211 ti_cal omap_des crypto_engine des_generic omap_remoteproc virtio_rpmsg_bus r
pmsg_core remoteproc sch_fq_codel uio_module_drv(O) uio gdbserverproxy(O) cryptodev(O) cmemk(O)
[ 49.974159] CPU: 0 PID: 1077 Comm: systemd-udevd Tainted: G W O 4.9.28-geed43d1050 #433
[ 49.983156] Hardware name: Generic DRA72X (Flattened Device Tree)
[ 49.989273] Backtrace:
[ 49.991748] [<c020b35c>] (dump_backtrace) from [<c020b618>] (show_stack+0x18/0x1c)
[ 49.999353] r7:00000009 r6:600e0013 r5:00000000 r4:c1022550
[ 50.005042] [<c020b600>] (show_stack) from [<c04da6a0>] (dump_stack+0x8c/0xa0)
[ 50.012300] [<c04da614>] (dump_stack) from [<c022e090>] (__warn+0xec/0x104)
[ 50.019293] r7:00000009 r6:bf2d90d0 r5:00000000 r4:00000000
[ 50.024978] [<c022dfa4>] (__warn) from [<c022e160>] (warn_slowpath_null+0x28/0x30)
[ 50.032583] r9:00000000 r8:00000004 r7:d55fe200 r6:ede04a10 r5:0001ffc4 r4:eebe9e00
[ 50.040368] [<c022e138>] (warn_slowpath_null) from [<bf2d8274>] (wl12xx_sdio_raw_write+0xb8/0x144 [wlcore_sdio])
[ 50.050632] [<bf2d81bc>] (wl12xx_sdio_raw_write [wlcore_sdio]) from [<bf35ca1c>] (wlcore_set_partition+0xe8/0x4c8 [wlc
ore])

  • Detail log is below:

    root@am57xx-evm:~# 
    root@am57xx-evm:~# 
    root@am57xx-evm:~# insmd wlore_sdio.ko 
    [65183.309785] ------------[ cut here ]------------
    [65183.314469] WARNING: CPU: 0 PID: 1488 at drivers/net/wireless/ti/wlcore/sdio.c:145 wl12xx_sdio_raw_write+0xb8/0x144 [wlcore_sdio]
    [65183.328256] Modules linked in: wlcore_sdio(+) hi3599 wl18xx wlcore cdc_ether usbnet mac80211 bc_example(O) sha512_generic sha512_arm sha256_generic sha1_generic sha1_arm_neon sha1_arm md5 cbc xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo xhci_plat_hcd xhci_hcd usbcore rpmsg_proto dwc3 udc_core usb_common rpmsg_rpc prueth pru_rproc pruss pruss_intc extcon_usb_gpio pvrsrvkm(O) bluetooth omap_aes_driver pruss_soc_bus omap_sham omap_wdt ti_vip dwc3_omap extcon_core ti_vpe ti_sc cfg80211 ti_csc ti_vpdma ti_cal omap_des crypto_engine des_generic omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel uio_module_drv(O) uio gdbserverproxy(O) cryptodev(O) cmemk(O) [last unloaded: wlcore_sdio]
    [65183.392939] CPU: 0 PID: 1488 Comm: insmod Tainted: G        W  O    4.9.28-geed43d1050 #430
    [65183.401325] Hardware name: Generic DRA72X (Flattened Device Tree)
    [65183.407442] Backtrace: 
    [65183.409918] [<c020b35c>] (dump_backtrace) from [<c020b618>] (show_stack+0x18/0x1c)
    [65183.417523]  r7:00000009 r6:600e0013 r5:00000000 r4:c1022550
    [65183.423214] [<c020b600>] (show_stack) from [<c04da6a0>] (dump_stack+0x8c/0xa0)
    [65183.430472] [<c04da614>] (dump_stack) from [<c022e090>] (__warn+0xec/0x104)
    [65183.437464]  r7:00000009 r6:bf5180d0 r5:00000000 r4:00000000
    [65183.443151] [<c022dfa4>] (__warn) from [<c022e160>] (warn_slowpath_null+0x28/0x30)
    [65183.450755]  r9:00000000 r8:00000004 r7:edbffc80 r6:ee779c10 r5:0001ffc4 r4:edcbe000
    [65183.458542] [<c022e138>] (warn_slowpath_null) from [<bf517274>] (wl12xx_sdio_raw_write+0xb8/0x144 [wlcore_sdio])
    [65183.468806] [<bf5171bc>] (wl12xx_sdio_raw_write [wlcore_sdio]) from [<bf429a1c>] (wlcore_set_partition+0xe8/0x4c8 [wlcore])
    [65183.479986]  r9:ec4080c0 r8:bf43e900 r7:ee779c00 r6:bf5171bc r5:bf462084 r4:ec4cadc0
    [65183.487831] [<bf429934>] (wlcore_set_partition [wlcore]) from [<bf41f9cc>] (wl12xx_set_power_on+0x84/0x148 [wlcore])
    [65183.498399]  r6:00000000 r5:00000000 r4:ec4cadc0
    [65183.503099] [<bf41f948>] (wl12xx_set_power_on [wlcore]) from [<bf42425c>] (wlcore_nvs_cb+0x11c/0xa1c [wlcore])
    [65183.513142]  r5:bf43dc5c r4:ec4cadc0
    [65183.516797] [<bf424140>] (wlcore_nvs_cb [wlcore]) from [<bf424c0c>] (wlcore_probe+0xb0/0xe8 [wlcore])
    [65183.526058]  r10:00000000 r9:00000000 r8:0000005b r7:fffffdfb r6:00000000 r5:00000000
    [65183.533920]  r4:ec4cadc0
    [65183.536513] [<bf424b5c>] (wlcore_probe [wlcore]) from [<bf459330>] (wl18xx_probe+0x54/0x84 [wl18xx])
    [65183.545684]  r6:bf4687bc r5:ec4cadc0 r4:ee779c00
    [65183.550338] [<bf4592dc>] (wl18xx_probe [wl18xx]) from [<c06307b4>] (platform_drv_probe+0x58/0xb8)
    [65183.559246]  r5:ffffffed r4:ee779c10
    [65183.562839] [<c063075c>] (platform_drv_probe) from [<c062ed20>] (driver_probe_device+0x20c/0x2b8)
    [65183.571749]  r7:bf4687bc r6:00000000 r5:ee779c10 r4:c108e734
    [65183.577433] [<c062eb14>] (driver_probe_device) from [<c062ef30>] (__device_attach_driver+0xa0/0xd4)
    [65183.586517]  r9:00000000 r8:c108e710 r7:00000001 r6:ee779c10 r5:ec469b90 r4:bf4687bc
    [65183.594299] [<c062ee90>] (__device_attach_driver) from [<c062cf88>] (bus_for_each_drv+0x68/0x9c)
    [65183.603121]  r7:00000001 r6:c062ee90 r5:ec469b90 r4:00000000
    [65183.608809] [<c062cf20>] (bus_for_each_drv) from [<c062e9f0>] (__device_attach+0xb8/0x11c)
    [65183.617106]  r6:c1035f20 r5:ee779c44 r4:ee779c10
    [65183.621745] [<c062e938>] (__device_attach) from [<c062efb0>] (device_initial_probe+0x14/0x18)
    [65183.630306]  r7:00000000 r6:c1035f20 r5:ee779c10 r4:ee779c18
    [65183.635993] [<c062ef9c>] (device_initial_probe) from [<c062de9c>] (bus_probe_device+0x8c/0x94)
    [65183.644647] [<c062de10>] (bus_probe_device) from [<c062c054>] (device_add+0x3fc/0x588)
    [65183.652598]  r7:00000000 r6:ee779c10 r5:edcbe008 r4:ee779c18
    [65183.658283] [<c062bc58>] (device_add) from [<c063050c>] (platform_device_add+0x128/0x228)
    [65183.666497]  r10:00000000 r9:00000028 r8:ee779c10 r7:c1013df8 r6:c1013dd0 r5:ee779c00
    [65183.674358]  r4:00000001
    [65183.676908] [<c06303e4>] (platform_device_add) from [<bf517698>] (wl1271_probe+0x254/0x2a8 [wlcore_sdio])
    [65183.686517]  r9:000000b9 r8:ec408f10 r7:edcbe008 r6:ef68fde4 r5:ec408a50 r4:00000000
    [65183.694302] [<bf517444>] (wl1271_probe [wlcore_sdio]) from [<c07425f0>] (sdio_bus_probe+0x110/0x124)
    [65183.703473]  r10:00000000 r9:f224b000 r8:bf518020 r7:bf5182e4 r6:edcbe000 r5:00000000
    [65183.711334]  r4:edcbe008
    [65183.713879] [<c07424e0>] (sdio_bus_probe) from [<c062ed20>] (driver_probe_device+0x20c/0x2b8)
    [65183.722441]  r9:f224b000 r8:0000005b r7:bf5182e4 r6:00000000 r5:edcbe008 r4:c108e734
    [65183.730218] [<c062eb14>] (driver_probe_device) from [<c062ee8c>] (__driver_attach+0xc0/0xc4)
    [65183.738693]  r9:f224b000 r8:bf518340 r7:00000000 r6:edcbe03c r5:bf5182e4 r4:edcbe008
    [65183.746472] [<c062edcc>] (__driver_attach) from [<c062cec8>] (bus_for_each_dev+0x70/0xa4)
    [65183.754685]  r7:00000000 r6:c062edcc r5:bf5182e4 r4:00000000
    [65183.760371] [<c062ce58>] (bus_for_each_dev) from [<c062e588>] (driver_attach+0x24/0x28)
    [65183.768407]  r6:c10424a0 r5:edbfb400 r4:bf5182e4
    [65183.773044] [<c062e564>] (driver_attach) from [<c062e0c0>] (bus_add_driver+0x110/0x21c)
    [65183.781083] [<c062dfb0>] (bus_add_driver) from [<c062f654>] (driver_register+0x80/0xfc)
    [65183.789120]  r7:ec408c80 r6:00000001 r5:ffffe000 r4:bf5182e4
    [65183.794805] [<c062f5d4>] (driver_register) from [<c074278c>] (sdio_register_driver+0x2c/0x30)
    [65183.803364]  r5:ffffe000 r4:bf51a000
    [65183.806961] [<c0742760>] (sdio_register_driver) from [<bf51a014>] (wl1271_init+0x14/0x1c [wlcore_sdio])
    [65183.816402] [<bf51a000>] (wl1271_init [wlcore_sdio]) from [<c0201860>] (do_one_initcall+0x4c/0x178)
    [65183.825495] [<c0201814>] (do_one_initcall) from [<c02d337c>] (do_init_module+0x68/0x3c4)
    [65183.833621]  r10:edb0d6e4 r9:f224b000 r8:bf518340 r7:ec408c80 r6:00000001 r5:00000001
    [65183.841483]  r4:bf518340
    [65183.844030] [<c02d3314>] (do_init_module) from [<c02aced4>] (load_module+0x1e60/0x224c)
    [65183.852067]  r7:edb0d6c0 r6:00000001 r5:00000001 r4:ec469f44
    [65183.857753] [<c02ab074>] (load_module) from [<c02ad4c4>] (SyS_finit_module+0xb0/0xc0)
    [65183.865617]  r10:00000000 r9:ec468000 r8:c0207e44 r7:0000017b r6:00027dc4 r5:00000003
    [65183.873478]  r4:00000000
    [65183.876025] [<c02ad414>] (SyS_finit_module) from [<c0207ca0>] (ret_fast_syscall+0x0/0x34)
    [65183.884237]  r6:00025a74 r5:00000000 r4:0003a008
    [65183.899013] ---[ end trace ddb9ab66950cc73a ]---
    [65183.907202] wl1271_sdio mmc3:0001:2: sdio write failed (-110)
    [65183.921216] prueth pruss1_eth: port 1: using random MAC addr: 4e:12:fa:58:da:12
    [65183.928931] display supply vcc not found, using dummy regulator
    root@am57xx-evm:~# [65183.953642] prueth pruss1_eth: port 1: using random MAC addr: a6:06:a2:a7:d6:25
    [65183.972258] display supply vcc not found, using dummy regulator
    
    root@am57xx-evm:~# 
    

  • Is it with AM57x EVM or custom board? Which TISDK and kernel version are being used?

    Thanks
  • Custom board,   SDK is ti-processor-sdk-linux-am57xx-evm-04.00.00.04

  • Jerry,

    Can you provide a snippet of the board layout/schematics that show the SDIO signal path?

    Thanks,

    Vince