Hang when up AP6256 Wifi module

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Hang when up AP6256 Wifi module

1,484件の閲覧回数
DungTA98
Contributor II

Hi,

 

I'm trying to port the AP6256 Wifi module to a board that uses i.MX 8M Mini.
When I use in kernel 4.9, wifi module works well. But  I use it in kernel 5.15, it hang when I run

ifconfig wlan0 up

This is my log with kernel 4.9 (Wifi module works well)

root@mys-8mmx:~# ifconfig wlan0 up
[ 69.855899] [dhd] dhd_open: Enter wlan0
[ 69.859776] [dhd] dhd_open : no mutex held. set lock
[ 69.864775] [dhd]
[ 69.864775] Dongle Host Driver, version 100.10.545.12 (r826445-20200708-1)
[ 69.873672] [dhd-wlan0] wl_android_wifi_on : in g_wifi_on=0
[ 69.879272] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 69.885131] [dhd] ======== PULL WL_REG_ON(42) HIGH! ========
[ 70.279593] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 70.292059] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 70.303921] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 70.320842] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 70.340306] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[ 70.638913] [dhd] sdioh_start: set sd_f2_blocksize 256
[ 70.644964] [dhd]
[ 70.644964]
[ 70.644964] dhd_bus_devreset: == Power ON ==
[ 70.652862] [dhd] F1 signature read @0x18000000=0x15294345
[ 70.661067] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[ 70.668487] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 70.675949] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 70.681240] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 70.689418] [dhd] dhd_conf_read_config : Ignore config file /lib/firmware/bcmd/config.txt
[ 70.697650] [dhd] dhd_conf_set_path_params : Final fw_path=/lib/firmware/bcmd/fw_bcm43456c5_ag_apsta.bin
[ 70.707146] [dhd] dhd_conf_set_path_params : Final nv_path=/lib/firmware/bcmd/nvram_ap6256.txt
[ 70.715765] [dhd] dhd_conf_set_path_params : Final clm_path=/lib/firmware/bcmd/clm_bcm43456c5_ag.blob
[ 70.725012] [dhd] dhd_conf_set_path_params : Final conf_path=/lib/firmware/bcmd/config.txt
[ 70.733743] [dhd] dhd_os_open_image1: /lib/firmware/bcmd/fw_bcm43456c5_ag_apsta.bin (612864 bytes) open success
[ 70.787000] [dhd] dhd_os_open_image1: /lib/firmware/bcmd/nvram_ap6256.txt (2874 bytes) open success
[ 70.798461] [dhd] NVRAM version: AP6256_NVRAM_V1.4_06112021
[ 70.804532] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 70.900899] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 70.909093] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 1
[ 70.916896] [dhd] dhd_apply_default_clm: Ignore clm file /lib/firmware/bcmd/clm_bcm43456c5_ag.blob
[ 70.926436] [dhd] Firmware up: op_mode=0x0002, MAC=d4:9c:dd:3d:7c:6c
[ 70.936159] [dhd] dhd_preinit_ioctls: event_log_max_sets: 26 ret: -23
[ 70.946099] [dhd] Driver: 100.10.545.12 (r826445-20200708-1)
[ 70.946099] Firmware: wl0: Jun 25 2021 17:13:38 version 7.45.96.94 (7bb6b14@SYNA) (r745790) FWID 01-2bdfb64c es7.c5.n4.a3
[ 70.946099] CLM: 9.2.9 (2016-02-03 04:34:31)
[ 70.967976] [dhd] dhd_txglom_enable: enable 1
[ 70.972353] [dhd] dhd_conf_set_txglom_params : txglom_mode=multi-desc
[ 70.978808] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0
[ 70.986144] [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1
[ 70.993608] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[ 71.001117] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1
[ 71.011255] [dhd] dhd_pno_init: Support Android Location Service
[ 71.033819] [dhd] dhd_preinit_ioctls: Failed to get preserve log # !
[ 71.060560] [dhd] dhd_conf_map_country_list : CN/38
[ 71.060566] [dhd] dhd_wlfc_enable: ret=0
[ 71.060595] [dhd] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 71.065470] [dhd] dhd_conf_set_country : set country CN, revision 38
[ 71.069446] [dhd] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 71.091451] [dhd] dhd_conf_set_country : Country code: CN (CN/38)
[ 71.102099] [dhd-wlan0] wl_android_wifi_on : Success
[ 71.127522] [dhd] _dhd_wlfc_mac_entry_update():1866, entry(32)
[ 71.152079] [dhd] dhd_open : the lock is released.
[ 71.156889] [dhd] dhd_open: Exit wlan0 ret=0
[ 71.161181] [dhd] [wlan0] tx queue started

