2014-04-10 18:11:41

by WebAV

[permalink] [raw]
Subject: Mwifiex driver on Globascal Mirabox

Hi,

Mwifiex driver doesn't work on Globalscale Mirabox (SD8787), when I do a
"iw mlan0 scan" command :

with a 3.12 kernel : mwifiex_cmd_timeout_func: Timeout cmd id () = 0x6,
act = 0x3

With a 3.14.0-next-20140409 : mwifiex_cmd_timeout_func: Timeout cmd id
() = 0x107, act = 0x0

dmesg :

mwifiex_sdio mmc0:0001:1: cmd: QUEUE_CMD: cmd=0x107, cmd_pending=1
mwifiex_sdio mmc0:0001:1: event: wakeup device...
mwifiex_sdio mmc0:0001:1: int: sdio_ireg = 0x3
mwifiex_sdio mmc0:0001:1: int: DNLD: wr_bitmap=0xffff
mwifiex_sdio mmc0:0001:1: info: cmd_sent=0 data_sent=0
mwifiex_sdio mmc0:0001:1: int: UPLD: rd_bitmap=0x1
mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000001
mwifiex_sdio mmc0:0001:1: data: port=0 mp_rd_bitmap=0x00000000
mwifiex_sdio mmc0:0001:1: info: RX: port=0 rx_len=10
mwifiex_sdio mmc0:0001:1: info: rx_len = 256 skb->len = 256
mwifiex_sdio mmc0:0001:1: info: mwifiex_sdio_card_to_host_mp_aggr: no
aggregation for cmd response
mwifiex_sdio mmc0:0001:1: info: RX: port: 0, rx_len: 256
mwifiex_sdio mmc0:0001:1: info: --- Rx: Event ---
mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000000
mwifiex_sdio mmc0:0001:1: info: no more rd_port available
mwifiex_sdio mmc0:0001:1: info: EVENT: AWAKE
mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107, act
0x0, len 80, seqno 0x26
mwifiex_sdio mmc0:0001:1: info: mwifiex_host_to_card_mp_aggr: tx
aggregation disabled
mwifiex_sdio mmc0:0001:1: data: mwifiex_host_to_card_mp_aggr: send
current buffer 0
mwifiex_sdio mmc0:0001:1: data: 3595 BSS(0-0): Data <= kernel
mwifiex_sdio mmc0:0001:1: data: 3996 BSS(0-0): Data <= kernel
mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id
(1397151033.670677) = 0x107, act = 0x0
mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
mwifiex_sdio mmc0:0001:1: last_cmd_index = 1
mwifiex_sdio mmc0:0001:1: last_cmd_id: 10 00 07 01 10 00 e4 00 10 00
mwifiex_sdio mmc0:0001:1: last_cmd_act: 01 00 00 00 01 00 ff 00 01 00
mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 0
mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 10 80 10 80 10 80 e4 80 10 80
mwifiex_sdio mmc0:0001:1: last_event_index = 4
mwifiex_sdio mmc0:0001:1: last_event: 00 00 0b 00 0a 00 0b 00 0a 00
mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1
mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
mwifiex_sdio mmc0:0001:1: cmd: FREE_CMD: cmd=0x107, cmd_pending=0
mwifiex_sdio mmc0:0001:1: cmd timeout
mwifiex_sdio mmc0:0001:1: info: aborting scan
mwifiex_sdio: Resetting card...
mwifiex_sdio: info: SDIO func num=1
mwifiex_sdio mmc0:0001:1: cmd: calling mwifiex_shutdown_drv...
mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 0, head = ee1180d0
mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb1c0, next = ee3fb380
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 1, head = ee1180dc
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 2, head = ee1180e8
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 0, head = ee1180d0
mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb380, next = ee3fb300
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 1, head = ee1180dc
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 2, head = ee1180e8
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 0, head = ee1180d0
mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb300, next = ee1180d0
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 1, head = ee1180dc
mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
bss_num = 0, i = 2, head = ee1180e8
mwifiex_sdio mmc0:0001:1: info: free cmd buffer
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 0
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 1
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 2
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 3
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 4
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 5
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 6
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 7
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 8
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 9
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 10
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 11
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 12
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 13
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 14
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 15
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 16
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 17
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 18
mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 19
mwifiex_sdio mmc0:0001:1: cmd: free cmd pool
mwifiex_sdio mmc0:0001:1: info: free scan table
mwifiex_sdio mmc0:0001:1: cmd: mwifiex_shutdown_drv done
mwifiex_sdio mmc0:0001:1: info: unregister device
mwifiex_sdio mmc0:0001:1: info: free adapter
mwifiex: info: mwifiex_free_adapter: free adapter
mmc0: card 0001 removed
mmc0: new high speed SDIO card at address 0001
mwifiex_sdio: info: vendor=0x02DF device=0x9119 class=0 function=1
mwifiex_sdio: info: SDIO FUNC1 IO port: 0x10000
mwifiex_sdio mmc0:0001:1: info: downloading FW image (447384 bytes)
mwifiex_sdio mmc0:0001:1: poll card status failed, tries = 100
mwifiex_sdio mmc0:0001:1: FW download with helper: poll status timeout @ 0
mwifiex_sdio mmc0:0001:1: prog_fw failed ret=0xffffffff
mwifiex: info: mwifiex_fw_dpc: unregister device
mwifiex: info: mwifiex_free_adapter: free adapter

