Commit Graph
71866 Commits
Author SHA1 Message Date
Martin Schiller f6631c2d84 imx: refresh 6.18 kernel config files
This refreshes the configuration for Linux kernel 6.18.

I first selected one subtarget after the other and refreshed their
configuration using this command:
  make kernel_oldconfig CONFIG_TARGET=subtarget
Then I selected the cortexa7 subtarget and then refreshed the target
kernel configuration using this command:
  make kernel_oldconfig CONFIG_TARGET=target
Then I selected one subtarget after the other and refreshed their
configuration using this command:
  make kernel_oldconfig CONFIG_TARGET=subtarget

I compared the kernel configuration used to compile the kernel from the
build directory for each subtarget before updating the target
config-6.18 file and after all tasks and it was still the same.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[for imx6 (on Toradex i.MX6D)]
Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-10-18 12:22:31 +02:00
Martin Schiller b495402b6e imx: add linux 6.18 as testing kernel
Add KERNEL_TESTING_PATCHVER for Linux 6.18.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[for imx6 (on Toradex i.MX6D)]
Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-10-18 12:22:31 +02:00
Martin Schiller 28a5132f96 imx: refresh patches for linux-6.18.55
We have to remove the patches which are already included in
linux-6.18.55.

We also have to refresh 315-arm64-dts-Add-support-for-Olimex-i.MX8MP-...

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[for imx6 (on Toradex i.MX6D)]
Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-10-18 12:22:31 +02:00
Martin Schiller 4327a6f61c kernel/imx: restore files for v6.12
This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2026-10-18 12:22:31 +02:00
Martin Schiller 11956c1dbc kernel/imx: create files for v6.18 (from v6.12)
This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2026-10-18 12:22:31 +02:00
Martin Schiller 25969a5733 imx: patches: add missing GIT headers
This adds missing GIT headers to 3 patch files.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[for imx6 (on Toradex i.MX6D)]
Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-10-18 12:22:31 +02:00
Martin Schiller eb6ad17dda imx: refresh 6.12 kernel config files
This refreshes the configuration for Linux kernel 6.12.

I first selected the cortexa7 subtarget and then refreshed the target
kernel configuration using this command:
  make kernel_oldconfig CONFIG_TARGET=target
Then I selected one subtarget after the other and refreshed their
configuration using this command:
  make kernel_oldconfig CONFIG_TARGET=subtarget

After this, I had to manually enable CONFIG_PCI_IMX6_HOST for the
cortexa9 subtarget.

I compared the kernel configuration used to compile the kernel from the
build directory for each subtarget before and after this task and it was
still the same.

Also rename the subtarget config files to config-6.12 as a preparation
for linux 6.18 testing support.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[for imx6 (on Toradex i.MX6D)]
Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-10-18 12:22:31 +02:00
Martin Schiller 9fae90d34f generic: add missing drm/input/video symbols
If input, drm or video support is enabled on imx targets, then these
will pop up.

We add them to the generic configs, because they will be dropped again
if we add them to the target config and call `make kernel_oldconfig
CONFIG_TARGET=target`.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[for imx6 (on Toradex i.MX6D)]
Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-10-18 12:22:31 +02:00
Sander van Deijck c15707733f rtl8812au-ct: remove package
The driver is restricted to kernel 6.12 since commit 57ce8f50e6
("rtl8812au-ct: restrict to kernels ≤ 6.18"), which describes it as
obsolete and replaced by rtw88. With all targets switching to kernel
6.18, it can no longer be built at all.

rtw88 supports the same hardware: all RTL8812AU and RTL8821AU USB IDs
of this driver are handled by kmod-rtw88-8812au and kmod-rtw88-8821au.
The only exception, 2357:0115 (TP-Link Archer T4U), is an RTL8812BU
device and is handled by kmod-rtw88-8822bu.

No device profile or package depends on kmod-rtl8812au-ct or the
virtual kmod-rtl8812au-any, so no other changes are needed.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25972
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-18 12:20:44 +02:00
Quinn O'Shea 15b7a3804b realtek: dsa: rtl930x: raise global flow control thresholds
The global flow control thresholds are left at their reset values, so
the switch starts to drop frames once 984 pages of the packet buffer
are in use. The vendor SDK raises them at initialisation, to 2592 pages
in its 8x10G profile and to 2192 pages in its larger ones.

