Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS-TPC-7990 rarely does not bring up wilc #35

Open
markfeathers opened this issue Aug 30, 2023 · 1 comment
Open

TS-TPC-7990 rarely does not bring up wilc #35

markfeathers opened this issue Aug 30, 2023 · 1 comment

Comments

@markfeathers
Copy link
Contributor

Very rarely the TS-TPC-7990 does not bring up wifi. This doesn't happen on the other platforms using the same driver so far, so I'm suspecting something with the GPIO on reset might be slightly different. Once it is up, it can cycle the interface as expected, but it must make it up first.

[ 20.289736] WILC_SPI spi4.0 wlan0: INFO [wilc_mac_open]MAC OPEN[3e2f1c9b] wlan0
[ 20.297148] WILC POWER UP
[ 20.299782] WILC_SPI spi4.0 wlan0: INFO [wilc_init_host_int]Host[3e2f1c9b][21494faf]
[ 20.307602] WILC_SPI spi4.0 wlan0: INFO [wilc_mac_open]*** re-init ***
[ 20.314200] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[ 20.350724] WILC_SPI spi4.0 wlan0: INFO [init_chip]Bootrom sts = c
[ 20.357204] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[ 20.365166] WILC_SPI spi4.0 wlan0: INFO [wlan_initialize_threads]Initializing Threads ...
[ 20.373351] WILC_SPI spi4.0 wlan0: INFO [wlan_initialize_threads]Creating kthread for transmission
[ 20.382536] WILC_SPI spi4.0 wlan0: INFO [wlan_initialize_threads]Creating kthread for Debugging
[ 20.391919] WILC_SPI spi4.0 wlan0: INFO [init_irq]IRQ request succeeded IRQ-NUM= 112
[ 20.399710] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_get_firmware]Detect chip WILC3000
[ 20.407481] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_get_firmware]loading firmware mchp/wilc3000_wifi_firmware.bin
[ 20.417679] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_get_firmware]WLAN firmware: mchp/wilc3000_wifi_firmware.bin
[ 20.431816] WILC_SPI spi4.0 wlan0: INFO [wilc_firmware_download]Downloading Firmware ...
[ 20.439967] wilc_wlan_firmware_download: Downloading firmware size = 140520
[ 20.561807] wilc_wlan_firmware_download Offset = 120560
[ 20.585758] wilc_wlan_firmware_download Offset = 140520
[ 20.590999] WILC_SPI spi4.0 wlan0: INFO [wilc_firmware_download]Download Succeeded
[ 20.598692] WILC_SPI spi4.0 wlan0: INFO [wilc_start_firmware]Starting Firmware ...
[ 20.607280] WILC_SPI spi4.0 wlan0: INFO [wilc_start_firmware]Waiting for FW to get ready ...
[ 21.124099] WILC_SPI spi4.0 wlan0: INFO [wilc_start_firmware]Firmware start timed out
[ 21.131961] WILC_SPI spi4.0 wlan0: ERR [wilc_wlan_initialize:807] Failed to start firmware
[ 21.140654] WILC_SPI spi4.0 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[ 21.149031] WILC_SPI spi4.0 wlan0: INFO [wlan_deinitialize_threads]Deinit debug Thread
[ 21.404101] Exit debug thread
[ 21.407163] WILC_SPI spi4.0 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[ 21.415567] WILC_SPI spi4.0 wlan0: WLAN initialization FAILED
[ 21.421343] WILC_SPI spi4.0 wlan0: ERR [wilc_mac_open:891] Failed to initialize wilc
[ 8313.572940] WILC_SPI spi4.0 wlan0: INFO [wilc_mac_open]MAC OPEN[3e2f1c9b] wlan0
[ 8313.580305] power up request for already powered up source Wifi
[ 8313.586227] Device already up. request source is Wifi
[ 8313.591311] WILC_SPI spi4.0 wlan0: INFO [wilc_init_host_int]Host[3e2f1c9b][21494faf]
[ 8313.599143] WILC_SPI spi4.0 wlan0: INFO [wilc_mac_open]*** re-init ***
[ 8313.605678] WILC_SPI spi4.0 wlan0: WRN [wilc_wlan_initialize: 848]wilc already initialized
[ 8313.613975] WILC_SPI spi4.0 wlan0: ERR [wilc_send_config_pkt:1751] Set Timed out
[ 8313.621480] WILC_SPI spi4.0 wlan0: Failed to set driver handler
[ 8313.627409] WILC_SPI spi4.0 wlan0: ERR [wilc_send_config_pkt:1732] Get Timed out
[ 8313.634829] WILC_SPI spi4.0 wlan0: Failed to get mac address
[ 8313.640547] WILC_SPI spi4.0 wlan0: ERR [wilc_mac_open:908] Wrong MAC address
[ 8313.647607] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_deinitialize]Deinitializing wilc ...
[ 8313.655723] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_deinitialize]Disabling IRQ
[ 8313.662884] wilc_disable_irq Disabling IRQ ...
[ 8313.667339] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_deinitialize]Deinitializing Threads
[ 8313.675277] WILC_SPI spi4.0 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[ 8313.683476] WILC_SPI spi4.0 wlan0: INFO [wlan_deinitialize_threads]Deinit debug Thread
[ 8313.691458] WILC_SPI spi4.0 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[ 8313.699668] WILC_SPI spi4.0 wlan0: INFO [wilc_wlan_deinitialize]Deinitializing IRQ
[ 8313.707240] ------------[ cut here ]------------

@ts-kris
Copy link
Contributor

ts-kris commented Aug 30, 2023

A few things worth checking, the control lines are driven by FPGA GPIO. This could be the result of:

  • GPIO changing too slow (due to I2C being a slowpath) and causing a race condition issue.
  • If the GPIO are in a bad state at startup, and the driver doesn't assert/deassert signals before beginning the startup process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants