[PATCH v2 00/24] ARM: zte: Add support for Sanechips ZX279128S and ZTE ZXHN H3600

Navid Ghahremani ghahramani.navid at gmail.com
Thu Nov 12 16:36:35 PST 2026


Hi Agustin,

You asked on 6 November whether I saw the hang with sustained Wi-Fi
traffic. Yes, and that is why my first submission had the lock. The
OpenWrt build on my unit keeps it on both sides, and the unit ran for
37 days as an access point with it.

One more case for your table. With the lock on both sides, PCIe config
reads of the MT7915 still hang my unit. I ran two loops, one per CPU,
reading the config space of both functions from sysfs like lspci does
while mt7915e was loaded, and the board stopped in under a minute. With
mt7915e unloaded the same loops ran for 5 minutes, and so did Ethernet
traffic with mt7915e loaded and no config reads. Putting the config
reads of the devices behind the port under the same lock fixed it, with
two 5 minute runs and no hang.

Agustin Santiago wrote:
> - a small patch so that l2x0_of_init() honours the status property

Agreed, and thanks for sending it. I tested the early return of your
patch 2/2 the way you planned it for v2, on my unit with 512 MiB and an
L2C-310 r3p3 and with the cache node disabled. I booted it with kexec,
so the old kernel had already turned the cache off and the control
register read 0. That does not show what the boot loader leaves. 40
minutes of load ran without a hang, the last 10 with about 190 Mbs
of Wi-Fi receive, Ethernet send and the config read loops from above
all together. The next version of my series will disable the L2C in
the DT. I also tested your v2 as posted, and my Tested-by is in that
thread.

> I haven't measured the cost of the L2 off properly yet; I can do that
> if this direction sounds reasonable.

Here is what I see on my unit with L2 on with the lock and with L2 off,
the same kernel otherwise.

                                 L2 on       L2 off
  md5sum of 256 MiB of zeros     3.6 s       4.1 s
  dd 2 GiB /dev/zero to null     1.2 s       2.9 s
  TCP send over Ethernet         211 Mbs     41-55 Mbs
  TCP send over Wi-Fi            200 Mbs     196 Mbs
  TCP receive over Wi-Fi         171 Mbs     133-140 Mbs

The TCP numbers are a single busybox nc stream from or to the router
itself for 20 s, so they show the CPU path and not forwarded or
offloaded traffic. I also measured forwarding through the bridge,
between lan1 and a 5 GHz client, one TCP stream each way. Wi-Fi to LAN
went from about 470 Mbs with the cache on to about 330 with it off,
and LAN to Wi-Fi from about 405 to about 325. A few LAN to Wi-Fi runs
dropped much lower with both settings for a reason that has nothing to
do with the cache, and I left those out.

Because of these numbers OpenWrt will keep the cache on with the lock.
Once the platform is in I want to try the lib/logic_iomem.c idea Arnd
suggested on my first submission, which might let the cache be turned
back on without changes in each PCIe driver.

Best regards,
Navid



More information about the linux-arm-kernel mailing list