Program the SDK values in the four global threshold registers: those of
the 8x10G profile on switches with up to 8 user ports, the others above
that.

RTL9303, pause off, TCP for 20 seconds through a port limited to
100 Mbit/s on egress: one flow is retransmitted 164 and 149 times
before and 56 and 72 times after, four flows 1480 and 1473 times
before and 291 and 294 times after, at 0.7 to 0.8 Mbit/s more
throughput. The deeper buffer raises the queueing delay at that port
from at most 20 ms to at most 58 ms.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Quinn O'Shea <qoshea@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25970
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-18 11:29:24 +02:00
Rustam Adilov fb4262dc31 realtek: merge the two mips/Kconfig patches
There is no reason for rtl960x platform patch to be on its own
when the 300-01-enhance-realtek-platform-config.patch touch the
exact same place. Merge the two together.

Signed-off-by: Rustam Adilov <adilov@tutamail.com>
Link: https://github.com/openwrt/openwrt/pull/25949
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-18 08:04:57 +02:00
Rustam Adilov 89cae1caa9 realtek: rtl960x: cleanup config file
Remove the obsolete config options detected by the command
"make kernel_oldconfig".

Signed-off-by: Rustam Adilov <adilov@tutamail.com>
Link: https://github.com/openwrt/openwrt/pull/25949
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-18 08:04:57 +02:00
Markus Stockhausen f5e8002b17 realtek: dsa: move private drop counters into stats
The legacy debugfs implementation selects private diagnostic registers by
family at read time. Move these switch-wide counters into stats.c and
select immutable counter descriptors through priv->r->drop_desc.

Keep an explicit register offset for each of the 246 retained counters.
Omit the RTL838x bridge learned-entry discard counter at 0x6a9c and the
four reserved slots on RTL930x/RTL931x. All retained counters are 16-bit,
so a single OTTO_DROP macro and a common read path suffice. Correct two
RTL930x counter labels.

Expose a read-only realtek_otto_stats/drop_counters file. Serialize register
reads with reg_mutex, propagate regmap failures, and remove the debugfs
interface before switch teardown. A devm action also covers resource
cleanup; unavailable debugfs does not prevent switch operation. The fixed
root is owned by one device and is never reused by another instance.

Remove the legacy drop-counter data, reader and registrations. Other
legacy debugfs features and existing MIB exports are unchanged.

Assisted-by: ChatGPT (OpenAI GPT-6 Astra)
Link: https://github.com/openwrt/openwrt/pull/25931
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-18 08:03:20 +02:00
Sander van Deijck 814759483b at91: drop kernel 6.12 support
The target has been switched to kernel 6.18. Remove the now unused 6.12 configs.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25961
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-18 00:02:33 +02:00
Sander van Deijck b3b69fcd4f at91: switch to kernel 6.18
switch to kernel 6.18 as default

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25961
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-18 00:02:32 +02:00
Sander van Deijck 5ce2cf2607 tegra: drop kernel 6.12 support
The target has been switched to kernel 6.18. Remove the now unused 6.12 config and patches.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25962
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-17 23:46:36 +02:00
Sander van Deijck 0176872e8f tegra: switch to kernel 6.18
Kernel 6.18 has been the testing kernel for tegra. Make it the default kernel.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25962
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-17 23:46:36 +02:00
Daniel Golle 64129c4282 rockchip: add the RKVENC H.264 and HEVC encoder
Add the stateful V4L2 encoder driver for the RKVENC v1 of the RV1126 and
RK3568 as patches 183: its binding, the PD_VEPU clock tree, the driver
and the device tree node, followed by the frequency scaling with a
cooling device and the operating points that go with it. The operating
points carry the vendor voltages, which apply once a board names the
supply of the encoder. The NPU thermal zone gets two passive trips and
cools the encoder, which lowers its clock and voltage and then its frame
rate. The zone is polled every second, since the temperature trend
decides when the cooling device is released.

Build the devfreq core and the simple_ondemand governor into the ARMv7
kernel for the frequency scaling, and let the 38x38 v10 board name
vdd_logic_npu_vepu as the supply of the encoder.

