Hi,

On 06/14/2014 02:47 PM, Александр Берсенев wrote:
> Hi,
> 
> I have wifi working on cubietruck, but after several minutes of operation 
> it stops work. The kernel was compiled from the latest sunxi-devel branch 
> of linux-sunxi repo.
> 
> Ifconfig says that wlan1 is running, but all operation fails by timeout.
> 
> # iwlist wlan1 scan
> wlan1     Interface doesn't support scanning : Connection timed out
> 
> # time iwconfig wlan1
> wlan1     IEEE 802.11bgn  ESSID:off/any  
>           Mode:Managed  Access Point: Not-Associated   
>           Retry short limit:7   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           
> real    0m4.999s
> user    0m0.000s
> sys     0m0.010s
> 
> 
> Each second two messages appears in dmesg:
> brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x0a020, err: 
> -110
> brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting 
> operation 
> 
> More related messages:
> brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_cfg80211_get_tx_power: error (-110)
> brcmfmac: brcmf_do_escan: error (-110)
> brcmfmac: brcmf_cfg80211_scan: scan error (-110)
> 
> The command rmmod brcmfmac never finishes.
> 
> Also, when wifi stops work, mmc error messages repeat in dmesg:
> [  245.780430] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD SBE !!

Right, this is the infamous SBE error, a known issue, for which I've been
unable to find a fix. Any help with fixing this is very much welcome.

After the first SBE error any commands reading data from the device
will fail with a DTO error. But it is the first SBE error which seems
to kill things. I've reviewed the sunxi-mmc code countless times and tried
various approaches (such as resetting the entire mmc controller) to work
around this, but all without success.

Regards,

Hans

> [  245.780489] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  245.780550] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110
> [  245.780561] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, 
> send NAK
> [  245.784798] brcmfmac: brcmf_sdiod_regrw_helper: failed to write data 
> F1@0x0a040, err: -5
> [  245.784912] brcmfmac: brcmf_sdio_hdparse: seq 4: sequence number error, 
> expect 5
> [  246.122616] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD DTO !!
> [  246.122672] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  246.460309] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD DTO !!
> [  246.460354] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  246.797996] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD DTO !!
> [  246.798043] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  246.798085] brcmfmac: brcmf_sdiod_regrw_helper: failed to read data 
> F1@0x0a020, err: -110
> [  246.798115] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, 
> halting operation
> [  247.133900] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD DTO !!
> [  247.133947] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  247.471573] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD DTO !!
> [  247.471613] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  247.809240] sunxi-mmc 1c12000.mmc: smc 1 err, cmd 53, RD DTO !!
> [  247.809283] sunxi-mmc 1c12000.mmc: data error, sending stop command
> [  247.809323] brcmfmac: brcmf_sdiod_regrw_helper: failed to read data 
> F1@0x0a020, err: -110
> [  247.809354] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, 
> halting operation
> 
> When wifi module is unloaded there are not any mmc errors.
> 
> I use dd if=/dev/zero bs=64k command via ssh to test wifi.
> 
> I can also check other versions of kernel.
> 
> Best,
> Alexander Bersenev
> 
> пятница, 13 июня 2014 г., 2:26:56 UTC+6 пользователь Hans de Goede написал:
>>
>> Hi, 
>>
>> On 06/12/2014 03:21 PM, [email protected] <javascript:> wrote: 
>>> I added the ap6210.txt file. Now I get... 
>>>
>>> root@linaro-developer:~# dmesg | grep brcm 
>>> [   14.656712] brcmfmac: F1 signature read @0x18000000=0x1591a962 
>>> [   15.123388] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = 
>>> wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d 
>>> [   15.208407] brcmfmac: brcmf_fil_cmd_data: Failed err=-23 
>>> [   15.259285] brcmfmac: brcmf_fil_cmd_data: Failed err=-23 
>>> [   15.290611] brcmfmac: brcmf_fil_cmd_data: Failed err=-23 
>>> [   15.330720] brcmfmac: brcmf_fil_cmd_data: Failed err=-23 
>>> [   15.345610] brcmfmac: brcmf_fil_cmd_data: Failed err=-23 
>>> [   15.396557] brcmfmac: brcmf_fil_cmd_data: Failed err=-23 
>>> [   15.440398] usbcore: registered new interface driver brcmfmac 
>>
>> Those are "normal" this is the brcmfmac driver trying to enable some 
>> features which are not supported on this model wifi chip. 
>>
>> Regards, 
>>
>> Hans 
>>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to