Optimized build for the D-Link DIR-860L

Nice. FYI, the patch also made it to master. Gonna start testing it today.

MOD: it did not helped, same error message, within 24 hours...

2 Likes

Is it just me or some else also experienced this? The interrupt Errs seem greatly reduced with latest mt76 code upgrade.

           CPU0       CPU1       CPU2       CPU3
  8:   11438439   11438367   11438417   11438407  MIPS GIC Local   1  timer
  9:      65180          0          0          0  MIPS GIC  63  IPI call
 10:          0   21816266          0          0  MIPS GIC  64  IPI call
 11:          0          0   21809977          0  MIPS GIC  65  IPI call
 12:          0          0          0   20825530  MIPS GIC  66  IPI call
 13:     290556          0          0          0  MIPS GIC  67  IPI resched
 14:          0    1585346          0          0  MIPS GIC  68  IPI resched
 15:          0          0    3819879          0  MIPS GIC  69  IPI resched
 16:          0          0          0     430114  MIPS GIC  70  IPI resched
 19:         14          0          0          0  MIPS GIC  33  ttyS0
 20:          0          0          0          0  MIPS GIC  29  xhci-hcd:usb1
 21:  174998675          0          0          0  MIPS GIC  10  1e100000.ethernet
 22:          2          0          0          0  MIPS GIC  30  gsw
 23:          2          0    2782385          0  MIPS GIC  11  mt76x2e
 24:    9815114          0          0          0  MIPS GIC  31  mt76x2e
 26:          0          0          0          0      GPIO   7  keys
 27:          0          0          0          0      GPIO  18  keys
ERR:        172

up 1 day, 7:46.

Here is my statistic but I don't know if it's good or bad. The ERR counter seems to be quite high in my case...

           CPU0       CPU1       CPU2       CPU3
  8:   20652222   20652209   20652205   20652195  MIPS GIC Local   1  timer
  9:      24380          0          0          0  MIPS GIC  63  IPI call
 10:          0   12277125          0          0  MIPS GIC  64  IPI call
 11:          0          0    5090606          0  MIPS GIC  65  IPI call
 12:          0          0          0   16608850  MIPS GIC  66  IPI call
 13:     495613          0          0          0  MIPS GIC  67  IPI resched
 14:          0     416821          0          0  MIPS GIC  68  IPI resched
 15:          0          0     568266          0  MIPS GIC  69  IPI resched
 16:          0          0          0     765120  MIPS GIC  70  IPI resched
 19:         12          0          0          0  MIPS GIC  33  ttyS0
 20:          0          0          0          0  MIPS GIC  29  xhci-hcd:usb1
 21:   44215558          0          0          0  MIPS GIC  10  1e100000.ethernet
 22:         32          0          0          0  MIPS GIC  30  gsw
 23:        439          0   76432716          0  MIPS GIC  11  mt76x2e
 24:    6368129          0          0          0  MIPS GIC  31  mt76x2e
 26:          0          0          0          0      GPIO   7  keys
 27:          0          0          0          0      GPIO  18  keys
ERR:      31936

 07:14:31 up 2 days,  9:23,  load average: 0.04, 0.03, 0.00

I don't see any Kernel Errors in my log. I'm not sure if this is related to my setup...

ERR is incremented in the case of errors in the IO-APIC bus (the bus that connects the CPUs in a SMP system. This means that an error has been detected, the IO-APIC automatically retry the transmission, so it should not be a big problem, but you should read the SMP-FAQ.

Source: https://github.com/torvalds/linux/blob/master/Documentation/filesystems/proc.txt

Never figured out what the most optimum tweaked smp_affinity values are

Just let you guys aware that there’s a hw offloading fix in the pull request, at here.

The next dream is to get a stable switch driver.

1 Like

A post was split to a new topic: DIR-860L reducing power consumption

See this: Mtk_soc_eth watchdog timeout after r11573 - #76 by apocalypse

We need this patch for the DIR860L...

Anyone can guide me how to apply an uncommitted patch to the build?

I have no idea but maybe @Bartvz can help you out on this.

Can someone knowledgeable point me to the right direction of how to apply these patches to DIR-860L B1 source trees? I just couldn't find the corresponding .c file to patch on, totally lost.

@Bartvz
Is it possible to implement this patch to your builds?

Did you find out how to apply the patch?

curl https://raw.githubusercontent.com/openwrt/openwrt/d8bc0cc41bcf913317c3a5f1d51a2fdb363975b0/target/linux/generic/pending-4.14/647-netfilter-nf_flow_table_hw-fix-incorrect-ethernet-ds.patch | git apply

Should work

@ All, sorry for the incommunicado but it has been a crazy time with SARS-CoV-2 rampaging about. I hope all is well with you, your family and friends.
I have been working almost every day from 09:00 till 22:30 so no free time to tinker around. To top it of, I managed to nuke my build server (broken dependencies, yay). No builds from me in the forseeable future I'm afraid :confused:

Normally there would be a holiday for me at the end of April but because of the virus, everything is uncertain.

2 Likes

Take it easy man, things will be normal again at some point.

1 Like

The 5.4 patches are now in the master. The switch driver is finally seems to be stable, but the HW offload is lost for good as it seems. I don't think any of the developers will spend time to patch the 4.14 anymore. IMHO it would be more productive to start testing the 5.4 patches with more users now that it reached the master branch.

3 Likes

It seems it may not be lost for good...

3 Likes

If it is coming from Blogic, I can very much believe it :slight_smile:

I'm asking here since all people on this topic at least have a DIR-860L. I've been building and loading a master build (now with 5.4) on my DIR-860L but it craps out after changing its IP - every single time. A reboot will make it go crazy (it never boots, or at least it seems to hang somewhere).

Only my 5 GHz radio seems to be recognised as well, 2,4 GHz radio is nowhere to be seen (see my comment on the 5.4 PR).

Has anybody tried 5.4 master on their DIR-860L? What's your experience?

It's not my daily driver anymore so I can 'afford' to test builds.

I can't wait to test a new build of @Bartvz but I guess we have to wait abit for it.