Add kmod-video-rockchip-rkvenc and install it on the Herospeed RV1126
board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-17 18:03:04 +01:00
Daniel Golle a59f202f75 rockchip: add the rkisp2 ISP driver and RV1126 support
Add the rkisp2 driver for the image signal processor of the RK3588 and
the RV1126, in three groups of patches:

 - 180: the posted series of Xu Hongfei and Paul Elder, a driver with the
   parameters and statistics nodes, its binding and the RK3588 device
   tree nodes;
 - 181: fixes for that series, for example the media bus code of the YUV
   formats, the missing V4L2_ISP selection, the chroma resizing for 4:2:0
   output, the third histogram block, the DMA segment size, the colour
   space defaults and range, the reset bits of SWS_CFG and the interrupts
   of the 3A blocks;
 - 182: support for the ISP 2.0 of the RV1126, with its binding, the ISPP
   clock tree and device tree nodes, the raw frames from the VICAP, the
   white balance means of the ISP core and an IOMMU change that maps the
   MMU registers non-exclusively since they lie inside the ISP range.

Add kmod-video-rockchip-isp2 and install it on the Herospeed RV1126 board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-17 18:03:04 +01:00
Daniel Golle 2a01c95d6f kernel: backport the V4L2 generic ISP framework
Backport the V4L2 generic ISP types and the v4l2-isp helpers that ISP
drivers use for their parameters and statistics buffers: the two v6.19
commits and a rename that followed them, and the four v7.3 commits that
add the extensible statistics buffer, the per-block validation callback
and the statistics helpers.

Add kmod-video-v4l2-isp for the v4l2-isp module.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-17 18:03:04 +01:00
Daniel Golle 03d713bb43 rockchip: rkcif: fix the MIPI interrupts and feed the RV1126 ISP
Add two rkcif kernel patches. The first masks the MIPI interrupts that
come out of reset enabled, which kept the interrupt line asserted at
about a thousand interrupts per second until the kernel disabled it.

The second lets the RV1126 ISP take the raw frames of the VICAP without
user space: it writes the unpacked raw formats MSB aligned, keeps a
larger sizeimage set by the application and offers the MIPI stream to a
consumer through a V4L2 subdevice.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-17 18:03:04 +01:00
Mieczyslaw Nalewaj bcb16b6347 ipq806x: stmmac: force netdev name from DT ethernet alias
Interface naming currently depends on registration order between
stmmac instances, which is non-deterministic when multiple probes
race at boot (e.g. two independent GMACs with no shared switch).
This causes eth0/eth1 to swap randomly across reboots on some
platforms.

Force the netdev name to match the "ethernetN" DT alias when one is
present. plat->bus_id cannot be used for this: stmmac_platform.c
falls back to a driver-global counter when of_alias_get_id() finds
no alias, so plat->bus_id is never negative and every stmmac netdev
would be forced, including boards with no alias at all. Re-read the
alias directly from the device's OF node instead, and only force the
name when it actually resolves. Fall back to the original
auto-numbering template if the forced name collides.

unifi-ac-hd already has a correct alias mapping, so the preinit
eth0/eth1 swap hack for it is no longer needed. Drop it.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/25143
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:20:43 +02:00
Mieczyslaw Nalewaj cec87757d8 ipq806x: fix ethernet aliases
G10 and WPQ864 alias ethernet1 to &gmac0, which is never enabled on
either board; the GMAC that actually is enabled, gmac2, has no
alias. The following commit will force netdev naming from the DT alias,
so point ethernet1 at gmac2 to keep both active GMACs aliased.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/25143
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:20:43 +02:00
Julius Bairaktaris be388d995d mac80211: rescan the package metadata when a driver .mk file changes
The kmod definitions live in ath.mk, intel.mk and the other included
.mk files, but the package scan only regenerates the mac80211 metadata
when the Makefile changes. An edit to a DEPENDS or Kconfig line in
ath.mk is then ignored until tmp/ is deleted by hand.

