Linux-Wireless Archive on lore.kernel.org
 help / color / Atom feed
* [Linux Realtek Wi-Fi support] rtl8192ee related bug
@ 2019-08-09  5:25 Sergey Kharitonov
  2019-08-10 17:16 ` Larry Finger
  0 siblings, 1 reply; 7+ messages in thread
From: Sergey Kharitonov @ 2019-08-09  5:25 UTC (permalink / raw)
  To: linux-wireless

Dear Linux-Wireless,
Some time ago a bug was reported
https://bugzilla.kernel.org/show_bug.cgi?id=202943 related to
rtl8192ee, the essence of which is high ping latency (even to the
access point) without downloading something. If you generate a network
load with a background download or just ping -i 0.001 -s 512.... the
latency stabilizes and stays low.
I tested my TP-Link TL-WN881ND v2 adapters (I got two of them in my
PCs plugged in different motherboards (ASUS and MSI)) and the problem
still persists in kernel 5.2.6 (archlinux current default). Just to
mention, I tested with different module options and also two available
firmwares I found (rtlwifi/rtl8192eefw.bin and
rtlwifi/rtl8192eefw_new.bin).
Would you please take some time to look at the bug? I can provide any
additional information needed.
Please let me know if we can make rtl8192ee driver better.

Best regards,
Sergey Kharitonov

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-09  5:25 [Linux Realtek Wi-Fi support] rtl8192ee related bug Sergey Kharitonov
@ 2019-08-10 17:16 ` Larry Finger
  2019-08-10 18:13   ` Sergey Kharitonov
  0 siblings, 1 reply; 7+ messages in thread
From: Larry Finger @ 2019-08-10 17:16 UTC (permalink / raw)
  To: Sergey Kharitonov, linux-wireless

On 8/9/19 12:25 AM, Sergey Kharitonov wrote:
> Dear Linux-Wireless,
> Some time ago a bug was reported
> https://bugzilla.kernel.org/show_bug.cgi?id=202943 related to
> rtl8192ee, the essence of which is high ping latency (even to the
> access point) without downloading something. If you generate a network
> load with a background download or just ping -i 0.001 -s 512.... the
> latency stabilizes and stays low.
> I tested my TP-Link TL-WN881ND v2 adapters (I got two of them in my
> PCs plugged in different motherboards (ASUS and MSI)) and the problem
> still persists in kernel 5.2.6 (archlinux current default). Just to
> mention, I tested with different module options and also two available
> firmwares I found (rtlwifi/rtl8192eefw.bin and
> rtlwifi/rtl8192eefw_new.bin).
> Would you please take some time to look at the bug? I can provide any
> additional information needed.
> Please let me know if we can make rtl8192ee driver better.

Sergey,

I have plans to make some improvements on the driver, and I will investigate 
your issue.

I do handle the issues on the drivers I have posted at GitHub.com under the user 
lwfinger, and I follow this list, but I do not look at the kernel bugzilla for 
Realtek wifi issues.

Larry


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-10 17:16 ` Larry Finger
@ 2019-08-10 18:13   ` Sergey Kharitonov
  2019-08-10 19:45     ` Larry Finger
  2019-08-30 20:36     ` Larry Finger
  0 siblings, 2 replies; 7+ messages in thread
From: Sergey Kharitonov @ 2019-08-10 18:13 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless

Dear Mr. Finger!
Thank you for paying attention to the problem. I've just posted an
updated information to that bug before receiving this message.

I get these results
~]$ ping 192.168.88.1
PING 192.168.88.1 (192.168.88.1) 56(84) bytes of data.
64 bytes from 192.168.88.1: icmp_seq=1 ttl=64 time=0.746 ms
64 bytes from 192.168.88.1: icmp_seq=2 ttl=64 time=0.868 ms
64 bytes from 192.168.88.1: icmp_seq=3 ttl=64 time=0.853 ms
64 bytes from 192.168.88.1: icmp_seq=4 ttl=64 time=0.868 ms
64 bytes from 192.168.88.1: icmp_seq=5 ttl=64 time=0.818 ms
64 bytes from 192.168.88.1: icmp_seq=6 ttl=64 time=0.844 ms
64 bytes from 192.168.88.1: icmp_seq=7 ttl=64 time=0.841 ms
64 bytes from 192.168.88.1: icmp_seq=8 ttl=64 time=0.913 ms
64 bytes from 192.168.88.1: icmp_seq=9 ttl=64 time=0.844 ms
64 bytes from 192.168.88.1: icmp_seq=10 ttl=64 time=0.886 ms
^C
--- 192.168.88.1 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 387ms
rtt min/avg/max/mdev = 0.746/0.848/0.913/0.044 ms

with a driver from rtl8192ee_revised.tar.bz2 file in
https://github.com/lwfinger/rtlwifi_new/tree/extended repository built
against Linux 4.19.65-1-lts ArchLinux current LTS kernel.

Connection speed and stability on a heavy load are also perfect.

Hope this info would help solving current rtl8192ee problem.

Please let me know if any additional info is needed.

Best regards,
Sergey Kharitonov

On Sat, Aug 10, 2019 at 9:16 PM Larry Finger <Larry.Finger@lwfinger.net> wrote:
>
> On 8/9/19 12:25 AM, Sergey Kharitonov wrote:
> > Dear Linux-Wireless,
> > Some time ago a bug was reported
> > https://bugzilla.kernel.org/show_bug.cgi?id=202943 related to
> > rtl8192ee, the essence of which is high ping latency (even to the
> > access point) without downloading something. If you generate a network
> > load with a background download or just ping -i 0.001 -s 512.... the
> > latency stabilizes and stays low.
> > I tested my TP-Link TL-WN881ND v2 adapters (I got two of them in my
> > PCs plugged in different motherboards (ASUS and MSI)) and the problem
> > still persists in kernel 5.2.6 (archlinux current default). Just to
> > mention, I tested with different module options and also two available
> > firmwares I found (rtlwifi/rtl8192eefw.bin and
> > rtlwifi/rtl8192eefw_new.bin).
> > Would you please take some time to look at the bug? I can provide any
> > additional information needed.
> > Please let me know if we can make rtl8192ee driver better.
>
> Sergey,
>
> I have plans to make some improvements on the driver, and I will investigate
> your issue.
>
> I do handle the issues on the drivers I have posted at GitHub.com under the user
> lwfinger, and I follow this list, but I do not look at the kernel bugzilla for
> Realtek wifi issues.
>
> Larry
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-10 18:13   ` Sergey Kharitonov
@ 2019-08-10 19:45     ` Larry Finger
  2019-08-30 20:36     ` Larry Finger
  1 sibling, 0 replies; 7+ messages in thread