Tell me if you need more information.















2014-04-11 06:54:00

by Avinash Patil

[permalink] [raw]
Subject: Re: Mwifiex driver on Globascal Mirabox

---Resending as plain text----

Hi,

Thanks for your email & logs.

What is FW version? You can see this in driver dmesg logs at load time.

Thanks,
Avinash

On Thu, Apr 10, 2014 at 11:41 PM, WebAV <[email protected]> wrote:
> Hi,
>
> Mwifiex driver doesn't work on Globalscale Mirabox (SD8787), when I do a "iw
> mlan0 scan" command :
>
> with a 3.12 kernel : mwifiex_cmd_timeout_func: Timeout cmd id () = 0x6, act
> = 0x3
>
> With a 3.14.0-next-20140409 : mwifiex_cmd_timeout_func: Timeout cmd id () =
> 0x107, act = 0x0
>
> dmesg :
>
> mwifiex_sdio mmc0:0001:1: cmd: QUEUE_CMD: cmd=0x107, cmd_pending=1
> mwifiex_sdio mmc0:0001:1: event: wakeup device...
> mwifiex_sdio mmc0:0001:1: int: sdio_ireg = 0x3
> mwifiex_sdio mmc0:0001:1: int: DNLD: wr_bitmap=0xffff
> mwifiex_sdio mmc0:0001:1: info: cmd_sent=0 data_sent=0
> mwifiex_sdio mmc0:0001:1: int: UPLD: rd_bitmap=0x1
> mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000001
> mwifiex_sdio mmc0:0001:1: data: port=0 mp_rd_bitmap=0x00000000
> mwifiex_sdio mmc0:0001:1: info: RX: port=0 rx_len=10
> mwifiex_sdio mmc0:0001:1: info: rx_len = 256 skb->len = 256
> mwifiex_sdio mmc0:0001:1: info: mwifiex_sdio_card_to_host_mp_aggr: no
> aggregation for cmd response
> mwifiex_sdio mmc0:0001:1: info: RX: port: 0, rx_len: 256
> mwifiex_sdio mmc0:0001:1: info: --- Rx: Event ---
> mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000000
> mwifiex_sdio mmc0:0001:1: info: no more rd_port available
> mwifiex_sdio mmc0:0001:1: info: EVENT: AWAKE
> mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107, act
> 0x0, len 80, seqno 0x26
> mwifiex_sdio mmc0:0001:1: info: mwifiex_host_to_card_mp_aggr: tx aggregation
> disabled
> mwifiex_sdio mmc0:0001:1: data: mwifiex_host_to_card_mp_aggr: send current
> buffer 0
> mwifiex_sdio mmc0:0001:1: data: 3595 BSS(0-0): Data <= kernel
> mwifiex_sdio mmc0:0001:1: data: 3996 BSS(0-0): Data <= kernel
> mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id
> (1397151033.670677) = 0x107, act = 0x0
> mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
> mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
> mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
> mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
> mwifiex_sdio mmc0:0001:1: last_cmd_index = 1
> mwifiex_sdio mmc0:0001:1: last_cmd_id: 10 00 07 01 10 00 e4 00 10 00
> mwifiex_sdio mmc0:0001:1: last_cmd_act: 01 00 00 00 01 00 ff 00 01 00
> mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 0
> mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 10 80 10 80 10 80 e4 80 10 80
> mwifiex_sdio mmc0:0001:1: last_event_index = 4
> mwifiex_sdio mmc0:0001:1: last_event: 00 00 0b 00 0a 00 0b 00 0a 00
> mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1
> mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
> mwifiex_sdio mmc0:0001:1: cmd: FREE_CMD: cmd=0x107, cmd_pending=0
> mwifiex_sdio mmc0:0001:1: cmd timeout
> mwifiex_sdio mmc0:0001:1: info: aborting scan
> mwifiex_sdio: Resetting card...
> mwifiex_sdio: info: SDIO func num=1
> mwifiex_sdio mmc0:0001:1: cmd: calling mwifiex_shutdown_drv...
> mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 0, head = ee1180d0
> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb1c0, next = ee3fb380
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 1, head = ee1180dc
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 2, head = ee1180e8
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 0, head = ee1180d0
> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb380, next = ee3fb300
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 1, head = ee1180dc
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 2, head = ee1180e8
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 0, head = ee1180d0
> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb300, next = ee1180d0
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 1, head = ee1180dc
> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
> bss_num = 0, i = 2, head = ee1180e8
> mwifiex_sdio mmc0:0001:1: info: free cmd buffer
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 0
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 1
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 2
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 3
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 4
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 5
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 6
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 7
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 8
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 9
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 10
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 11
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 12
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 13
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 14
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 15
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 16
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 17
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 18
> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 19
> mwifiex_sdio mmc0:0001:1: cmd: free cmd pool
> mwifiex_sdio mmc0:0001:1: info: free scan table
> mwifiex_sdio mmc0:0001:1: cmd: mwifiex_shutdown_drv done
> mwifiex_sdio mmc0:0001:1: info: unregister device
> mwifiex_sdio mmc0:0001:1: info: free adapter
> mwifiex: info: mwifiex_free_adapter: free adapter
> mmc0: card 0001 removed
> mmc0: new high speed SDIO card at address 0001
> mwifiex_sdio: info: vendor=0x02DF device=0x9119 class=0 function=1
> mwifiex_sdio: info: SDIO FUNC1 IO port: 0x10000
> mwifiex_sdio mmc0:0001:1: info: downloading FW image (447384 bytes)
> mwifiex_sdio mmc0:0001:1: poll card status failed, tries = 100
> mwifiex_sdio mmc0:0001:1: FW download with helper: poll status timeout @ 0
> mwifiex_sdio mmc0:0001:1: prog_fw failed ret=0xffffffff
> mwifiex: info: mwifiex_fw_dpc: unregister device
> mwifiex: info: mwifiex_free_adapter: free adapter
>
> Tell me if you need more information.
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