Name the included files in SCAN_DEPS, as linux-firmware does.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25953
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:15:14 +02:00
Julius Bairaktaris a11f6f7963 qualcommax: ipq60xx: add the interrupts of three more EDMA ring sets
Add the TX completion, RX fill and RX descriptor interrupts of ring
sets 22/6/14, 21/5/13 and 20/4/12. The lines count down from the first
set's: TX completion ring n is SPI 355 + n, RX fill ring n SPI 347 + n
and RX descriptor ring n SPI 331 + n, each read from the GIC pending
state on a Linksys MR7350 with only that ring's interrupt unmasked.

Link: https://github.com/openwrt/openwrt/pull/25663#issuecomment-6194790602
Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25663
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:12:31 +02:00
Julius Bairaktaris 9fa6182391 qualcommax: qca_edma: add the RSS indirection table to ethtool
The PPE spreads unicast to the CPU by its RSS hash over four switch
queues from each of three bases, and the EDMA queue-to-ring table
decides which receive ring each hash bucket feeds. Offer that table as
the ethtool RSS indirection table, so that "ethtool -X" can weight or
narrow the spread. The hash key is not offered: the PPE hash is not
Toeplitz and its seed is a PPE register.

On IPQ8074 with four rings and 3000 datagrams in 64 flows to the CPU,
"equal 2" leaves rings 2 and 3 and "weight 1 0 0 1" leaves rings 1 and
2 without a receive interrupt (n=3).

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25663
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:12:31 +02:00
Julius Bairaktaris f7be10a175 qualcommax: ipq807x: add the interrupts of three more EDMA ring sets
Add the TX completion, RX fill and RX descriptor interrupts of ring
sets 6/6/14, 5/5/13 and 4/4/12. The lines count down from the first
set's: TX completion ring n is SPI 352 - n, RX fill ring n SPI 360 - n
and RX descriptor ring n SPI 376 - n, each read from the GIC pending
state with only that ring's interrupt unmasked.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25663
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:12:31 +02:00
Julius Bairaktaris 207962a83a qualcommax: qca_edma: add multi-queue RX and TX
The driver uses one RX and one TX ring set, so all traffic through the
host is handled by one CPU. Use up to four ring sets, as many as the
device tree gives interrupts for, counting down from the rings in the
SoC data. Each set has one NAPI context for its TX completions and RX,
its own page pool and TX queue; XPS maps TX queue n to CPU n, and the
switch queues map onto the RX rings through QID2RID. The regmap runs
without its lock, since a ring's registers are only touched from its
own NAPI or under its TX lock, and threaded NAPI starts at the first
open so that packet steering can pair each NAPI thread with its queue.
ethtool -l/-L reports and changes the number of ring sets.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25663
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:12:31 +02:00
Julius Bairaktaris da1356d212 qualcommax: qca_ppe: spread CPU-bound flows by RSS hash
Out of reset the RSS hash puts every flow in the same bucket, so the
RX hash qca_edma reports is the same for every frame and RPS cannot
spread the receive work. Program the hash, and spread unicast to the
CPU port over four queues from each of its queue bases 0, 4 and 8 by it.
Queues 0 to 11 share one priority and one DRR node. Only queues 0, 4 and
8 carried unicast before.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25663
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-17 16:12:31 +02:00
Alexander Zaguzin cd2c55e43b rtl8812au-ct: fix undeclared ndev in get_key callback
The cfg80211 7.2 API conversion changed cfg80211_rtw_get_key() to take
a wireless_dev instead of a net_device, but its DBG_871X() statement
still uses ndev. This breaks compilation with an undeclared identifier:

  ioctl_cfg80211.c: error: 'ndev' undeclared (first use in this function)

Derive ndev from wdev before the disabled code block, matching the other
converted callbacks. Bump PKG_RELEASE to rebuild the module.

