Netgear R7800 exploration (IPQ8065, QCA9984)

Well, i’m running that one and I get the error...

Snip from dmesg

[ 22.241382] ath10k_pci 0000:01:00.0: firmware ver 10.4-3.4-00104 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 4317698a    
[   31.109029] ath10k_pci 0001:01:00.0: firmware ver 10.4-3.4-00104 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 4317698a

So I wondered if we were missing some driver patch?

Try to add this patch into mac80211 patches folder
https://source.codeaurora.org/quic/qsdk/oss/system/feeds/wlan-open/tree/mac80211/patches/a00-0600-0001-mac80211-Ignore-VHT-IE-from-peer-with-wrong-rx_mcs_m.patch?h=coconut

Meanwhile I've enhanced l2 frequency scaling. Not sure if it affects anything in real life, but at least it gets in hand with gpl tarball.
https://github.com/dissent1/r7800/commit/b2351d3c540af443624824bf06f06701b8d5da52

Interesting. Will give both a spin.

Thanks!

tha last firmware include a fix for a bug that we had before the rework of 071 patch
(the firmware crash when you restart it)

Then we continue the same?

that bug i think was caused by the wrong patch.... so... that's not the cause of this problem

Hard to be 100% sure, but it seems this change makes the cpu run about one degree cooler in allmost all thermal zones. For the rest it runs stable since a day now.

Tried it, but still thousands of these errors each day.

I've narrowed it down to 1 device. an Apple Ipad Air 2, with a Murata 339S02541 wifi module, which in turn is based on the Broadcom BCM4334 chip. There are many (recent) fruity devices in this house, using similar chipsets as far as i'm aware, so i'm a bit confused why the ipad seems to trigger the issue.

I've also done a bit of reading here -> http://www.radiotap.org/fields/VHT.html

and i'm reading the following interesting tidbit:

This means that a MCS of 15 is actually perfectly possible, even though it is not part of the normal standard.

I've got k4.14 working

If you want to test k4.14 just apply patches from this post

It was an error in my environment that had led to a boot loop.

1 Like

do you know any difference between using dsa and swconfig?
always wanted to insert a menuconfig option to select between using dsa or swconfig...

1 Like

You can use either or. Both do not coexist. You can try dsa applying this patch
https://github.com/dissent1/r7800/commit/026ae921121b496fb753a656d6d3412f744657b1

i know i already have dsa on a wrt3200acm
so no cons and i have cpu offload?

@dissent1 Now that I have enabled DSA, I think this error in the system-log is related?

Sun Dec 31 15:44:36 2017 daemon.notice procd: /etc/rc.d/S99set_cpu_affinity: eth1 irq not found.
Sun Dec 31 15:44:36 2017 daemon.notice procd: /etc/rc.d/S99set_cpu_affinity: /etc/rc.common: line 364: can't create /proc/irq//smp_affinity: nonexistent directory

The patch above shows that there are now interfaces lan1 lan2 lan3 lan4 instead of eth1
See changes to 02_network

So naturally you can't set eth1 things any more.

I understand. I'ḿ thinking the DSA-patch would need some additional work: a fix for the error shown in the log.

Hmm. I think that the error above is caused by some other private patch, "S99set_cpu_affinity" that you likely have for balancing the IRQ usage in the CPU. The IRQ balancing is quite separate from the DSA change, but as the DSA changes the interfaces, your IRQ patch needs adjustment, too.

I'm thinking in the same direction. Also, as eth1 is gone, there is nothing to balance, as there is only 1 IRQ left?

There are probably 4 IRQs (for lan1 lan2 lan3 lan4) instead of one for eth1.

check /proc/interrupts. (this is the "old" IRQ usage):

root@LEDE:~# cat /proc/interrupts
           CPU0       CPU1
 16:    1404874    2997040     GIC-0  18 Edge      gp_timer
 18:         33          0     GIC-0  51 Edge      qcom_rpm_ack
 19:          0          0     GIC-0  53 Edge      qcom_rpm_err
 20:          0          0     GIC-0  54 Edge      qcom_rpm_wakeup
 28:          2          0   msmgpio   6 Edge      gpio-keys
 76:          2          0   msmgpio  54 Edge      gpio-keys
 87:          2          0   msmgpio  65 Edge      gpio-keys
 95:          0          0     GIC-0 241 Edge      ahci[29000000.sata]
 96:          0          0     GIC-0 210 Edge      tsens_interrupt
 97:    3272472          0     GIC-0  67 Edge      qcom-pcie-msi
 98:    3223456          0     GIC-0  89 Edge      qcom-pcie-msi
 99:     298141          0     GIC-0 202 Edge      adm_dma
100:     330398          0     GIC-0 255 Level     eth0
101:     324024          0     GIC-0 258 Level     eth1
...
root@Router:~# cat /proc/interrupts
           CPU0       CPU1
 16:     174048      54367     GIC-0  18 Edge      gp_timer
 18:         33          0     GIC-0  51 Edge      qcom_rpm_ack
 19:          0          0     GIC-0  53 Edge      qcom_rpm_err
 20:          0          0     GIC-0  54 Edge      qcom_rpm_wakeup
 28:          2          0   msmgpio   6 Edge      gpio-keys
 76:          2          0   msmgpio  54 Edge      gpio-keys
 87:          2          0   msmgpio  65 Edge      gpio-keys
 95:          0          0     GIC-0 241 Edge      ahci[29000000.sata]
 96:          0          0     GIC-0 210 Edge      tsens_interrupt
 97:      36517      68928     GIC-0  67 Edge      qcom-pcie-msi
 98:     128176      37272     GIC-0  89 Edge      qcom-pcie-msi
 99:     335830          0     GIC-0 202 Edge      adm_dma
100:       9051     100189     GIC-0 255 Level     eth0
102:          0          0     GIC-0 130 Level     bam_dma
103:          0          0     GIC-0 128 Level     bam_dma
104:          0          0   PCI-MSI   0 Edge      PCIe PME, aerdrv
105:      36517      68928   PCI-MSI   1 Edge      ath10k_pci
137:          0          0   PCI-MSI   0 Edge      PCIe PME, aerdrv
138:     128176      37272   PCI-MSI   1 Edge      ath10k_pci
170:         31          0     GIC-0 184 Level     msm_serial0
171:          2          0     GIC-0 187 Level     1a280000.spi
172:          0          0     GIC-0 142 Level     xhci-hcd:usb1
173:          0          0     GIC-0 237 Level     xhci-hcd:usb3
IPI0:          0          0  CPU wakeup interrupts
IPI1:          0          0  Timer broadcast interrupts
IPI2:      20619      38076  Rescheduling interrupts
IPI3:       3075      11469  Function call interrupts
IPI4:          0          0  CPU stop interrupts
IPI5:      22763      17484  IRQ work interrupts
IPI6:          0          0  completion interrupts
Err:          0