2014-04-11 14:50:39

by WebAV

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

Hi,

The FW is mwifiex 1.0 (14.66.9.p96) which I think is the last one.

Thanks,

Anthony

Le 11/04/2014 08:54, Avinash Patil a ?crit :
> ---Resending as plain text----
>
> Hi,
>
> Thanks for your email & logs.
>
> What is FW version? You can see this in driver dmesg logs at load time.
>
> Thanks,
> Avinash
>
> On Thu, Apr 10, 2014 at 11:41 PM, WebAV <[email protected]> wrote:
>> Hi,
>>
>> Mwifiex driver doesn't work on Globalscale Mirabox (SD8787), when I do a "iw
>> mlan0 scan" command :
>>
>> with a 3.12 kernel : mwifiex_cmd_timeout_func: Timeout cmd id () = 0x6, act
>> = 0x3
>>
>> With a 3.14.0-next-20140409 : mwifiex_cmd_timeout_func: Timeout cmd id () =
>> 0x107, act = 0x0
>>
>> dmesg :
>>
>> mwifiex_sdio mmc0:0001:1: cmd: QUEUE_CMD: cmd=0x107, cmd_pending=1
>> mwifiex_sdio mmc0:0001:1: event: wakeup device...
>> mwifiex_sdio mmc0:0001:1: int: sdio_ireg = 0x3
>> mwifiex_sdio mmc0:0001:1: int: DNLD: wr_bitmap=0xffff
>> mwifiex_sdio mmc0:0001:1: info: cmd_sent=0 data_sent=0
>> mwifiex_sdio mmc0:0001:1: int: UPLD: rd_bitmap=0x1
>> mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000001
>> mwifiex_sdio mmc0:0001:1: data: port=0 mp_rd_bitmap=0x00000000
>> mwifiex_sdio mmc0:0001:1: info: RX: port=0 rx_len=10
>> mwifiex_sdio mmc0:0001:1: info: rx_len = 256 skb->len = 256
>> mwifiex_sdio mmc0:0001:1: info: mwifiex_sdio_card_to_host_mp_aggr: no
>> aggregation for cmd response
>> mwifiex_sdio mmc0:0001:1: info: RX: port: 0, rx_len: 256
>> mwifiex_sdio mmc0:0001:1: info: --- Rx: Event ---
>> mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000000
>> mwifiex_sdio mmc0:0001:1: info: no more rd_port available
>> mwifiex_sdio mmc0:0001:1: info: EVENT: AWAKE
>> mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107, act
>> 0x0, len 80, seqno 0x26
>> mwifiex_sdio mmc0:0001:1: info: mwifiex_host_to_card_mp_aggr: tx aggregation
>> disabled
>> mwifiex_sdio mmc0:0001:1: data: mwifiex_host_to_card_mp_aggr: send current
>> buffer 0
>> mwifiex_sdio mmc0:0001:1: data: 3595 BSS(0-0): Data <= kernel
>> mwifiex_sdio mmc0:0001:1: data: 3996 BSS(0-0): Data <= kernel
>> mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id
>> (1397151033.670677) = 0x107, act = 0x0
>> mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
>> mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
>> mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
>> mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
>> mwifiex_sdio mmc0:0001:1: last_cmd_index = 1
>> mwifiex_sdio mmc0:0001:1: last_cmd_id: 10 00 07 01 10 00 e4 00 10 00
>> mwifiex_sdio mmc0:0001:1: last_cmd_act: 01 00 00 00 01 00 ff 00 01 00
>> mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 0
>> mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 10 80 10 80 10 80 e4 80 10 80
>> mwifiex_sdio mmc0:0001:1: last_event_index = 4
>> mwifiex_sdio mmc0:0001:1: last_event: 00 00 0b 00 0a 00 0b 00 0a 00
>> mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1
>> mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
>> mwifiex_sdio mmc0:0001:1: cmd: FREE_CMD: cmd=0x107, cmd_pending=0
>> mwifiex_sdio mmc0:0001:1: cmd timeout
>> mwifiex_sdio mmc0:0001:1: info: aborting scan
>> mwifiex_sdio: Resetting card...
>> mwifiex_sdio: info: SDIO func num=1
>> mwifiex_sdio mmc0:0001:1: cmd: calling mwifiex_shutdown_drv...
>> mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 0, head = ee1180d0
>> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb1c0, next = ee3fb380
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 1, head = ee1180dc
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 2, head = ee1180e8
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 0, head = ee1180d0
>> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb380, next = ee3fb300
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 1, head = ee1180dc
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 2, head = ee1180e8
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 0, head = ee1180d0
>> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb300, next = ee1180d0
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 1, head = ee1180dc
>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type = 0,
>> bss_num = 0, i = 2, head = ee1180e8
>> mwifiex_sdio mmc0:0001:1: info: free cmd buffer
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 0
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 1
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 2
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 3
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 4
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 5
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 6
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 7
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 8
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 9
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 10
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 11
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 12
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 13
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 14
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 15
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 16
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 17
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 18
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 19
>> mwifiex_sdio mmc0:0001:1: cmd: free cmd pool
>> mwifiex_sdio mmc0:0001:1: info: free scan table
>> mwifiex_sdio mmc0:0001:1: cmd: mwifiex_shutdown_drv done
>> mwifiex_sdio mmc0:0001:1: info: unregister device
>> mwifiex_sdio mmc0:0001:1: info: free adapter
>> mwifiex: info: mwifiex_free_adapter: free adapter
>> mmc0: card 0001 removed
>> mmc0: new high speed SDIO card at address 0001
>> mwifiex_sdio: info: vendor=0x02DF device=0x9119 class=0 function=1
>> mwifiex_sdio: info: SDIO FUNC1 IO port: 0x10000
>> mwifiex_sdio mmc0:0001:1: info: downloading FW image (447384 bytes)
>> mwifiex_sdio mmc0:0001:1: poll card status failed, tries = 100
>> mwifiex_sdio mmc0:0001:1: FW download with helper: poll status timeout @ 0
>> mwifiex_sdio mmc0:0001:1: prog_fw failed ret=0xffffffff
>> mwifiex: info: mwifiex_fw_dpc: unregister device
>> mwifiex: info: mwifiex_free_adapter: free adapter
>>
>> Tell me if you need more information.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html