Fixes: 3c1066f412 ("rtl8812au-ct: fix build with mac80211 7.2")
Signed-off-by: Alexander Zaguzin <st7105@gmail.com>
2026-10-17 03:50:37 +02:00
Nick Hainke 22aa500f74 qosify: update to Git HEAD (2026-10-14)
16c95b04c020 main: tear down the DNS ifb device on exit
d8b47df02cdf interface: fix the socket() error check in qosify_iface_init()
21cc61818226 interface: fix the ifb device name for long interface names
bbb96c522f39 interface: add option for multiqueue cake
39889ba2d94b interface: only use cake_mq on devices with several transmit queues
b2f9e2818d1c interface: create the ifb device with one queue per receive queue
c6983494fe42 qosify-bpf: only override unmarked packets with a fallback value
551491cead1c dns: check the length of address records
f840a74077f3 qosify-bpf: classify IPv4 fragments like their first fragment
90c756581a62 interface: factor out the setup of filter netlink messages
aa3aa6b52c63 interface: redirect DNS replies with one flower filter
ddd72827f252 qosify-bpf: add a macro for timeouts in seconds
b3ee50eff9d9 map: accept port 65535 in port rules

DNS replies are now redirected with flower, add kmod-sched-flower to
the dependencies. Add the multiqueue option to the config.

Link: https://github.com/openwrt/openwrt/pull/25696
Signed-off-by: Nick Hainke <vincent@systemli.org>
2026-10-16 20:40:45 +02:00
Quinn O'Shea 86eb7e9d62 realtek: dsa: offload 802.1ad bridges
A port that joins an 802.1ad bridge on a switch with the provider role
now takes that role: S-TAGs are parsed, frames are switched on the outer
VID, the VLAN table controls the outer tag and the customer's inner tag
crosses the switch unchanged. Leaving the bridge restores the 802.1Q
role, and enabling the port reapplies its role instead of resetting it.

The bridge protocol is fixed while switch ports are offloaded: a change
is refused through port_vlan_protocol, as mlxsw does, instead of leaving
the hardware on the old protocol. The VLAN table is shared by all
bridges, so a VID belongs to the protocol of the first bridge that adds
a user port to it, and the other protocol is refused until no user port
is left in it.

Switches without the provider role still refuse 802.1ad bridges, now
at join as well, and refuse a change to 802.1ad of a bridge that holds
their ports.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Quinn O'Shea <qoshea@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25927
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-16 18:27:00 +02:00
Quinn O'Shea e35afd3736 realtek: pass bridge VLAN protocol changes to DSA drivers
DSA ignores SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL, so a bridge that
changes its VLAN protocol while switch ports are offloaded keeps them
running the old one without telling the driver. Carry a kernel patch
that adds an optional port_vlan_protocol operation for that attribute;
drivers without it behave as before.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Quinn O'Shea <qoshea@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25927
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-16 18:27:00 +02:00
Quinn O'Shea 285baef595 realtek: dsa: rtl930x: add the 802.1ad TPID and provider port role
RTL930x classifies and tags with a pool of four outer/inner TPID pairs
and per-port compare masks. The driver never programs them and keeps
what reset or the boot loader left: on RTL9303 every pair reads 0x88a8
outside and 0x8100 inside, but no port compares outer TPIDs, so the
switch never recognises an S-TAG.

Set every TPID pair to 0x88a8 outside and 0x8100 inside, parse only
C-TAGs on user ports, and parse S-TAGs on the CPU port as well, so a
frame the CPU injects with an S-TAG is switched on its outer VID. Add a
provider role for a port: S-TAG parsing, forwarding on the outer VID,
the outer tag taken from the VLAN table on egress with the 0x88a8 TPID,
and the inner tag kept unchanged in both directions. Leaving the role
restores the 802.1Q posture, including the reset value of the egress
TPID control.

Nothing selects the provider role yet.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Quinn O'Shea <qoshea@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25927
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-16 18:27:00 +02:00
Quinn O'Shea 3851c25147 realtek: dsa: convert direct VLAN register accesses to regmap
The VLAN code still uses raw switch register accessors despite the
regmap already available in the switch private data.

Replace direct register accesses with regmap operations through
priv->map. Pass priv to the VLAN profile, port forwarding, tag status
and PVID callbacks of all four families, updating their declarations
and callers accordingly. Read the profile registers before printing
them in the RTL839x and RTL930x profile dumps.

Use regmap_write_bits() to preserve unconditional masked writes; the
set bits lie within the mask in every case, which keeps sw_w32_mask()
semantics.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Quinn O'Shea <qoshea@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25927
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-10-16 18:27:00 +02:00
Felix Fietkau 71e991a8c0 Revert "libjson-c: free a container object outside of assert()"
This reverts commit f6a2ff7c24.
This was fixed already.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-16 16:33:09 +02:00
Yalei Zang e1bd479ba8 airoha: backport LRO offload patch
Backport the upstream Airoha Ethernet LRO implementation for EN7581 and
AN7583.