From: Larry Finger @ 2019-08-10 19:45 UTC (permalink / raw)
  To: Sergey Kharitonov; +Cc: linux-wireless

On 8/10/19 1:13 PM, Sergey Kharitonov wrote:
> Dear Mr. Finger!
> Thank you for paying attention to the problem. I've just posted an
> updated information to that bug before receiving this message.
> 
> I get these results
> ~]$ ping 192.168.88.1
> PING 192.168.88.1 (192.168.88.1) 56(84) bytes of data.
> 64 bytes from 192.168.88.1: icmp_seq=1 ttl=64 time=0.746 ms
> 64 bytes from 192.168.88.1: icmp_seq=2 ttl=64 time=0.868 ms
> 64 bytes from 192.168.88.1: icmp_seq=3 ttl=64 time=0.853 ms
> 64 bytes from 192.168.88.1: icmp_seq=4 ttl=64 time=0.868 ms
> 64 bytes from 192.168.88.1: icmp_seq=5 ttl=64 time=0.818 ms
> 64 bytes from 192.168.88.1: icmp_seq=6 ttl=64 time=0.844 ms
> 64 bytes from 192.168.88.1: icmp_seq=7 ttl=64 time=0.841 ms
> 64 bytes from 192.168.88.1: icmp_seq=8 ttl=64 time=0.913 ms
> 64 bytes from 192.168.88.1: icmp_seq=9 ttl=64 time=0.844 ms
> 64 bytes from 192.168.88.1: icmp_seq=10 ttl=64 time=0.886 ms
> ^C
> --- 192.168.88.1 ping statistics ---
> 10 packets transmitted, 10 received, 0% packet loss, time 387ms
> rtt min/avg/max/mdev = 0.746/0.848/0.913/0.044 ms
> 
> with a driver from rtl8192ee_revised.tar.bz2 file in
> https://github.com/lwfinger/rtlwifi_new/tree/extended repository built
> against Linux 4.19.65-1-lts ArchLinux current LTS kernel.
> 
> Connection speed and stability on a heavy load are also perfect.
> 
> Hope this info would help solving current rtl8192ee problem.
> 
> Please let me know if any additional info is needed.

