* rsi_91x: Failed to read status register on failed authentication
@ 2017-12-05 16:11 Alexey Brodkin
2017-12-06 7:13 ` Amitkumar Karwar
0 siblings, 1 reply; 6+ messages in thread
From: Alexey Brodkin @ 2017-12-05 16:11 UTC (permalink / raw)
To: linux-snps-arc
Hi Amit,
I'm seeing quite a strange behavior of RedPine module.
It connects perfectly fine to one of access points but fails
to connect to another.
Moreover after that failure RSI driver starts to flood me with
messages saying:
--------------------->8--------------------
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
--------------------->8--------------------
Below you may find details of my 2 experiments.
Note I use vanilla Linux kernel v4.14.4
Any ideas what could be wrong?
-Alexey
1. Working scenario
======================================================
# cat /etc/wpa_supplicant.conf?
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
? ssid="YYY"
? psk="zzz"
}
# iw wlan0 scan
BSS 80:19:34:1f:5e:50(on wlan0) -- associated
????????TSF: 248634601 usec (0d, 00:04:08)
????????freq: 2412
????????beacon interval: 100 TUs
????????capability: ESS Privacy ShortSlotTime (0x0411)
????????signal: -31.00 dBm
????????last seen: 0 ms ago
????????Information elements from Probe Response frame:
????????SSID: YYY
????????Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0?
????????DS Parameter set: channel 1
????????ERP: Barker_Preamble_Mode
????????Extended supported rates: 24.0 36.0 48.0 54.0?
????????RSN:?????* Version: 1
?????????????????* Group cipher: CCMP
?????????????????* Pairwise ciphers: CCMP
?????????????????* Authentication suites: PSK
?????????????????* Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
????????HT capabilities:
????????????????Capabilities: 0x1ec
????????????????????????HT20
????????????????????????SM Power Save disabled
????????????????????????RX HT20 SGI
????????????????????????RX HT40 SGI
????????????????????????TX STBC
????????????????????????RX STBC 1-stream
????????????????????????Max AMSDU length: 3839 bytes
????????????????????????No DSSS/CCK HT40
????????????????Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
????????????????Minimum RX AMPDU time spacing: 4 usec (0x05)
????????????????HT Max RX data rate: 300 Mbps
????????????????HT TX/RX MCS rate indexes supported: 0-15
????????HT operation:
?????????????????* primary channel: 1
?????????????????* secondary channel offset: no secondary
?????????????????* STA channel width: 20 MHz
?????????????????* RIFS: 0
?????????????????* HT protection: no
?????????????????* non-GF present: 1
?????????????????* OBSS non-GF present: 0
?????????????????* dual beacon: 0
?????????????????* dual CTS protection: 0
?????????????????* STBC beacon: 0
?????????????????* L-SIG TXOP Prot: 0
?????????????????* PCO active: 0
?????????????????* PCO phase: 0
????????Extended capabilities: Extended Channel Switching, 6
????????WMM:?????* Parameter version 1
?????????????????* BE: CW 15-1023, AIFSN 3
?????????????????* BK: CW 15-1023, AIFSN 7
?????????????????* VI: CW 7-15, AIFSN 2, TXOP 2976 usec
?????????????????* VO: CW 3-7, AIFSN 2, TXOP 1472 usec
????????WPS:?????* Version: 1.0
?????????????????* Wi-Fi Protected Setup State: 2 (Configured)
?????????????????* Response Type: 3 (AP)
?????????????????* UUID: 97b29264-d9a5-5551-88f9-62fbdacb7162
?????????????????* Manufacturer:??
?????????????????* Model:??
?????????????????* Model Number:??
?????????????????* Serial Number:??
?????????????????* Primary Device Type: 0-00000000-0
?????????????????* Device name:??
?????????????????* Config methods: Display, Keypad
?????????????????* Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
# ifconfig wlan0 up
rsi_91x: ===> Interface UP <===
rsi_91x: rsi_disable_ps: Cannot accept disable PS in PS_NONE state
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
# wlan0: authenticate with 80:19:34:1f:5e:50
wlan0: send auth to 80:19:34:1f:5e:50 (try 1/3)
wlan0: authenticated
wlan0: associate with 80:19:34:1f:5e:50 (try 1/3)
wlan0: RX AssocResp from 80:19:34:1f:5e:50 (capab=0x411 status=0 aid=1)
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: associated
rsi_91x: rsi_hal_key_config: Cipher 0xfac04 key_type: 1 key_len: 16
rsi_91x: rsi_mac80211_set_key: RSI set_key
rsi_91x: rsi_hal_key_config: Cipher 0xfac04 key_type: 2 key_len: 16
rsi_91x: rsi_mac80211_set_key: RSI set_key
# udhcpc -i wlan0
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending select for 10.42.1.137
udhcpc: lease of 10.42.1.137 obtained, lease time 3600
deleting routers
adding dns 10.42.1.1
# ifconfig?
lo????????Link encap:Local Loopback??
??????????inet addr:127.0.0.1??Mask:255.0.0.0
??????????inet6 addr: ::1/128 Scope:Host
??????????UP LOOPBACK RUNNING??MTU:65536??Metric:1
??????????RX packets:0 errors:0 dropped:0 overruns:0 frame:0
??????????TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
??????????collisions:0 txqueuelen:1000?
??????????RX bytes:0 (0.0 B)??TX bytes:0 (0.0 B)
wlan0?????Link encap:Ethernet??HWaddr 00:23:A7:65:9B:94??
??????????inet addr:10.42.1.137??Bcast:10.42.1.255??Mask:255.255.255.0
??????????inet6 addr: fe80::223:a7ff:fe65:9b94/64 Scope:Link
??????????UP BROADCAST RUNNING MULTICAST??MTU:1500??Metric:1
??????????RX packets:5 errors:0 dropped:0 overruns:0 frame:0
??????????TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
??????????collisions:0 txqueuelen:1000?
??????????RX bytes:1028 (1.0 KiB)??TX bytes:1738 (1.6 KiB)
======================================================
2. Failing scenario:
======================================================
# cat /etc/wpa_supplicant.conf?
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
? ssid="XXX"
? psk="zzz"
}
# iw wlan0 scan
BSS 6c:3b:6b:7d:a1:46(on wlan0)
????????TSF: 251623213323 usec (2d, 21:53:43)
????????freq: 2427
????????beacon interval: 100 TUs
????????capability: ESS Privacy ShortSlotTime (0x0411)
????????signal: -65.00 dBm
????????last seen: 0 ms ago
????????Information elements from Probe Response frame:
????????SSID: XXX
????????Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0?
????????DS Parameter set: channel 4
????????ERP: <no flags>
????????HT capabilities:
????????????????Capabilities: 0x106e
????????????????????????HT20/HT40
????????????????????????SM Power Save disabled
????????????????????????RX HT20 SGI
????????????????????????RX HT40 SGI
????????????????????????No RX STBC
????????????????????????Max AMSDU length: 3839 bytes
????????????????????????DSSS/CCK HT40
????????????????Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
????????????????Minimum RX AMPDU time spacing: No restriction (0x00)
????????????????HT RX MCS rate indexes supported: 0-15
????????????????HT TX MCS rate indexes are undefined
????????RSN:?????* Version: 1
?????????????????* Group cipher: CCMP
?????????????????* Pairwise ciphers: CCMP TKIP
?????????????????* Authentication suites: PSK
?????????????????* Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
????????Extended supported rates: 24.0 36.0 48.0 54.0?
????????HT operation:
?????????????????* primary channel: 4
?????????????????* secondary channel offset: above
?????????????????* STA channel width: any
?????????????????* RIFS: 0
?????????????????* HT protection: no
?????????????????* non-GF present: 0
?????????????????* OBSS non-GF present: 0
?????????????????* dual beacon: 0
?????????????????* dual CTS protection: 0
?????????????????* STBC beacon: 0
?????????????????* L-SIG TXOP Prot: 0
?????????????????* PCO active: 0
?????????????????* PCO phase: 0
????????WMM:?????* Parameter version 1
?????????????????* u-APSD
?????????????????* BE: CW 15-1023, AIFSN 3
?????????????????* BK: CW 15-1023, AIFSN 7
?????????????????* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
?????????????????* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
# ifconfig wlan0 up
rsi_91x: ===> Interface UP <===
rsi_91x: rsi_disable_ps: Cannot accept disable PS in PS_NONE state
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
# wlan0: authenticate with 6c:3b:6b:7d:a1:46
wlan0: send auth to 6c:3b:6b:7d:a1:46 (try 1/3)
wlan0: send auth to 6c:3b:6b:7d:a1:46 (try 2/3)
wlan0: send auth to 6c:3b:6b:7d:a1:46 (try 3/3)
rsi_91x: rsi_sdio_write_register_multiple: Synch Cmd53 write failed -16
rsi_91x: rsi_sdio_host_intf_write_pkt: Unable to write onto the card: -16
rsi_91x: rsi_send_mgmt_pkt: Failed to write the packet
wlan0: authentication with 6c:3b:6b:7d:a1:46 timed out
wlan0: authenticate with 6c:3b:6b:76:e0:ab
wlan0: send auth to 6c:3b:6b:76:e0:ab (try 1/3)
wlan0: send auth to 6c:3b:6b:76:e0:ab (try 2/3)
wlan0: send auth to 6c:3b:6b:76:e0:ab (try 3/3)
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
wlan0: authentication with 6c:3b:6b:76:e0:ab timed out
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
======================================================
^ permalink raw reply [flat|nested] 6+ messages in thread* rsi_91x: Failed to read status register on failed authentication
2017-12-05 16:11 rsi_91x: Failed to read status register on failed authentication Alexey Brodkin
@ 2017-12-06 7:13 ` Amitkumar Karwar
2017-12-14 18:56 ` rsi_91x: Low bandwidth: sends ~100 Kbits/sec, receives ~1.5 Mbits/sec Alexey Brodkin
2017-12-15 16:09 ` rsi_91x: Failed to read status register on failed authentication Alexey Brodkin
0 siblings, 2 replies; 6+ messages in thread
From: Amitkumar Karwar @ 2017-12-06 7:13 UTC (permalink / raw)
To: linux-snps-arc
On Tue, Dec 5, 2017 at 9:41 PM, Alexey Brodkin
<Alexey.Brodkin@synopsys.com> wrote:
> Hi Amit,
>
> I'm seeing quite a strange behavior of RedPine module.
> It connects perfectly fine to one of access points but fails
> to connect to another.
>
> Moreover after that failure RSI driver starts to flood me with
> messages saying:
> --------------------->8--------------------
> rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
> --------------------->8--------------------
>
> Below you may find details of my 2 experiments.
> Note I use vanilla Linux kernel v4.14.4
>
> Any ideas what could be wrong?
>
Could you enable driver debug zones and share dmesg log for analysis?
echo 0xffffffff > /sys/kernel/debug/phy0/debug_zone
Regards,
Amitkumar
^ permalink raw reply [flat|nested] 6+ messages in thread
* rsi_91x: Low bandwidth: sends ~100 Kbits/sec, receives ~1.5 Mbits/sec
2017-12-06 7:13 ` Amitkumar Karwar
@ 2017-12-14 18:56 ` Alexey Brodkin
[not found] ` <b4c2093d-cc2c-cdd3-52a5-73cefd2c189a@redpinesignals.com>
2017-12-15 16:09 ` rsi_91x: Failed to read status register on failed authentication Alexey Brodkin
1 sibling, 1 reply; 6+ messages in thread
From: Alexey Brodkin @ 2017-12-14 18:56 UTC (permalink / raw)
To: linux-snps-arc
Hi Amitkumar,
Yet another observation with RS-9113 module.
I managed to setup an access point on my board with RS-9113 connected either
via SDIO (this one is soldered on my board) or via USB (this is your RS9113
Evaluation Board Rev 4.0).
But regardless the module I use I still see the same bandwidth figures.
RS-9113 sends data at ~100 Kbits and receives at ~1.5-2 Mbits.
See below results of iperf3 runs (from development host side).
The board with RS-9113 acts as a server:
------------------------------------>8-----------------------------------
# iperf3 -c 192.168.111.1
Connecting to host 192.168.111.1, port 5201
[ 4] local 192.168.111.64 port 43430 connected to 192.168.111.1 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 328 KBytes 2.68 Mbits/sec 0 31.1 KBytes
[ 4] 1.00-2.00 sec 63.6 KBytes 521 Kbits/sec 1 31.1 KBytes
[ 4] 2.00-3.00 sec 191 KBytes 1.57 Mbits/sec 0 31.1 KBytes
[ 4] 3.00-4.00 sec 191 KBytes 1.56 Mbits/sec 0 32.5 KBytes
[ 4] 4.00-5.00 sec 191 KBytes 1.56 Mbits/sec 0 36.8 KBytes
[ 4] 5.00-6.00 sec 63.6 KBytes 521 Kbits/sec 0 38.2 KBytes
[ 4] 6.00-7.00 sec 63.6 KBytes 521 Kbits/sec 0 38.2 KBytes
[ 4] 7.00-8.00 sec 191 KBytes 1.56 Mbits/sec 0 48.1 KBytes
[ 4] 8.00-9.00 sec 255 KBytes 2.09 Mbits/sec 0 48.1 KBytes
[ 4] 9.00-10.00 sec 191 KBytes 1.56 Mbits/sec 0 48.1 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 1.69 MBytes 1.42 Mbits/sec 1 sender
[ 4] 0.00-10.00 sec 1.39 MBytes 1.16 Mbits/sec receiver
------------------------------------>8-----------------------------------
The board with RS-9113 acts as a server (but with "-R" it sends us data now):
------------------------------------>8-----------------------------------
# iperf3 -c 192.168.111.1 -R
Connecting to host 192.168.111.1, port 5201
Reverse mode, remote host 192.168.111.1 is sending
[ 4] local 192.168.111.64 port 45230 connected to 192.168.111.1 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.14 sec 15.6 KBytes 112 Kbits/sec
[ 4] 1.14-2.00 sec 2.83 KBytes 27.0 Kbits/sec
[ 4] 2.00-3.00 sec 12.7 KBytes 104 Kbits/sec
[ 4] 3.00-4.00 sec 14.1 KBytes 116 Kbits/sec
[ 4] 4.00-5.00 sec 12.7 KBytes 104 Kbits/sec
[ 4] 5.00-6.00 sec 14.1 KBytes 116 Kbits/sec
[ 4] 6.00-7.00 sec 14.1 KBytes 116 Kbits/sec
[ 4] 7.00-8.00 sec 12.7 KBytes 104 Kbits/sec
[ 4] 8.00-9.00 sec 14.1 KBytes 116 Kbits/sec
[ 4] 9.00-10.00 sec 12.7 KBytes 104 Kbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 296 KBytes 242 Kbits/sec 2 sender
[ 4] 0.00-10.00 sec 254 KBytes 208 Kbits/sec receiver
------------------------------------>8-----------------------------------
My configurations are as below.
hostapd.conf:
------------------------------------>8-----------------------------------
interface=wlan0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=AP_NAME
hw_mode=g
channel=1
------------------------------------>8-----------------------------------
wpa_supplicant.conf
------------------------------------>8-----------------------------------
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
ssid="AP_NAME"
psk="password"
}
------------------------------------>8-----------------------------------
Note I use vanilla Linux v4.14.4.
I'm wondering if you may see different results in your setup and if so
could you please suggest something for me to try.
Thanks in advance,
Alexey
P.S. I do remember about my previous email but so far I was not able to
get with the board to the place with "problematic" Wi-FI AP, once I get
there I'll grab longs for you.
^ permalink raw reply [flat|nested] 6+ messages in thread* rsi_91x: Failed to read status register on failed authentication
2017-12-06 7:13 ` Amitkumar Karwar
2017-12-14 18:56 ` rsi_91x: Low bandwidth: sends ~100 Kbits/sec, receives ~1.5 Mbits/sec Alexey Brodkin
@ 2017-12-15 16:09 ` Alexey Brodkin
1 sibling, 0 replies; 6+ messages in thread
From: Alexey Brodkin @ 2017-12-15 16:09 UTC (permalink / raw)
To: linux-snps-arc
Hi Amitkumar,
On Wed, 2017-12-06@12:43 +0530, Amitkumar Karwar wrote:
> On Tue, Dec 5, 2017 at 9:41 PM, Alexey Brodkin
> <Alexey.Brodkin@synopsys.com> wrote:
> > Hi Amit,
> >
> > I'm seeing quite a strange behavior of RedPine module.
> > It connects perfectly fine to one of access points but fails
> > to connect to another.
> >
> > Moreover after that failure RSI driver starts to flood me with
> > messages saying:
> > --------------------->8--------------------
> > rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register
> > --------------------->8--------------------
> >
> > Below you may find details of my 2 experiments.
> > Note I use vanilla Linux kernel v4.14.4
> >
> > Any ideas what could be wrong?
> >
>
> Could you enable driver debug zones and share dmesg log for analysis?
>
> echo 0xffffffff > /sys/kernel/debug/phy0/debug_zone
Please find attached log.
Let me know if you need more details.
-Alexey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2017.12.15-redpine.log
Type: text/x-log
Size: 96207 bytes
Desc: 2017.12.15-redpine.log
URL: <http://lists.infradead.org/pipermail/linux-snps-arc/attachments/20171215/d7eabb9d/attachment-0001.bin>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-12-15 16:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 16:11 rsi_91x: Failed to read status register on failed authentication Alexey Brodkin
2017-12-06 7:13 ` Amitkumar Karwar
2017-12-14 18:56 ` rsi_91x: Low bandwidth: sends ~100 Kbits/sec, receives ~1.5 Mbits/sec Alexey Brodkin
[not found] ` <b4c2093d-cc2c-cdd3-52a5-73cefd2c189a@redpinesignals.com>
2017-12-15 11:20 ` Alexey Brodkin
[not found] ` <3f553fb0-d1d2-59f1-32f3-53e993c544ca@redpinesignals.com>
2017-12-15 13:21 ` Alexey Brodkin
2017-12-15 16:09 ` rsi_91x: Failed to read status register on failed authentication Alexey Brodkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).