Use the eight dedicated hardware LRO queues mapped to RX queues 24-31.
Adjust the RX page pool configuration for LRO queues and provide the GSO
metadata required to correctly re-segment forwarded aggregated packets.

Since LRO is configured per QDMA block, expose NETIF_F_LRO only when a
single device uses the QDMA, and update the feature during device
registration and runtime QDMA migration.

Link: https://patch.msgid.link/20260909-airoha-eth-lro-v7-1-e6317be79067@kernel.org

Signed-off-by: Yalei Zang <yalei.zang@airoha.com>
Link: https://github.com/openwrt/openwrt/pull/25901
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 15:51:00 +02:00
Yalei Zang d4083ed9ee airoha: backport on-demand GDM3/GDM4 QoS configuration
Backport the change that configures GDM3/GDM4 as WAN and enables GDM2
loopback when HTB hardware offload is requested, instead of enabling
them during device initialization.

This lets GDM3/GDM4 operate as LAN ports until hardware QoS requires
the WAN path. The change also handles QDMA migration on running
interfaces when switching port roles.

Link: https://patch.msgid.link/20260725-airoha-ethtool-priv_flags-v12-3-5136a30b2157@kernel.org

Signed-off-by: Yalei Zang <yalei.zang@airoha.com>
Link: https://github.com/openwrt/openwrt/pull/25901
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 15:51:00 +02:00
Satoshi Ikeuchi 99426e4f7d wifi-scripts: identify the IPQ9574 radio
Add the IPQ9574 compatible to the radio hardware-name table used by
the ucode iwinfo implementation.

Link: https://github.com/openwrt/openwrt/pull/25595#issuecomment-6009991907
Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:50 +02:00
Satoshi Ikeuchi d0222636e4 mac80211: read split-PHY topology when QCN9274 OTP is unset
Describe fixed split-PHY topology with an optional qcom,split-phy property
on the PCIe radio. Read it only for QCN9274 hw2.0 when the OTP board
identifier is zero or erased, before target capability discovery.

Valid OTP remains authoritative. Devices without the property and other
hardware revisions retain their existing behavior. Leave QMI capability
handling and WMI mode selection unchanged. Do not match router identities
inside ath12k.

Include the proposed binding and driver handling together; board selection
is separate. The binding is an RFC for maintainer review.

Source checks covered OTP field values, absent inputs, per-device isolation,
patch refresh and schema validation. LN6001 startup also exercised the
unset-OTP property path in the attended test.

Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:50 +02:00
Satoshi Ikeuchi 1ec6af5155 mac80211: handle unknown ath12k direct-buffer capabilities
An unknown direct-buffer module ID currently rejects the whole capability
event. Skip unsupported entries without enabling those features, compact
the retained entries and publish their actual count. Adapt the change to
backports 7.2, retaining empty-result cleanup and malformed-input errors.

Carry only this firmware capability-parser change from OpenWrt PR #23001,
crediting its source and the published review guidance. Keep it separate
from radio-topology selection.

The reduced LN6001 series containing this change passed 5 and 6 GHz radio
registration and AP startup on the physical device.

Link: https://github.com/openwrt/openwrt/pull/23001
Link: https://github.com/openwrt/openwrt/pull/23001#discussion_r3195284635

Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:50 +02:00
Satoshi Ikeuchi 32b290aba4 ipq-wifi: support IPQ9574 board-file installation
Recognize the IPQ9574 suffix and install board data under the standard
ath11k IPQ9574/hw1.0 directory. Reuse the existing installation helper
and leave all other chipset mappings unchanged.

This routing is also proposed by Sandeep Sondagar in OpenWrt PR #24432.
Keep the shared installation support separate from model registration.