2014-05-15 17:20:42

by Michael Howard

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox


On 15/05/2014 15:06, Avinash Patil wrote:
> Hi James/Anthony,
>
> If an unsupported command is downloaded to FW, it results into command
> response not supported - code 0x2.
> It wouldnt result into command timeout.
> According to our internal discussions, this issue is seen only on
> Globalscale mirabox where SDIO controller is mvsdio.
>
> "On Mirabox the SDIO controller is mvsdio. It polls for interrupts but
> polling itself doesn’t seem to be the problem.
> In the log, I got from another person it seems that there is no
> SDIO_INT bit in controller “intr” register after scan command is sent.
> Other commands are fine, only scan commands fail. I don’t why scan
> (0x06 or 0x107) is special in this case."
>
> Hi Anthony,
>
> Could you please enable dynamic debug on mwifiex, mwifiex_sdio &
> mvsdio driver; this will confirm if this is same issue.
>
> Thanks,
> Avinash.
>
Using kernel 3.15.0-rc5, starting hostapd results in;

May 15 17:11:04 mirabox kernel: mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd
0x112 error, result=0x2

hostapd runs but there in no AP.

If I can be of any help testing/debugging just say so.

Cheers,
Mike.

--



2014-05-16 04:09:05

by Avinash Patil

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