In kernel 5.15, it hang after

[ 71.127522] [dhd] _dhd_wlfc_mac_entry_update():1866, entry(32)

Can you help me?

Many thank,
Dung Tran Anh

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,477件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

It seems is the firmware and the driver issues. Please check with the wifi module supplier that the firmware could work on L5.15.

0 件の賞賛
返信

1,473件の閲覧回数
DungTA98
Contributor II

I think the driver have not issue. When I ran modprobe bcmdhd, the wifi module initialized fine.

modprobe bcmdhd

6.630814] [dhd] dhd_module_init: in Dongle Host Driver, version 100.10.545.12 (r826445-20200708-1)
[ 6.651701] [dhd] ======== dhd_wlan_init_plat_data ========
[ 6.657866] [dhd] dhd_wlan_init_gpio: WL_REG_ON=42
[ 6.663846] [dhd] dhd_wifi_platform_load: Enter
[ 6.669474] [dhd] Power-up adapter 'DHD generic adapter'
[ 6.747286] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 6.768108] [dhd] ======== PULL WL_REG_ON(42) HIGH! ========
[ 7.282590] [dhd] wifi_platform_bus_enumerate device present 1
[ 7.288506] [dhd] ======== Card detection to detect SDIO card! ========
[ 7.310839] [dhd] bcmsdh_register: register client driver
[ 7.316759] [dhd] bcmsdh_sdmmc_probe: Enter num=1
[ 7.321843] [dhd] bcmsdh_sdmmc_probe: Enter num=2
[ 7.326682] [dhd] bus num (host idx)=0, slot num (rca)=1
[ 7.332213] [dhd] found adapter info 'DHD generic adapter'
[ 7.338647] [dhd] sdioh_attach: set sd_f2_blocksize 256
[ 7.344040] [dhd] sdioh_attach: sd clock rate = 0
[ 7.349184] [dhd] dhdsdio_probe : no mutex held. set lock
[ 7.354745] [dhd] F1 signature read @0x18000000=0x15294345
[ 7.362635] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[ 7.370097] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 7.377711] [dhd] dhd_conf_set_chiprev : chip=0x4345, chiprev=9
[ 7.384685] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.393048] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.393053] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.414211] dhd_attach(): thread:dhd_watchdog_thread:257 started
[ 7.422768] dhd_attach(): thread:dhd_dpc:258 started
[ 7.428082] dhd_attach(): thread:dhd_rxf:259 started
[ 7.433189] [dhd] dhd_deferred_work_init: work queue initialized
[ 7.439271] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2
[ 7.446461] [dhd] sdioh_cis_read: func_cis_ptr[0]=0x10ac
[ 7.457672] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 7.463441] [dhd] Dongle Host Driver, version 100.10.545.12 (r826445-20200708-1)
[ 7.471657] [dhd] Register interface [wlan0] MAC: d4:9c:dd:3d:7c:6c

[ 7.479834] [dhd] dhd_bus_devreset: == Power OFF ==
[ 7.485059] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[ 7.490080] [dhd] dhd_bus_devreset: making dhdpub up FALSE
[ 7.495607] [dhd] dhd_txglom_enable: enable 0
[ 7.500055] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 7.500063] [dhd] dhd_bus_devreset: WLAN OFF DONE
[ 7.500229] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ 7.500233] [dhd] ======== PULL WL_REG_ON(42) LOW! ========
[ 7.500244] [dhd] dhdsdio_probe : the lock is released.
[ 7.500422] [dhd] dhd_module_init: Exit err=0

And I ran iw dev, I seen wlan0 informations.

 

0 件の賞賛
返信