Link: https://github.com/openwrt/openwrt/commit/5fd1685cf3dfc6d63c92e78781f8f433bc9863af
Link: https://github.com/openwrt/openwrt/pull/24432
Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:50 +02:00
Satoshi Ikeuchi f7b250d90d ath11k-firmware: add IPQ9574 package
Add the IPQ9574 package from the pinned public source, retaining its
license notices. Keep board-profile selection separate. Related package
enablement is also present in OpenWrt PR #24432.

Link: https://github.com/openwrt/openwrt/pull/24432

Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:50 +02:00
Satoshi Ikeuchi 2942f735bf qualcommbe: add IPQ9574 ath11k device-tree resources
Add the shared IPQ9574 integrated-radio resources and interrupt
bindings. Keep board-specific enablement separate.

Link: https://lists.infradead.org/pipermail/ath11k/2026-January/008113.html
Link: https://github.com/openwrt/openwrt/pull/24432
Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:50 +02:00
Satoshi Ikeuchi bd584ea943 mac80211: add IPQ9574 ath11k support
Carry the public IPQ9574 ath11k hardware support and allow
kmod-ath11k-ahb on qualcommbe.

The ath11k change shares its public origin with PR #24432. Keep its
backports-layout adaptation distinct from board-specific enablement.

Link: https://lists.infradead.org/pipermail/ath11k/2026-January/008113.html
Link: https://github.com/openwrt/openwrt/pull/24432
Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:49 +02:00
Satoshi Ikeuchi d2d4d5fdbc kernel: allow QRTR SMD on qualcommbe
Make kmod-qrtr-smd available on qualcommbe for the IPQ9574 integrated
radio. Preserve its availability on qualcommax.

Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:49 +02:00
Satoshi Ikeuchi 85b68ce007 qualcommbe: add secure IPQ9574 WCSS support
Enable the existing secure WCSS driver and describe the shared IPQ9574
remoteproc, reserved memory and interprocessor communication resources.
Keep the remoteproc node disabled until enabled by a board.

Use SCM/PAS for startup instead of extending the native WCSS driver with
manual clock and reset sequencing. Load q6_fw.mdt and the auxiliary
m3_fw.mdt from the IPQ9574 ath11k-firmware package added in this series.

With board enablement applied separately, secure WCSS startup and ath11k
registration passed on LN6001. An attended iPhone test passed association,
DHCP and four local pings on each of 2.4, 5 and 6 GHz with all three APs
enabled, using that unit's factory calibration.

Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:49 +02:00
Satoshi Ikeuchi f9c89becc3 kernel: share the existing Qualcomm secure WCSS loader
Move the secure WCSS driver, binding and split-firmware support from
qualcommax to the common kernel patch series. IPQ9574 support is already
provided by this driver.

Split out the unchanged TME-L client header so qualcommbe can compile the
driver without enabling the mailbox controller. Keep the qualcommax-only
follow-up patches in that target; its resulting driver is unchanged.

Describe the existing multi-file loading interface in the common binding
and leave the driver disabled unless selected by a target.

Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25595
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 13:58:49 +02:00
Felix Fietkau f6a2ff7c24 libjson-c: free a container object outside of assert()
json-c 0.19 frees a container object in json_object_put() in a call
inside assert(). The package builds with NDEBUG, which compiles that
call out, so every released object or array stays allocated. Each
json() of ucode leaks its result this way: netifd grew to 58 MB and a
test agent to 80 MB within a day, and a 352 MB device ran out of memory.

Add a patch that calls the function before the assertion.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-16 13:55:28 +02:00
Steve Meek 5df6ceb3d4 qualcommax: ipq50xx: add support for Xunison Exigo Hub D50 5G
The Xunison Exigo Hub D50 5G is a 5G/LTE router with Wi-Fi 6. It is also
sold as the Zearts D50 5G.

Specifications:
  SoC:      Qualcomm IPQ5018, dual-core Cortex-A53 @ 1.0 GHz
  RAM:      512 MiB
  Flash:    128 MiB SPI NAND (ESMT F50D1G41LB)
  WLAN:     IPQ5018 2.4 GHz, QCN9074 5 GHz (PCIe), both 802.11ax
  Ethernet: 1x GbE WAN (IPQ5018 internal GE PHY, gmac0)
            3x GbE LAN (QCA8337 switch, SGMII to gmac1)
  WWAN:     Quectel RM500Q-AE, 5G Sub-6 / LTE Cat 16, on USB 2.0 and
            PCIe
  Buttons:  reset, WPS
  LEDs:     MESH (green/red), 5G (green/red), 4G, WiFi, Internet, WAN;
            power is hardwired
  Power:    12 V / 2 A DC
  Serial:   115200 8N1, 4-pin header JP1 next to SW4 on the main board,
            from pin 1: VCC, TX, RX, GND