Hi Michael,

This is different issue. We are trying to download 11AC_CFG command on
SD8787 where 11ac is not supported.
Thanks for reporting this; we are looking into it.

Thanks,
Avinash

On Thu, May 15, 2014 at 10:45 PM, Michael Howard
<[email protected]> wrote:
>
> On 15/05/2014 15:06, Avinash Patil wrote:
>>
>> Hi James/Anthony,
>>
>> If an unsupported command is downloaded to FW, it results into command
>> response not supported - code 0x2.
>> It wouldnt result into command timeout.
>> According to our internal discussions, this issue is seen only on
>> Globalscale mirabox where SDIO controller is mvsdio.
>>
>> "On Mirabox the SDIO controller is mvsdio. It polls for interrupts but
>> polling itself doesn’t seem to be the problem.
>> In the log, I got from another person it seems that there is no
>> SDIO_INT bit in controller “intr” register after scan command is sent.
>> Other commands are fine, only scan commands fail. I don’t why scan
>> (0x06 or 0x107) is special in this case."
>>
>> Hi Anthony,
>>
>> Could you please enable dynamic debug on mwifiex, mwifiex_sdio &
>> mvsdio driver; this will confirm if this is same issue.
>>
>> Thanks,
>> Avinash.
>>
> Using kernel 3.15.0-rc5, starting hostapd results in;
>
> May 15 17:11:04 mirabox kernel: mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd
> 0x112 error, result=0x2
>
> hostapd runs but there in no AP.
>
> If I can be of any help testing/debugging just say so.
>
> Cheers,
> Mike.
>
> --
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

2014-05-15 14:06:31

by Avinash Patil

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

Hi James/Anthony,

