Ipq806x NSS build (Netgear R7800 / TP-Link C2600 / Linksys EA8500)

Hi quarky,

Is it correct to say that VTBA scheduler was specifically intended to be used only with AQL in order to "improve" it over the older round-robin scheduler + AQL? Is VTBA scheduler used for anything else in the WIFI context? Thanks.

Well, from what I understand, VTBA is meant to be an improved scheduler over the round-robin scheduler. It is supposed to prevent any single Wi-Fi client from using excessive transmit airtime (per transmit queue), thereby ensuring airtime fairness for all.

The idea is sound from what I can understand. We just need to identify the incompatible bits between all mac80211 drivers, which it looks like the ath10k is not compatible. The mt76 driver seems to work fine with the new VTBA scheduler tho.

AQL has been there all along. My understanding of the AQL mechanism is that it limits the number of packets that can be transmitted in each of the client's transmit queues (I think) to ensure that they are within the threshold of the transmit time limit.

3 Likes

Yesterday I installed the latest master image from 3 days ago from acwifidude. The thing is that you still have the same wifi problem, a 5ghz wifi client disconnects, and the 2.4ghz clients fail? When my partner left home this morning, the baby's Wi-Fi camera and the phone that I use as a viewer fail, it crashes for a few moments. both devices are on 2.4ghz, and the phone is on 5ghz.

[image]

@quarky
I don't know if my observations are connected with VTBA and AQL at all. But here it is what I observed.
I've tried Belkin RT3200 with OpenWrt master (using mt76 driver I suppose) for over a week and I can say that I couldn't get a Samsung Galaxy A20e smartphone that has only 2.4Ghz WLAN to download at all. It has strong signal and uploads without problems.
The original post is here.
With R7800 the same phone just flies. Even through 4 brick walls and over 12 meters it has strong signal and can keep up high speeds.

My experience with the Linksys E8450 is that it’s 5GHz radio signal doesn’t like walls. Heck, it doesn’t work well even without walls over 4-5m distance.

The Linksys EA7500v2 on the other hand has good signal penetration, comparable to the R7800. Maybe it’s due to both having external antennas.

Both are mt76, but one is AX and the other AC.

Apologies for digressing. Now back to our regular programming.

1 Like

@quarky and all other users.
I'm in a hurry to report after 2 days of use

Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.080154] ath10k_warn: 94 callbacks suppressed
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.080162] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 7
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.083862] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 7
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.091497] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 7
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.098287] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 7
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.106051] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 0
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.112919] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 0
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.120217] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 0
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.127431] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 0
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.135130] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 7
Wed Jun  8 17:26:55 2022 kern.warn kernel: [199557.142085] ath10k_pci 0000:01:00.0: failed to lookup txq for peer_id 65 tid 7

The 5GHz network is almost dead - none of the connected devices can download from WAN at more that just a few Mbps (2-3Mbps at most 7-10). So obviously maybe the latest patches to mac80211 are now in the game. That's a sad point but maybe the time to really fix the nasty WLAN issues has come.
image

2.4Ghz still working good.
The current picture is the same as this.

The network cannot recover by itself. A restart is needed.

1 Like

Our Shifu Quarky is the only developer here who always does proper unit-testing of his code changes. Lol!

Linksys E8450/Belkin RT3200 have internal trace antennas and most routers with integrated antennas suck for long ranges.

Looks like the high latency bug that is causing download speed to get throttle. Still can't figure out why the new VTBA scheduler is causing this issue. Reverting to the round-robin scheduler brings back normal WiFi operations to my R7800.

Restarting the WiFi interface may help, tho. the issue may come back fast, but yeah, a router reboot will clear the issue up until it happens again. Looks suspiciously like some counter is not getting reset which builds up over time.

hi,

what about build with kernel 5.15, pretty stable now?
thanks

Haven’t tried a 5.15 build yet. From 5.4 => 5.10 there were a good number of patch changes (pretty much every patch needed tweaks). Master will probably make the jump soon for ipq806x (dunno, weeks, months?).

1 Like

In the next master is this going to be included?

3 Likes

Thanks sppmaster for spreading the good news! Finally some light at the end of the tunnel...

Yep! I’ll watch master closely and build when it is officially committed.

3 Likes

Is this the commit?
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=958785508cc802de75698607670f9a236883d24d

quarky said the patch did not seem to work for him at all when back-ported to his 21.02.x build.

1 Like

For now it seems that Felix single-handedly handles all attempts to fix these wireless issues. He also included the original authors of VTBA scheduler in his commit emails but nobody made any comment. I hope better coordination between quarky and Felix would help Felix come up with a working solution. According to Felix, using the round-robin scheduler is pretty much the same as disabling or bypassing ATF.

1 Like

I can finally get back gigabit. Godspeed wifidude! :pray:

1 Like

Our hero needs to change his username to AXwifidude :slight_smile:

5 Likes

Updated master build. Has that commit. Let me know how it works!

3 Likes