Notes:
- WAN is gmac0 wired straight to the internal GE PHY, not a switch
  port; its netdev is named wan by the label property.
- The console RX line (gpio20) is pulled up. Left floating with nothing
  on the header it causes an interrupt storm and, on some units, a hang
  at boot.
- USB is 2.0 only: the controller is limited to the HS PHY and clocks
  its pipe from UTMI. The 5 V supply for the port and the modem is
  switched by gpio24 (active low).
- MACs follow the stock firmware: LAN uses 0:art 0x0, WAN 0:art 0x6.
  The label has no MAC printed, so there is no label-mac-device.
- Wi-Fi calibration data and MAC addresses come from 0:art through
  nvmem cells on the Wi-Fi nodes (calibration: IPQ5018 at 0x1000,
  QCN9074 at 0x26800). The caldata holds the Qualcomm placeholder MAC,
  so the radios take the 0:art 0x0 MAC + 2 and + 3 instead.
- Board data for both radios is submitted separately to
  firmware_qca-wireless under the calibration variant
  Xunison-Exigo-Hub-D50-5G, both taken from the stock firmware:
  bdwlan.b24-brax for the IPQ5018 and qcn9000/bdwlan.ba0 for the
  QCN9074. The brax file is the vendor's board variant; on my unit it
  outperformed the bdwlan.b24 that the stock firmware loads.
- The modem power line (gpio31) has no consumer and is kept high with a
  GPIO hog.
- The Internet LED is lit while the modem's wwan0 is up. The WiFi LED
  uses the network trigger in link mode, so it is lit while an AP is up
  on either radio; the phyNradio triggers never light it with ath11k on
  this board. The 4G and 5G LEDs have no trigger, as nothing in the
  kernel reports the modem's access technology.

Modem:
The RM500Q-AE is wired to both USB and PCIe, and its data_interface
setting selects which one carries data. The stock firmware leaves it on
PCIe (data_interface 1,0) and this port uses it there, so no AT command
is needed after installing. It is driven by mhi-pci-generic with MBIM:
data on wwan0, control on /dev/wwan0mbim0 and AT commands on
/dev/wwan0at0. No modem interface is preconfigured; add one with the
"mbim" protocol on /dev/wwan0mbim0.

Installation:
  The factory image is a raw UBI image for the U-Boot web recovery.
  1. Power the router off, hold the reset button and power it on. Keep
     holding until the Internet LED stays lit (about 10 seconds).
  2. Set a computer on a LAN port to 192.168.1.2/24 and open
     http://192.168.1.254
  3. Upload openwrt-qualcommax-ipq50xx-xunison_exigo-hub-d50-5g-squashfs-factory.img
     and wait for the router to reboot.
  Later upgrades use the sysupgrade image.

The port started from George Moussalem's device support in the 4IceG
OpenWrt tree, with the device tree reworked by Lukasz Szczur (LS3434):
USB, the modem supply and the NAND/sysupgrade layout. Thanks to Hostle
for the flashing work on this board and to Rafał Wabik (4IceG) for the
tree it was developed in.

Link: https://forum.openwrt.org/t/adding-support-for-xunison-exigo-d50-5g-zearts-d50-5g-ipq5018/247016
Co-developed-by: George Moussalem <george.moussalem@outlook.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Co-developed-by: Lukasz Szczur <8sdasfasfas@royaleplaysempire.com>
Signed-off-by: Lukasz Szczur <8sdasfasfas@royaleplaysempire.com>
Co-developed-by: Rafał Wabik <4rafal@gmail.com>
Signed-off-by: Rafał Wabik <4rafal@gmail.com>
Signed-off-by: Steve Meek <stevemeek82@gmail.com>

Link: https://github.com/openwrt/openwrt/pull/25890
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-16 09:52:28 +02:00