If an unsupported command is downloaded to FW, it results into command
response not supported - code 0x2.
It wouldnt result into command timeout.
According to our internal discussions, this issue is seen only on
Globalscale mirabox where SDIO controller is mvsdio.

"On Mirabox the SDIO controller is mvsdio. It polls for interrupts but
polling itself doesn’t seem to be the problem.
In the log, I got from another person it seems that there is no
SDIO_INT bit in controller “intr” register after scan command is sent.
Other commands are fine, only scan commands fail. I don’t why scan
(0x06 or 0x107) is special in this case."

Hi Anthony,

Could you please enable dynamic debug on mwifiex, mwifiex_sdio &
mvsdio driver; this will confirm if this is same issue.

Thanks,
Avinash.



On Thu, May 15, 2014 at 3:21 AM, James Cameron <[email protected]> wrote:
> On Wed, May 14, 2014 at 11:43:16AM +0200, WebAV wrote:
>> The FW is mwifiex 1.0 (14.66.9.p96) which I think is the last one.
>> [...]
>> mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107,
>> [...]
>> mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id (1397151033.670677) = 0x107, act = 0x0
>
> My guess is that the driver has sent an extended scan command to
> firmware which does not support it, the result is a timeout. If I'm
> right, what we're missing is a patch that uses the new fw_api_ver
> before scan.
>
> The inability to recover afterwards is a different problem.
>
> --
> James Cameron
> http://quozl.linux.org.au/


Attachments:
dmesg_scan_timeout-2.log (160.36 kB)

2014-05-14 09:43:22

by WebAV

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

Hi,

Did you have the time to look at the problem ?

It still not working with the last pathes

Thanks,

Anthony

