linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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
  2019-09-28 11:51           ` Sergey Kharitonov
  0 siblings, 1 reply; 10+ 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] 10+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-08-31  0:27         ` Larry Finger
@ 2019-09-28 11:51           ` Sergey Kharitonov
  2019-09-28 16:31             ` Larry Finger
  0 siblings, 1 reply; 10+ messages in thread
From: Sergey Kharitonov @ 2019-09-28 11:51 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless

Dear Mr. Finger!
Today's upgrade to linux 5.3.1 made the OEM Realtek driver (from
rtl8192ee_revised_5.x.tar.xz) unusable.
Current rtlwifi_new master and extended branches still contain old
code which results in a high ping.
Can you please somehow add your changes described above to git or wherever?

Best regards,
Sergey Kharitonov

On Sat, Aug 31, 2019 at 4:27 AM Larry Finger <Larry.Finger@lwfinger.net> wrote:
>
> 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] 10+ messages in thread

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-09-28 11:51           ` Sergey Kharitonov
@ 2019-09-28 16:31             ` Larry Finger
  2019-09-29 11:35               ` Sergey Kharitonov
  0 siblings, 1 reply; 10+ messages in thread
From: Larry Finger @ 2019-09-28 16:31 UTC (permalink / raw)
  To: Sergey Kharitonov; +Cc: linux-wireless

On 9/28/19 6:51 AM, Sergey Kharitonov wrote:
> Dear Mr. Finger!
> Today's upgrade to linux 5.3.1 made the OEM Realtek driver (from
> rtl8192ee_revised_5.x.tar.xz) unusable.
> Current rtlwifi_new master and extended branches still contain old
> code which results in a high ping.
> Can you please somehow add your changes described above to git or wherever?

Those patches were mostly cosmetic and will not affect performance, b ut I will 
apply them.

This mailing list should be discussing the driver in the kernel, not an external 
one. Does the in-kernel version not work?

In addition, "unusable" is not a very descriptive term for a failure.

Larry

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

* Re: [Linux Realtek Wi-Fi support] rtl8192ee related bug
  2019-09-28 16:31             ` Larry Finger
@ 2019-09-29 11:35               ` Sergey Kharitonov
  0 siblings, 0 replies; 10+ messages in thread
From: Sergey Kharitonov @ 2019-09-29 11:35 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless

In-kernel version of 5.3.1 works, but provides the same poor latency:
if you're not downloading something in the background, ping gets
higher and higher from around 5ms to around 100ms, then back to ~5.

By saying 'unusable' out-of-the kernel driver I mean that changes that
I made to it (to work with 5.2.X) no longer help to use it with new
5.3.1.
It compiles without errors with several fall-thru warnings, but when I
modprobe it, dmesg says (as far as I could understand) that the module
was unable to load firmware. But modprobe ends with status code = 0.

As a result, there's no wireless device shown by ifconfig or iwconfig at all.

On Sat, Sep 28, 2019 at 8:31 PM Larry Finger <Larry.Finger@lwfinger.net> wrote:
>
> On 9/28/19 6:51 AM, Sergey Kharitonov wrote:
> > Dear Mr. Finger!
> > Today's upgrade to linux 5.3.1 made the OEM Realtek driver (from
> > rtl8192ee_revised_5.x.tar.xz) unusable.
> > Current rtlwifi_new master and extended branches still contain old
> > code which results in a high ping.
> > Can you please somehow add your changes described above to git or wherever?
>
> Those patches were mostly cosmetic and will not affect performance, b ut I will
> apply them.
>
> This mailing list should be discussing the driver in the kernel, not an external
> one. Does the in-kernel version not work?
>
> In addition, "unusable" is not a very descriptive term for a failure.
>
> Larry

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

end of thread, other threads:[~2019-09-29 11:35 UTC | newest]

Thread overview: 10+ 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
2019-09-28 11:51           ` Sergey Kharitonov
2019-09-28 16:31             ` Larry Finger
2019-09-29 11:35               ` Sergey Kharitonov

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).