That driver is totally different from the one in the kernel. It comes from the 
group that writes the combined drivers for Windows, FreeBSD, and Linux. The 
coding there is  completely inappropriate for inclusion in the kernel. I'm glad 
that it works for you.

I will use its PCI communications to see what it does differently from the 
kernel version, and I will extract the embedded firmware in that driver and try 
it with the kernel driver.

Larry




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-10 18:13   ` Sergey Kharitonov
  2019-08-10 19:45     ` Larry Finger
@ 2019-08-30 20:36     ` Larry Finger
  2019-08-30 21:45       ` Sergey Kharitonov
  1 sibling, 1 reply; 7+ messages in thread
From: Larry Finger @ 2019-08-30 20:36 UTC (permalink / raw)
  To: Sergey Kharitonov; +Cc: linux-wireless

On 8/10/19 1:13 PM, Sergey Kharitonov wrote:
> Dear Mr. Finger!
> Thank you for paying attention to the problem. I've just posted an
> updated information to that bug before receiving this message.
> 
> I get these results
> ~]$ ping 192.168.88.1
> PING 192.168.88.1 (192.168.88.1) 56(84) bytes of data.
> 64 bytes from 192.168.88.1: icmp_seq=1 ttl=64 time=0.746 ms
> 64 bytes from 192.168.88.1: icmp_seq=2 ttl=64 time=0.868 ms
> 64 bytes from 192.168.88.1: icmp_seq=3 ttl=64 time=0.853 ms
> 64 bytes from 192.168.88.1: icmp_seq=4 ttl=64 time=0.868 ms
> 64 bytes from 192.168.88.1: icmp_seq=5 ttl=64 time=0.818 ms
> 64 bytes from 192.168.88.1: icmp_seq=6 ttl=64 time=0.844 ms
> 64 bytes from 192.168.88.1: icmp_seq=7 ttl=64 time=0.841 ms
> 64 bytes from 192.168.88.1: icmp_seq=8 ttl=64 time=0.913 ms
> 64 bytes from 192.168.88.1: icmp_seq=9 ttl=64 time=0.844 ms
> 64 bytes from 192.168.88.1: icmp_seq=10 ttl=64 time=0.886 ms
> ^C
> --- 192.168.88.1 ping statistics ---
> 10 packets transmitted, 10 received, 0% packet loss, time 387ms
> rtt min/avg/max/mdev = 0.746/0.848/0.913/0.044 ms
> 
> with a driver from rtl8192ee_revised.tar.bz2 file in
> https://github.com/lwfinger/rtlwifi_new/tree/extended repository built
> against Linux 4.19.65-1-lts ArchLinux current LTS kernel.

I have completed but not yet sent some updates for rtl8192ee. Using them and 
kernel 5.3-rc6, I am getting the following:

--- 192.168.1.1 ping statistics ---
100 packets transmitted, 100 received, 0% packet loss, time 99134ms
rtt min/avg/max/mdev = 0.881/1.487/8.198/0.844 ms

This is using the "old" firmware with the following md5sum:

c8d25646cbc9efdcb818fc95ad5836a9  /lib/firmware/rtlwifi/rtl8192eefw.bin

The new driver patches convert a set of macros to read and write the descriptors 
into inline routines. The calling sequences are also converted from u8 * to 
__le32 *, but I would not expect much improvement with the latter changes.

Using a local speed test web site, I am getting 100 Mbps download and 80 Mbps 
upload rates.

