Kernel panic caused by Wifi module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kernel panic caused by Wifi module

1,616 Views
hasaafi
Contributor I

I use mwifiex driver , 

the panic occur when a timeout occurs after a scan command.

There is any patch that can fix this problem ?

[2022-08-17 12:44:55]  mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0x107, act = 0x0
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_cmd_index = 3
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_cmd_id: 07 01 07 01 07 01 07 01 07 01
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 2
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 07 81 07 81 07 81 07 81 07 81
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_event_index = 1
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: last_event: 58 00 58 00 58 00 58 00 58 00
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=0
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: ps_mode=0 ps_state=0
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: cmd timeout
[2022-08-17 15:46:05]  mwifiex_sdio: Resetting card...
[2022-08-17 15:46:05]  mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
[2022-08-17 15:46:05]  ieee80211 phy0: Failed to stop the BSS
[2022-08-17 15:46:05]  Send HW ERROR event
[2022-08-17 15:46:05]  Bluetooth: hci0 hardware error 0x24
[2022-08-17 15:46:05]  BT: Delete hci0
[2022-08-17 15:46:05]  BT: Delete mfmchar0
[2022-08-17 15:46:05]  BT: Delete mnfcchar0
[2022-08-17 15:46:05]  BT FW is active(0)
[2022-08-17 15:46:06]  BT: FW already downloaded!
[2022-08-17 15:46:06]  BT: Create /dev/mfmchar0
[2022-08-17 15:46:06]  BT: Create /dev/mnfcchar0
[2022-08-17 15:46:06]  mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0xa9, act = 0x0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_cmd_index = 1
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_cmd_id: 00 00 a9 00 00 00 00 00 00 00
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 00 00 00 00 00 00 00 00 00 00
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_event_index = 0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: last_event: 00 00 00 00 00 00 00 00 00 00
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: data_sent=1 cmd_sent=1
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: ps_mode=0 ps_state=0
[2022-08-17 15:46:16]  mwifiex_sdio mmc0:0001:1: cmd timeout
[2022-08-17 15:46:16]  ------------[ cut here ]------------
[2022-08-17 15:46:16]  Kernel BUG at 7f05e8b0 [verbose debug info unavailable]
[2022-08-17 15:46:16]  Internal error: Oops - BUG: 0 [#1] PREEMPT ARM
[2022-08-17 15:46:16]  Modules linked in: qmi_wwan cdc_ether cdc_acm hmac bnep(O) bt8xxx(O) bluetooth(O) ftdi_sio usbserial ext3 mbcache jbd mmc_block fsl_otp phy_nop ci_hdrc_imx usbmisc_imx ci_hdrc udc_core ehci_hcd secvio phy_mxs_usb mwifiex_sdio(O) mwifiex(O) st_lsm6ds3_spi st_lsm6ds3 sdhci_esdhc_imx sdhci_pltfm cfg80211(O) sdhci mmc_core compat(O) rfkill ds2482 cryptodev(O) caamrng caamhash caamalg caam_jr caam autofs4
[2022-08-17 15:46:16]  CPU: 0 PID: 3209 Comm: kworker/0:2 Tainted: G        W  O 3.10.17-rt12+pamela-dual-lite-04.09.15+gc88bcca #1
[2022-08-17 15:46:16]  Workqueue: events mwifiex_sdio_work [mwifiex_sdio]
[2022-08-17 15:46:16]  task: bb9e0000 ti: bb692000 task.ti: bb692000
[2022-08-17 15:46:16]  PC is at sdio_writeb+0x44/0x48 [mmc_core]
[2022-08-17 15:46:16]  LR is at mwifiex_write_reg.isra.12+0x38/0x50 [mwifiex_sdio]
[2022-08-17 15:46:16]  pc : [<7f05e8b0>]    lr : [<7f125d68>]    psr: 60010113
[2022-08-17 15:46:16]  sp : bb693ce0  ip : 00000000  fp : 8062f744
[2022-08-17 15:46:16]  r10: bade200c  r9 : 00000003  r8 : 00000000
[2022-08-17 15:46:16]  r7 : bae78200  r6 : 00000002  r5 : 00000000  r4 : bb693cf4
[2022-08-17 15:46:16]  r3 : bb693cf4  r2 : 00000000  r1 : 00000002  r0 : 00000000
[2022-08-17 15:46:16]  Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[2022-08-17 15:46:16]  Control: 10c5387d  Table: 4bbd8059  DAC: 00000015
[2022-08-17 15:46:16]  Process kworker/0:2 (pid: 3209, stack limit = 0xbb692230)
[2022-08-17 15:46:16]  Stack: (0xbb693ce0 to 0xbb694000)
[2022-08-17 15:46:16]  3ce0: 00000003 bade200c bae78200 7f125d68 7f128ea4 ffffffff c110d0bf 00000000
[2022-08-17 15:46:16]  3d00: bae78200 7f125e54 00000000 00000000 00000000 bade2000 c110d0bf 00000000
[2022-08-17 15:46:16]  3d20: 00000000 00000000 00000001 ffffffff 00000000 00000000 00000000 00000001
[2022-08-17 15:46:16]  3d40: 00000001 00000041 80650f88 00300000 bb693e1c bade2000 00000020 00000010
[2022-08-17 15:46:16]  3d60: 00000001 ffffffff 00000000 00000000 00000000 00000001 00000001 70e99cb7
[2022-08-17 15:46:16]  3d80: bb9e0000 8030fb74 bb1d488c 00000001 806a6f78 bb693e27 7f105004 bb693e65
[2022-08-17 15:46:16]  3da0: bb693e65 7f0ff04d 7f0ff04f bb693e6d bb693e6d 80219d28 ffffffff ffffffff
[2022-08-17 15:46:16]  3dc0: ffffffff ffffffff 0000003f c110d0a2 7f100e9b 7f100e9b 00000002 ffffffff
[2022-08-17 15:46:16]  3de0: bb693e50 c110d0a3 c110d0a3 80219d28 00000020 00000010 ffffffff ffffffff
[2022-08-17 15:46:16]  3e00: 3eef2f7d c110d082 ff102000 ffffffff 7f0ff040 c110d082 bae78200 bae78200
[2022-08-17 15:46:16]  3e20: 80edd600 bade2000 00000000 c110d0bf bb600000 bae78200 80edd600 bade2000
[2022-08-17 15:46:16]  3e40: 00000003 bade200c 8062f744 7f0da47c 00000001 7f100d40 6669776d 20786569
[2022-08-17 15:46:16]  3e60: 20302e31 302e3028 702e302e 00202930 bb06a000 00000002 80629d7c bb116700
[2022-08-17 15:46:16]  3e80: 00000000 800492e0 bb9e0000 ba1aa4c0 00000000 bb116700 bb693f24 7f12a590
[2022-08-17 15:46:16]  3ea0: bade2000 bae78200 80edd600 00000000 00000000 bb692000 8062f744 7f126694
[2022-08-17 15:46:16]  3ec0: 00000004 00000000 00000001 bb631980 8062f744 00000000 bb9e0000 bb631980
[2022-08-17 15:46:16]  3ee0: 7f129f70 8062f744 80edd600 00000000 00000000 bb692000 8062f744 8003dd14
[2022-08-17 15:46:16]  3f00: bb631980 bb9e0000 8062f768 00000000 bb692000 bb631980 8062f768 bb631998
[2022-08-17 15:46:16]  3f20: bb692000 bb692038 00000001 bb692000 8062f744 8003e70c 00000001 bb9e0000
[2022-08-17 15:46:16]  3f40: 00000000 80651d54 8003e5d4 bb427e9c 00000000 bb631980 8003e5d4 00000000
[2022-08-17 15:46:16]  3f60: 00000000 00000000 00000000 80043e04 bb693f70 00000000 bb693f78 bb631980
[2022-08-17 15:46:16]  3f80: 00000000 bb693f84 bb693f84 00000000 bb693f90 bb693f90 bb693fac bb427e9c
[2022-08-17 15:46:16]  3fa0: 80043d60 00000000 00000000 8000ec98 00000000 00000000 00000000 00000000
[2022-08-17 15:46:16]  3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[2022-08-17 15:46:16]  3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[2022-08-17 15:46:16]  [<7f05e8b0>] (sdio_writeb+0x44/0x48 [mmc_core]) from [<7f125d68>] (mwifiex_write_reg.isra.12+0x38/0x50 [mwifiex_sdio])
[2022-08-17 15:46:16]  [<7f125d68>] (mwifiex_write_reg.isra.12+0x38/0x50 [mwifiex_sdio]) from [<7f125e54>] (mwifiex_sdio_reg_dump+0x40/0x2d0 [mwifiex_sdio])
[2022-08-17 15:46:16]  [<7f125e54>] (mwifiex_sdio_reg_dump+0x40/0x2d0 [mwifiex_sdio]) from [<7f0da47c>] (mwifiex_dump_drv_info+0x3dc/0x498 [mwifiex])
[2022-08-17 15:46:16]  [<7f0da47c>] (mwifiex_dump_drv_info+0x3dc/0x498 [mwifiex]) from [<7f126694>] (mwifiex_sdio_work+0xd8/0x3c0 [mwifiex_sdio])
[2022-08-17 15:46:16]  [<7f126694>] (mwifiex_sdio_work+0xd8/0x3c0 [mwifiex_sdio]) from [<8003dd14>] (process_one_work+0xf8/0x348)
[2022-08-17 15:46:16]  [<8003dd14>] (process_one_work+0xf8/0x348) from [<8003e70c>] (worker_thread+0x138/0x3d4)
[2022-08-17 15:46:16]  [<8003e70c>] (worker_thread+0x138/0x3d4) from [<80043e04>] (kthread+0xa4/0xa8)
[2022-08-17 15:46:16]  [<80043e04>] (kthread+0xa4/0xa8) from [<8000ec98>] (ret_from_fork+0x14/0x3c)
[2022-08-17 15:46:16]  Code: e3540000 15840000 e28dd008 e8bd8010 (e7f001f2) 
[2022-08-17 15:46:16]  ---[ end trace 0000000000000003 ]---
[2022-08-17 15:46:16]  Kernel panic - not syncing: Fatal exception

 

0 Kudos
Reply
3 Replies

1,451 Views
hasaafi
Contributor I

any help ?

0 Kudos
Reply

1,602 Views
hasaafi
Contributor I

I use kernel 3.10.17 , and the mwifex driver is provided via backport (4.1.1).

can you please explain more ?

0 Kudos
Reply

1,607 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You have to rebuild the kernel with wifi available on it config file.

Regards

0 Kudos
Reply