Le 11/04/2014 16:50, WebAV a ?crit :
> Hi,
>
> The FW is mwifiex 1.0 (14.66.9.p96) which I think is the last one.
>
> Thanks,
>
> Anthony
>
> Le 11/04/2014 08:54, Avinash Patil a ?crit :
>> ---Resending as plain text----
>>
>> Hi,
>>
>> Thanks for your email & logs.
>>
>> What is FW version? You can see this in driver dmesg logs at load time.
>>
>> Thanks,
>> Avinash
>>
>> On Thu, Apr 10, 2014 at 11:41 PM, WebAV <[email protected]> wrote:
>>> Hi,
>>>
>>> Mwifiex driver doesn't work on Globalscale Mirabox (SD8787), when I
>>> do a "iw
>>> mlan0 scan" command :
>>>
>>> with a 3.12 kernel : mwifiex_cmd_timeout_func: Timeout cmd id () =
>>> 0x6, act
>>> = 0x3
>>>
>>> With a 3.14.0-next-20140409 : mwifiex_cmd_timeout_func: Timeout cmd
>>> id () =
>>> 0x107, act = 0x0
>>>
>>> dmesg :
>>>
>>> mwifiex_sdio mmc0:0001:1: cmd: QUEUE_CMD: cmd=0x107, cmd_pending=1
>>> mwifiex_sdio mmc0:0001:1: event: wakeup device...
>>> mwifiex_sdio mmc0:0001:1: int: sdio_ireg = 0x3
>>> mwifiex_sdio mmc0:0001:1: int: DNLD: wr_bitmap=0xffff
>>> mwifiex_sdio mmc0:0001:1: info: cmd_sent=0 data_sent=0
>>> mwifiex_sdio mmc0:0001:1: int: UPLD: rd_bitmap=0x1
>>> mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000001
>>> mwifiex_sdio mmc0:0001:1: data: port=0 mp_rd_bitmap=0x00000000
>>> mwifiex_sdio mmc0:0001:1: info: RX: port=0 rx_len=10
>>> mwifiex_sdio mmc0:0001:1: info: rx_len = 256 skb->len = 256
>>> mwifiex_sdio mmc0:0001:1: info: mwifiex_sdio_card_to_host_mp_aggr: no
>>> aggregation for cmd response
>>> mwifiex_sdio mmc0:0001:1: info: RX: port: 0, rx_len: 256
>>> mwifiex_sdio mmc0:0001:1: info: --- Rx: Event ---
>>> mwifiex_sdio mmc0:0001:1: data: mp_rd_bitmap=0x00000000
>>> mwifiex_sdio mmc0:0001:1: info: no more rd_port available
>>> mwifiex_sdio mmc0:0001:1: info: EVENT: AWAKE
>>> mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107,
>>> act
>>> 0x0, len 80, seqno 0x26
>>> mwifiex_sdio mmc0:0001:1: info: mwifiex_host_to_card_mp_aggr: tx
>>> aggregation
>>> disabled
>>> mwifiex_sdio mmc0:0001:1: data: mwifiex_host_to_card_mp_aggr: send
>>> current
>>> buffer 0
>>> mwifiex_sdio mmc0:0001:1: data: 3595 BSS(0-0): Data <= kernel
>>> mwifiex_sdio mmc0:0001:1: data: 3996 BSS(0-0): Data <= kernel
>>> mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id
>>> (1397151033.670677) = 0x107, act = 0x0
>>> mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
>>> mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
>>> mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
>>> mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
>>> mwifiex_sdio mmc0:0001:1: last_cmd_index = 1
>>> mwifiex_sdio mmc0:0001:1: last_cmd_id: 10 00 07 01 10 00 e4 00 10 00
>>> mwifiex_sdio mmc0:0001:1: last_cmd_act: 01 00 00 00 01 00 ff 00 01 00
>>> mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 0
>>> mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 10 80 10 80 10 80 e4 80
>>> 10 80
>>> mwifiex_sdio mmc0:0001:1: last_event_index = 4
>>> mwifiex_sdio mmc0:0001:1: last_event: 00 00 0b 00 0a 00 0b 00 0a 00
>>> mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1
>>> mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
>>> mwifiex_sdio mmc0:0001:1: cmd: FREE_CMD: cmd=0x107, cmd_pending=0
>>> mwifiex_sdio mmc0:0001:1: cmd timeout
>>> mwifiex_sdio mmc0:0001:1: info: aborting scan
>>> mwifiex_sdio: Resetting card...
>>> mwifiex_sdio: info: SDIO func num=1
>>> mwifiex_sdio mmc0:0001:1: cmd: calling mwifiex_shutdown_drv...
>>> mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 0, head = ee1180d0
>>> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb1c0, next = ee3fb380
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 1, head = ee1180dc
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 2, head = ee1180e8
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 0, head = ee1180d0
>>> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb380, next = ee3fb300
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 1, head = ee1180dc
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 2, head = ee1180e8
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 0, head = ee1180d0
>>> mwifiex_sdio mmc0:0001:1: info: Delete node ee3fb300, next = ee1180d0
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 1, head = ee1180dc
>>> mwifiex_sdio mmc0:0001:1: info: delete BSS priority table, bss_type
>>> = 0,
>>> bss_num = 0, i = 2, head = ee1180e8
>>> mwifiex_sdio mmc0:0001:1: info: free cmd buffer
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 0
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 1
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 2
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 3
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 4
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 5
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 6
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 7
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 8
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 9
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 10
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 11
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 12
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 13
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 14
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 15
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 16
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 17
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 18
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd buffer 19
>>> mwifiex_sdio mmc0:0001:1: cmd: free cmd pool
>>> mwifiex_sdio mmc0:0001:1: info: free scan table
>>> mwifiex_sdio mmc0:0001:1: cmd: mwifiex_shutdown_drv done
>>> mwifiex_sdio mmc0:0001:1: info: unregister device
>>> mwifiex_sdio mmc0:0001:1: info: free adapter
>>> mwifiex: info: mwifiex_free_adapter: free adapter
>>> mmc0: card 0001 removed
>>> mmc0: new high speed SDIO card at address 0001
>>> mwifiex_sdio: info: vendor=0x02DF device=0x9119 class=0 function=1
>>> mwifiex_sdio: info: SDIO FUNC1 IO port: 0x10000
>>> mwifiex_sdio mmc0:0001:1: info: downloading FW image (447384 bytes)
>>> mwifiex_sdio mmc0:0001:1: poll card status failed, tries = 100
>>> mwifiex_sdio mmc0:0001:1: FW download with helper: poll status
>>> timeout @ 0
>>> mwifiex_sdio mmc0:0001:1: prog_fw failed ret=0xffffffff
>>> mwifiex: info: mwifiex_fw_dpc: unregister device
>>> mwifiex: info: mwifiex_free_adapter: free adapter
>>>
>>> Tell me if you need more information.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe
>>> linux-wireless" in
>>> the body of a message to [email protected]
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>