Larry




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-30 20:36     ` Larry Finger
@ 2019-08-30 21:45       ` Sergey Kharitonov
  2019-08-31  0:27         ` Larry Finger
  0 siblings, 1 reply; 7+ messages in thread
From: Sergey Kharitonov @ 2019-08-30 21:45 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless

Sounds good!
I made a little change to compile that old rtl8192ee_revised.tar.bz2
driver on Linux 5.2.X and I get <1ms overall ping to the router with
rare spikes to 1-2ms.
I'm excited to know the right driver can provide the same performance,
it's starting to look now like the hardware's achievable maximum.
Is there any chance an improved rtl8192ee would be included in Linux 5.3?

On Sat, Aug 31, 2019 at 12:36 AM Larry Finger <Larry.Finger@lwfinger.net> wrote:
>
> On 8/10/19 1:13 PM, Sergey Kharitonov wrote:
> > Dear Mr. Finger!
> > Thank you for paying attention to the problem. I've just posted an
> > updated information to that bug before receiving this message.
> >
> > I get these results
> > ~]$ ping 192.168.88.1
> > PING 192.168.88.1 (192.168.88.1) 56(84) bytes of data.
> > 64 bytes from 192.168.88.1: icmp_seq=1 ttl=64 time=0.746 ms
> > 64 bytes from 192.168.88.1: icmp_seq=2 ttl=64 time=0.868 ms
> > 64 bytes from 192.168.88.1: icmp_seq=3 ttl=64 time=0.853 ms
> > 64 bytes from 192.168.88.1: icmp_seq=4 ttl=64 time=0.868 ms
> > 64 bytes from 192.168.88.1: icmp_seq=5 ttl=64 time=0.818 ms
> > 64 bytes from 192.168.88.1: icmp_seq=6 ttl=64 time=0.844 ms
> > 64 bytes from 192.168.88.1: icmp_seq=7 ttl=64 time=0.841 ms
> > 64 bytes from 192.168.88.1: icmp_seq=8 ttl=64 time=0.913 ms
> > 64 bytes from 192.168.88.1: icmp_seq=9 ttl=64 time=0.844 ms
> > 64 bytes from 192.168.88.1: icmp_seq=10 ttl=64 time=0.886 ms
> > ^C
> > --- 192.168.88.1 ping statistics ---
> > 10 packets transmitted, 10 received, 0% packet loss, time 387ms
> > rtt min/avg/max/mdev = 0.746/0.848/0.913/0.044 ms
> >
> > with a driver from rtl8192ee_revised.tar.bz2 file in
> > https://github.com/lwfinger/rtlwifi_new/tree/extended repository built
> > against Linux 4.19.65-1-lts ArchLinux current LTS kernel.
>
> I have completed but not yet sent some updates for rtl8192ee. Using them and
> kernel 5.3-rc6, I am getting the following:
>
> --- 192.168.1.1 ping statistics ---
> 100 packets transmitted, 100 received, 0% packet loss, time 99134ms
> rtt min/avg/max/mdev = 0.881/1.487/8.198/0.844 ms
>
> This is using the "old" firmware with the following md5sum:
>
> c8d25646cbc9efdcb818fc95ad5836a9  /lib/firmware/rtlwifi/rtl8192eefw.bin
>
> The new driver patches convert a set of macros to read and write the descriptors
> into inline routines. The calling sequences are also converted from u8 * to
> __le32 *, but I would not expect much improvement with the latter changes.
>
> Using a local speed test web site, I am getting 100 Mbps download and 80 Mbps
> upload rates.
>
> Larry
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-30 21:45       ` Sergey Kharitonov
@ 2019-08-31  0:27         ` Larry Finger
  0 siblings, 0 replies; 7+ messages in thread
From: Larry Finger @ 2019-08-31  0:27 UTC (permalink / raw)
  To: Sergey Kharitonov; +Cc: linux-wireless

On 8/30/19 4:45 PM, Sergey Kharitonov wrote:
> Sounds good!
> I made a little change to compile that old rtl8192ee_revised.tar.bz2
> driver on Linux 5.2.X and I get <1ms overall ping to the router with
> rare spikes to 1-2ms.
> I'm excited to know the right driver can provide the same performance,
> it's starting to look now like the hardware's achievable maximum.
> Is there any chance an improved rtl8192ee would be included in Linux 5.3?

It won't be in 5.3, and it is getting late for 5.4. I'll send the patches along 
and see what happens.

Larry



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, back to index

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09  5:25 [Linux Realtek Wi-Fi support] rtl8192ee related bug Sergey Kharitonov
2019-08-10 17:16 ` Larry Finger
2019-08-10 18:13   ` Sergey Kharitonov
2019-08-10 19:45     ` Larry Finger
2019-08-30 20:36     ` Larry Finger
2019-08-30 21:45       ` Sergey Kharitonov
2019-08-31  0:27         ` Larry Finger

Linux-Wireless Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-wireless/0 linux-wireless/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-wireless linux-wireless/ https://lore.kernel.org/linux-wireless \
		linux-wireless@vger.kernel.org linux-wireless@archiver.kernel.org
	public-inbox-index linux-wireless


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-wireless


AGPL code for this site: git clone https://public-inbox.org/ public-inbox