2014-05-15 21:41:18

by James Cameron

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

On Thu, May 15, 2014 at 07:36:29PM +0530, Avinash Patil wrote:
> If an unsupported command is downloaded to FW, it results into
> command response not supported - code 0x2.

Thanks. Is 0x107 supported on 14.66.9.p96?

--
James Cameron
http://quozl.linux.org.au/

2014-05-14 21:51:51

by James Cameron

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

On Wed, May 14, 2014 at 11:43:16AM +0200, WebAV wrote:
> The FW is mwifiex 1.0 (14.66.9.p96) which I think is the last one.
> [...]
> mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107,
> [...]
> mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id (1397151033.670677) = 0x107, act = 0x0

My guess is that the driver has sent an extended scan command to
firmware which does not support it, the result is a timeout. If I'm
right, what we're missing is a patch that uses the new fw_api_ver
before scan.

The inability to recover afterwards is a different problem.

--
James Cameron
http://quozl.linux.org.au/

2014-05-16 04:21:12

by Avinash Patil

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

Hi James,

Yes; extended scan command 0x107 is supported on SD8787 p96 FW.

Thanks,
Avinash

On Fri, May 16, 2014 at 3:11 AM, James Cameron <[email protected]> wrote:
> On Thu, May 15, 2014 at 07:36:29PM +0530, Avinash Patil wrote:
>> If an unsupported command is downloaded to FW, it results into
>> command response not supported - code 0x2.
>
> Thanks. Is 0x107 supported on 14.66.9.p96?
>
> --
> James Cameron
> http://quozl.linux.org.au/

2014-05-15 22:03:49

by WebAV

[permalink] [raw]
Subject: Re: Mwifiex driver on Globalscale Mirabox

Hi,

Thanks to all for these answers. For me, the problem seems to be a
missing interruption after the scan command is send but I don't
understand why.

Avinash, I'll send you the dmesg log with the dynamic debug enabled for
the modules you've specified.

Thanks for your help,

Anthony

Le 15/05/2014 16:06, Avinash Patil a écrit :
> Hi James/Anthony,
>
> If an unsupported command is downloaded to FW, it results into command
> response not supported - code 0x2.
> It wouldnt result into command timeout.
> According to our internal discussions, this issue is seen only on
> Globalscale mirabox where SDIO controller is mvsdio.
>
> "On Mirabox the SDIO controller is mvsdio. It polls for interrupts but
> polling itself doesn’t seem to be the problem.
> In the log, I got from another person it seems that there is no
> SDIO_INT bit in controller “intr” register after scan command is sent.
> Other commands are fine, only scan commands fail. I don’t why scan
> (0x06 or 0x107) is special in this case."
>
> Hi Anthony,
>
> Could you please enable dynamic debug on mwifiex, mwifiex_sdio &
> mvsdio driver; this will confirm if this is same issue.
>
> Thanks,
> Avinash.
>
>
>
> On Thu, May 15, 2014 at 3:21 AM, James Cameron <[email protected]> wrote:
>> On Wed, May 14, 2014 at 11:43:16AM +0200, WebAV wrote:
>>> The FW is mwifiex 1.0 (14.66.9.p96) which I think is the last one.
>>> [...]
>>> mwifiex_sdio mmc0:0001:1: cmd: DNLD_CMD: (1397151023.654452): 0x107,
>>> [...]
>>> mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id (1397151033.670677) = 0x107, act = 0x0
>> My guess is that the driver has sent an extended scan command to
>> firmware which does not support it, the result is a timeout. If I'm
>> right, what we're missing is a patch that uses the new fw_api_ver
>> before scan.
>>
>> The inability to recover afterwards is a different problem.
>>
>> --
>> James Cameron
>> http://quozl.linux.org.au/


Attachments:
dmsg_timeout_mirabox.log (75.54 kB)