Skip to content

Pull req up until 4.4.11 - #10

Closed
wigyori wants to merge 51 commits into
openwrt:masterfrom
wigyori:master
Closed

wigyori wants to merge 51 commits into
openwrt:masterfrom
wigyori:master

Conversation

@wigyori

@wigyori wigyori commented Jun 20, 2016

Copy link
Copy Markdown
Contributor

No description provided.

Noltari and others added 30 commits June 20, 2016 14:50
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
improves overall performance of the platform, since it fixes cache
problems that prevented the cache from operating fully in previous
releases.

Signed-off-by: Marek Vasut <[email protected]>
Add package with the DT compiler v1.4.1 .

Signed-off-by: Marek Vasut <[email protected]>
Add patch with the DT overlay support into the DTC package.

Signed-off-by: Marek Vasut <[email protected]>
Add necessary kernel backports to support the Cadence QSPI controller
present on the Altera SoCFPGA SoC.

Signed-off-by: Marek Vasut <[email protected]>
This change switches ARC tools to the most recent arc-2016.03
version.

ARC GNU tools of version arc-2016.03 bring some quite significant
changes like:
 * Binutils v2.26+ (upstream commit id 202ac19 with additional ARC
 * patches)
 * GCC v4.8.5
 * GDB 7.10

More about changes, improvements and fixes could be found here:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03

Signed-off-by: Alexey Brodkin <[email protected]>
Initially for ARC we were building vmlinux images because it
was both simpler and more convenient to debug Linux kernel
in runt-time via JTAG. Now when base system works quite nice
we may finally use U-Boot for loading the system image as
well. Still we keep building vmlinux images as some of our
boards are development boards and loading images with JTAG
could be at some points very beneficial.

Note for U-Boot header it's required to specify 2 values:
 * loading address
 * entry point (if it doesn't match loading address)

and in case of ARC entry point (EP) not only differs from
loading address but also changes from build to build due to
initramfs being placed between loading address and text section.
To accommodate that feature we have to calculate EP after
vmlinux gets built and before call to mkimage.

Signed-off-by: Alexey Brodkin <[email protected]>
package/devel/gdb-arc: Add target GDB for ARC

ARC port of GDB is not yet upstream so we need to use
sources from Synopsys GitHub repo.

Given Synopys' commitment to upstream ARC support in GDB
in the nearest future it might be simpler to add a separate
package for ARC GDB instead of patching generic GDB package.
This way once ARC GDB stuff gets uptreamed we'll only need
to remove that new "gdb-arc" package.

Note 1 very minor change in generic gdb package was done -
it now depends on !arc (while "gdb-arc" depends on "arc").

Signed-off-by: Alexey Brodkin <[email protected]>
Even though ARC tools were released as arc-2016.03
we have a little bit different version name for GDB.
That's because both Binutils and GDB come from the same
git repo but from different branches (and so different tags).

Also removing an extra patch that made its way into release.

Signed-off-by: Alexey Brodkin <[email protected]>
Update the dropbear package to version 2016.73, refresh patches.
The measured .ipk sizes on an x86_64 build are:

  94588	dropbear_2015.71-3_x86_64.ipk
  95316	dropbear_2016.73-1_x86_64.ipk

This is an increase of roughly 700 bytes after compression.

Tested-by: Kevin Darbyshire-Bryant <[email protected]>
Signed-off-by: Jo-Philipp Wich <[email protected]>
This fixes mount_root in failsafe and reverts a ext4 overlay patch.

Signed-off-by: John Crispin <[email protected]>
Fix ARCHER_C7_GPIO_BTN_RFKILL, which is attached to GPIO23

Signed-off-by: Lars Buerding <[email protected]>
Update e2fsprogs to v1.42.13 from 1.42.12

Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
This has minor differences to the V1

Signed-off-by: John Crispin <[email protected]>
- CPU QCA9531-BL3A
- RAM: 64MB
- flash: 16MB
- USB

AP143 platform, similar to tl-wr841n v10/v11, but with USB

Signed-off-by: Cezary Jackiewicz <[email protected]>
This allows gpio requests from mach files to succeed.

Signed-off-by: Felix Fietkau <[email protected]>
Signed-off-by: Cezary Jackiewicz <[email protected]>
To avoid confusion with different unifiac devices, rename existing target
"unifiac" to "unifiac-lite", before "unifiac-pro" is introduced.

Signed-off-by: P.Wassi <p.wassi at gmx.at>
Add support for the Ubiquiti UniFi AP AC PRO
Signed-off-by: P.Wassi <p.wassi at gmx.at>
OpenWRT changed the default fq_codel sch->limit from 10240 to 1024,
without also adjusting q->flows_cnt.  Eric Dumazet explains below that
you must also adjust the buckets (q->flows_cnt) for this not to break.

Eric explains: Limit of 1024 packets and 1024 flows is not wise I think.
(If all buckets are in use, each bucket has a virtual queue of 1 packet,
which is almost the same than having no queue at all)

I suggest to have at least 8 packets per bucket, to let Codel have a
chance to trigger.  So you could either reduce number of buckets to 128
(if memory is tight), or increase limit to 8192.

flows_cnt is now set to 1024/8=128

Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
ddejean added a commit to ddejean/openwrt that referenced this pull request Oct 19, 2025
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This Cl changes the sds mapping function from
a single implementation for the 3 families to one implementation per
chip family. In particular it implements the mapping required for the
rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
ddejean added a commit to ddejean/openwrt that referenced this pull request Oct 19, 2025
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This Cl changes the sds mapping function from
a single implementation for the 3 families to one implementation per
chip family. In particular it implements the mapping required for the
rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
ddejean added a commit to ddejean/openwrt that referenced this pull request Oct 20, 2025
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This Cl changes the sds mapping function from
a single implementation for the 3 families to one implementation per
chip family. In particular it implements the mapping required for the
rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
ddejean added a commit to ddejean/openwrt that referenced this pull request Oct 21, 2025
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
robimarko pushed a commit to ddejean/openwrt that referenced this pull request Oct 26, 2025
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>
simsasss pushed a commit to simsasss/openwrt that referenced this pull request Oct 26, 2025
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>
HateTM added a commit to HateTM/tpl_ax80_ubi that referenced this pull request Oct 30, 2025
* Revert "kernel: removed GRO fraglist by default on kernel 6.12"

This reverts commit 2b18766.

* kernel: disable fraglist GRO by default

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: 6.12 change default rx buffer

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: 6.6 add mtk_eth_soc-change-default-rx-buffer-length

manually refreshed patches 2719
other patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: revert to import 06.2025 update

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: sync with 2025.06.16 with latest mtk 12.2025 01.2025

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: do not touch rps if packet steering is enabled

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: RPS setting type 1 or type 2.

type 1 - standard: as before like mtk source
type 2 - advanced: to distribute better accros CPUs as suggestion on forum

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to import latest vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to my repo 2025-06-03

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: update to 2025.06.18

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: Adds a specific initialization register for mt7986 in the ADIE power-on sequence.

Disableing setting the IGTK key for AES-CMAC in firmware, delegating it to mac80211 for consistency with GMAC.

Refreshed other patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import latest changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: import mtk patches and refresh patch to 2025.06.23

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: refresh config and set timer tick 300

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: add sleep on boot and prevent slow up start on boot

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: better identification of real device and code beautify

Signed-off-by: Andrea Pesaresi <[email protected]>

* firewall: removed patch 100

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt753x: dsa: eanble fdb learn on cpu port

attempt to fix arp issues

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk: removed jumbo frame - cleaned rss patch - add debugfs to clean apply patch from mtk

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: clean and add only rss

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mod on RSS Hash Function for rss ethtool and:
convert cap bit
change napi poll weight
change default rx buffer
add 9k jumbo frame

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk version 6.6, removed not necessary patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk: rework patches rss and jumbo packet.

- add a fix for rss

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk: convert cap bit

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk: refresh patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk: 6.12 rework rss and jumbo frame patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: net: mtk: use net_prefetch for non pagepool path

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware revert to vanilla to sync

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: mtk: disable jumbo frame and refresh patch

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: update to 20250704 with latest mt7986

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert my mod to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mac80211: revert from my mod to vanilla to import latest changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: revert from my mod to vanilla to import latest changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to vanilla to update latest changes on main

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: update mt76 to 2025.07.07
manually refresh patch 1016

Signed-off-by: Andrea Pesaresi <[email protected]>

* mac80211: add mtk patch on 6.14.xx

manually refresh patch mtk 17 28 31

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: add mtk patch

- automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: update to 2025.07.12

mt7915 - mt798x update to 2024.12.18-19

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: re-enable GRO fraglist

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: ethernet: mtk_eth_soc: add 2500Mbps maximum rate limt

Without this patch, the ETH driver is unable to set QDMA maximum rate
limit to 2500 Mbps for the specific TX queue.

original patch from mtk 999-2728-net-ethernet-mtk_eth_soc-add-2500Mbps-maximum-rate-limit.patch

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: avoid clearing vht 160 support during downgrading bw

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: explicitly initialize wpabuf->flags to 0 in wpabuf_alloc()

This avoids warnings such as:
warning: 'free' called on pointer '_36' with nonzero offset 32 [-Wfree-nonheap-object]

by explicitly setting wpabuf->flags to 0 ensures and prevents static from misinterpreting the state of the buffer

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup script: fix a bug

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: fix script for eth1

- now log only in syslog

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: use ALTX queue for deauth frames

Signed-off-by: Andrea Pesaresi <[email protected]>

* mediatek: swap to 6.12 - removed mtk patch for 6.6

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: update delay to 30sec

- now delay can be set-up on luci-app-advanced

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: mt7915: set appropriate txq memory limits

MT7986 is DBDC and would fall back to the mac80211 default of 16MB
or if the radio does not support VHT (2G/6G) then 4MB. Set all radios
to 32MB except MT7915 DBDC where 16MB is adequate.

Signed-off-by: Andrea Pesaresi <[email protected]>

* Revert "mbedtls: Apply configuration in Configure instead of Prepare"

This reverts commit 5359639.

* mt76: ignore dynamic SMPS requests

when there are Windows machines with dynamic SMPS mode connected
to these radios, they constantly move between dynamic and off states.
something about this toggling causes other clients on the same radio
to disconnect randomly.

Signed-off-by: Andrea Pesaresi <[email protected]>

* Reapply "mbedtls: Apply configuration in Configure instead of Prepare"

This reverts commit 3f1cdf4.

* mac80211: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mac80211: import mtk patch on mac80211 6.16

- all patch automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: import mtk patch

- all patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: update to 2025.08.13

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: update to 2025.08.13 and apply mtk patch

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: import mtk patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: import latest mtk patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: import mtk patches

-manually reworked patch mtk/0013

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76. revert to import latest vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: refresh patches mtk to sync with 2025.08.25

- automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* mac80211: refresh patch after latest commit 28.08.2025

- patch 0033 manually refreshed
- other patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* wifi-script: ucode: align with vanilla

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: ethernet: mediatek: fix rss patch after commit 2025.09.05

- manually fix patch 999-2710

other patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* Revert "net: ethernet: mediatek: fix rss patch after commit 2025.09.05"

mainstream commit is reverted, I revert also this one

This reverts commit c8f9734.

* net: ethernet: mtk: refresh patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: added mt3000

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to vanilla to import latest vanilla commit

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: eth: mtk: manually refresh mtk patch 999-2710-net-ethernet-mtk_eth_soc-add-rss-support

-this need to be done after this commit: improve mtk_eth_soc performance 2025.09.09
- shrink data structures
- avoid unnecessary divisions
- support GSO fraglist on tx

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: manually refresh patches 0013-1016 after update of 2025.09.09

- other patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: ethernet: rename mtk patch 999-2709... 999-2710... to align to mtk numbers

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: ethernet: mtk: disable-RSS-mt7981

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: ethernet: mtk RSS fix-ethtool-hash-function

Signed-off-by: Andrea Pesaresi <[email protected]>

* Revert "kernel: refresh config and set timer tick 300"

This reverts commit f5def0c.

* ksmbd: revert limit repeated connections

After applying the upstream patch e6bb9193974059ddbb0ce7763fa3882bd60d4dc3 (ksmbd: limit repeated connections from clients with the same IP), ksmbd works for Windows and Android clients but fails to connect from Linux/Ubuntu clients.
Mount attempts using gio mount, smbclient, or mount -t cifs hang or timeout.

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert makefile to import latest vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: update to 2025.09.15

- manually refresh patches 1016-9604
- other patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* ksmbd: instead of remove the multiple connection check, check if it is a real share

Signed-off-by: Andrea Pesaresi <[email protected]>

* ksmbd: removed patch, waiting fix

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: fix increase-txq-memory-limit patch

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: revert to import latest commit on vanilla

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import changes on vanilla

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: sync with 2025.09.25

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: add mtk patch on vanilla update of 2025.09.25

Signed-off-by: Andrea Pesaresi <[email protected]>

* ksmbd: revert upstream limit repeated connection

the upstream commit https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=linux-6.6.y&id=fa1c47af4ff641cf9197ecdb1f8240cbb30389c1
and the extended for ipv6 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=linux-6.6.y&id=d9e157fcfebc126cd19b2333a6417a840c24e529
cause a regression if you try to get a connection on nautilus by a double click on share name.
When you do a double click on share name Nautilus try to connect two times, and ksmbd refusing it.
An issue is opened here namjaejeon/ksmbd#512, at the moment, until we don't have a fix upstream I suggest to revert these two commits.

Signed-off-by: Andrea Pesaresi <[email protected]>

* ksmbd: revert my patch to import the one suggested from owrt team

Signed-off-by: Andrea Pesaresi <[email protected]>

* ksmbd: revert upstream limit repeated connection

the upstream commit https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=linux-6.6.y&id=fa1c47af4ff641cf9197ecdb1f8240cbb30389c1
and the extended for ipv6 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=linux-6.6.y&id=d9e157fcfebc126cd19b2333a6417a840c24e529
cause a regression if you try to get a connection on nautilus by a double click on share name.
When you do a double click on share name Nautilus try to connect two times, and ksmbd refusing it.
An issue is opened here namjaejeon/ksmbd#512, at the moment, until we don't have a fix upstream I suggest to revert these two commits.

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: swap to owrt to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: add mtk patches to latest hostapd mod on owrt vanilla

Signed-off-by: Andrea Pesaresi <[email protected]>

* ksmbd: revert my local changes, import upstream

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: update to 2025.10.05

patch 1022 was imported upstream with patch 0001_0002 add bf backoff
9703 don't need anymore

patch 1000 and 0004 manually refreshed, other patches automatically refreshed

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel6.6: ksmbd: browse-interfaces-list-on-FSCTL_QUERY_INTERFACE_INFO

backport from kernel 6.12

ksmbd.mount will give each interfaces list and bind_interfaces_only flags
to ksmbd server. Previously, the interfaces list was sent only
when bind_interfaces_only was enabled.
ksmbd server browse only interfaces list given from ksmbd.conf on
FSCTL_QUERY_INTERFACE_INFO IOCTL.

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: ksmbd: add max ip connection parameter

With this patch is set the maximum number of connections per ip address instead of no control.
The default is 8.

Signed-off-by: Andrea Pesaresi <[email protected]>

* netfilter: add two patches: nf_flow_table_core-teardown-direct-xmit-on-dest-changed and flow-Add-bridge_vid-member

flow-Add-bridge_vid-member:
ericwoud/linux@a73a210

nf_flow_table_core-teardown-direct-xmit-on-dest-changed:
ericwoud/linux@f28c2e0

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: eth: mtk: ranamed patch to align with mtk sdk and fix queue on case speed 2500

Signed-off-by: Andrea Pesaresi <[email protected]>

* net: mtk: fix eth-24-mtk_eth_soc-add-2500Mbps-maximum-rate-limit-for-NETSYSv3

Signed-off-by: Andrea Pesaresi <[email protected]>

* Revert "net: mtk: fix eth-24-mtk_eth_soc-add-2500Mbps-maximum-rate-limit-for-NETSYSv3"

This reverts commit e5983bd.

* Revert "net: eth: mtk: ranamed patch to align with mtk sdk and fix queue on case speed 2500"

This reverts commit 0d8cf30.

* mt76: update to 2025-10-13

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: revert to import vanilla

Signed-off-by: Andrea Pesaresi <[email protected]>

* Revert "kernel: ksmbd: add max ip connection parameter"

This reverts commit 3580d95.

* Revert "kernel6.6: ksmbd: browse-interfaces-list-on-FSCTL_QUERY_INTERFACE_INFO"

This reverts commit 39da6ff.

* linux-firmware: update to 2025.10.16

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: revert to import vanilla changes

Signed-off-by: Andrea Pesaresi <[email protected]>

* mt76: update to 2025.10.20

- manually refresh patches 2000 and 1008
- removed 9601 imported upstream

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: revert to import latest upstream patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* hostapd: import mtk patch on latest release

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: procd-compatible

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: refresh patches

Signed-off-by: Andrea Pesaresi <[email protected]>

* kernel: add power on off control

cat /sys/devices/platform/regulator-usb-vbus/usb_vbus_enable  # read status
echo 0 > /sys/devices/platform/regulator-usb-vbus/usb_vbus_enable  # power off USB
echo 1 > /sys/devices/platform/regulator-usb-vbus/usb_vbus_enable  # power on USB

Signed-off-by: Andrea Pesaresi <[email protected]>

* advanced_setup: now power can be set from LuCi

Signed-off-by: Andrea Pesaresi <[email protected]>

* linu-firmware: revert to import latest mod

Signed-off-by: Andrea Pesaresi <[email protected]>

* linux-firmware: update to 2025.10.24

Signed-off-by: Andrea Pesaresi <[email protected]>

* realtek: add serdes mapping for rtl930x

On the RTL930x series the serdes #3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>

* realtek: add serdes patch for 10G_QXGMII

Adds the serdes patch sequence [1] and configuration [2] for the
PHY_INTERFACE_MODE_10G_QXGMII mode (aka USXGMII_QX in Realtek sources).
It is required by devices with light bootloaders (ie not u-boot) that
does not initialize the hardware before booting the kernel.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_construct.c#L1075
[2] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_construct.c#L1315

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>

* realtek: add 10G_QXGMII serdes mode support for RTL930x

In Realtek implementation USXGMII is divided in submodes:
 - USXGMII_SX: 10G single link, equivalent of PHY_INTERFACE_MODE_USXGMII
 - USXGMII_DX: 10G two links (2*5G ?),
 - USXGMII_QX: 10G four links, presumably 4*2.5G, used with the RTL8224,
   equivalent of PHY_INTERFACE_MODE_10G_QXGMII.

This CL adds the 10_GQXGMII modes to the RTL930x implementation. In
particular the "mode set" function is extended to support both simple
mode set, and force mode set depending on the mode according to
dal_longan_sds_mode_set [1].

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L1746

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>

* Revert "build: Add _FORTIFY_SOURCE=3 support"

This reverts commit 93f8662.

* Revert "toolchain: fortify-headers: Update to version 2.3.3"

This reverts commit 6268692.

* bmips: fix leds on f@st3864op

gpio-leds were not working on F@ST3864OP before  was merged.

This pull request adds definitions for all LEDs, including the previously
non-working WAN LEDs.

Signed-off-by: Hang Zhou <[email protected]>
Link: openwrt#20533
Signed-off-by: Álvaro Fernández Rojas <[email protected]>

* toolchain: fortify-headers: Fix build of some packages

Fix some warnings and compile errors generated by the new
fortify-headers when compiling some applications like strace.

Fixes: 6268692 ("toolchain: fortify-headers: Update to version 2.3.3")
Link: openwrt#20561
Signed-off-by: Hauke Mehrtens <[email protected]>

* elfutils: add compatibility with new fortify-headers

Add compatibility with the new fortify-headers 2.3.3 by
disabling two warnings.

Fixes: 6268692 ("toolchain: fortify-headers: Update to version 2.3.3")
Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20552
Signed-off-by: Hauke Mehrtens <[email protected]>

* odhcpd: update to Git HEAD (2025-10-26)

fc27940fe993 dhcpv6: support a configurable DUID
ae16476bcad2 dhcpv6-ia: split reconf_msg struct into partial structs
a3bf57a39958 dhcpv6: split clientid to a separate struct
14da3727ac0c dhcpv6-ia: simplify/fix IID calculations
f49574e42e78 odhcpd: change "-c" cmd line arg to take a dir
0900202c2754 dhcpv4: dhcpv4_lease() - clarify which variables are requests
2c1e6e7c3ebf dhcpv4: dhcpv4_lease() - simplification
48487aedead8 dhcpv4: dhcpv4_lease() - convert to switch statement
3ad54baa4adc dhcpv4: dhcpv4_assign() - explain address assignment
fab8f67818e6 dhcpv6: send timezone only when client requests

openwrt/odhcpd@0d0fac3...fc27940

Fixes: 28bb40c ("odhcpd: update to Git HEAD (2025-10-22)")
Link: openwrt#20559
Signed-off-by: Álvaro Fernández Rojas <[email protected]>

* airoha: add nodes for 3rd PCIe line for AN7581

Some SoC might use the Serdes for the second USB port as a 3rd PCIe
line (with the SSTR register correctly setup).

Add the node for the 3rd PCIe card and enable for the eMMC RFB board.

Signed-off-by: Christian Marangi <[email protected]>

* ipq40xx: remove ethernet0 alias for Netgear LBR20

This will remove the ethernet0 alias and TODO as setting the LAN MAC via
nvmem to gmac0 will set the correct mac to the switch.

Signed-off-by: Christoph Krapp <[email protected]>
Link: openwrt#20558
Signed-off-by: Robert Marko <[email protected]>

* ipq40xx: improve Netgear LBR20 LED config

This aligns the LED behaviour with other Orbi devices. Orbi devices have
multiple RBG LEDs at the top of the device and two status LEDs at the
back next to the barrel jack.
The current behaviour of other Orbi devices is to use the multi-color
LEDs at the top for status indication and the green/red LEDs at the back
for running/panic-indication. This matches the vendor behaviour except
the color choice.
Other devices use green as running, blue on upgrade, red on failsafe and
white on bootup, so this aligns the LBR20 behaviour to the rest.

Signed-off-by: Christoph Krapp <[email protected]>
Link: openwrt#20558
Signed-off-by: Robert Marko <[email protected]>

* ipq40xx: fix sysupgrade image for Netgear LBR20

This fixes the sysupgrade image generation for the LBR20 as before
updating resulted in a brick which needed to be recovered using
nmrpflash.

UART log of a bricked unit:
Loading DNI firmware for checking...
Loading firmware 1 ...

NAND read: device 0 offset 0xa600000, size 0x20000
 131072 bytes read: OK

NAND read: device 0 offset 0xa600000, size 0x380000
 3670016 bytes read: OK
rootfs imge header corrupted !
Loading firmware 2 ...

NAND read: device 0 offset 0xa600000, size 0x20000
 131072 bytes read: OK

NAND read: device 0 offset 0xa600000, size 0x380000
 3670016 bytes read: OK
rootfs imge header corrupted !

Comparing the partition contents of a bricked and a working unit showed
that on the bricked one the fake uImage header was missing. The UBI
partition also showed significant changes. Both are fixed when the
base DniImage receipt is used.

Signed-off-by: Christoph Krapp <[email protected]>
Link: openwrt#20558
Signed-off-by: Robert Marko <[email protected]>

* realtek: pcs: rtl930x: import SerDes setup code from PHY driver

Import SerDes configuration code from PHY driver into the PCS driver.
Only do mandatory adjustments, rename the function to adhere to the
naming scheme, adjust all SerDes access calls.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: openwrt#20539
Signed-off-by: Robert Marko <[email protected]>

* realtek: pcs: rtl930x: use regmap for register access

Use regmap to access registers in the global register space so we don't
have to use the old macros sw_r32/sw_w32 anymore.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: openwrt#20539
Signed-off-by: Robert Marko <[email protected]>

* realtek: dsa,pcs: rtl930x: let PCS driver setup SerDes

Remove SerDes initialization/configuration calls from the DSA driver in
'rtl93xx_phylink_mac_config' and let our PCS driver setup the SerDes now
that the driver is able to do that.

Adjust some details in rtl93xx_phylink_mac_config to ensure the MAC is
properly disabled MAC before configuring the SerDes. This was done
within the SerDes code before.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: openwrt#20539
Signed-off-by: Robert Marko <[email protected]>

* wifi-scripts: ucode: fix check for empty crypto object while scanning

it can be empty

Signed-off-by: Leon M. Busch-George <[email protected]>
Link: openwrt#20526
Signed-off-by: Robert Marko <[email protected]>

* realtek: rtl838x: fix regression in enable_phy_polling

Fix regression from back when support for RTL930x was added.
While at it replace 0x8000 by BIT(15).

Fixes: 2702927

Tested-by: Jonas Jelonek <[email protected]>
Signed-off-by: Felix Baumann <[email protected]>
Link: openwrt#20549
Signed-off-by: Robert Marko <[email protected]>

* airoha: add pending patch for USB support on AN7581

Add pending patch for USB support on AN7581 SoC. This is also required
to make operational the 3rd PCIe line that use the USB2 Serdes for PCIe
operations.

Signed-off-by: Christian Marangi <[email protected]>

* airoha: an7581: add USB nodes

Add USB nodes to AN7581 DTSI, disabled by default.

Signed-off-by: Christian Marangi <[email protected]>

* airoha: an7581: correctly attach the USB2 PHY for 3rd PCIe line

The 3rd PCIe line use the USB2 serdes for PCIe operation. Correctly set
it to the DT node so that the mode can be correctly set in the PHY
driver.

Signed-off-by: Christian Marangi <[email protected]>

* airoha: an7581: enable USB node on eMMC RFB board

Enable USB node on eMMC RFB board and disable USB2 3.0 port to make the
3rd PCIe line correctly work.

This is needed to prevent the xHCI driver to mess with PCIe by
configuring the USB2 3.0 port. Port will still be detected but won't be
configureed by the driver and won't have PHY to configure for.

Signed-off-by: Christian Marangi <[email protected]>

* Revert "toolchain: fortify-headers: Fix build of some packages"

This reverts commit 61f16a6.

The new fortify-headers version needs some more work to be usable in
OpenWrt. Revert this to fix the builds again.

Signed-off-by: Hauke Mehrtens <[email protected]>

* Revert "toolchain: fortify-headers: Update to version 2.3.3"

This reverts commit 6268692.

The new fortify-headers version needs some more work to be usable in
OpenWrt. Revert this to fix the builds again.

Signed-off-by: Hauke Mehrtens <[email protected]>

* Revert "elfutils: add compatibility with new fortify-headers"

This reverts commit 096739a.

The new fortify-headers version needs some more work to be usable in
OpenWrt. Revert this to fix the builds again.

Signed-off-by: Hauke Mehrtens <[email protected]>

* airoha: adjust and default the loadaddr

Similar to e92b153 ("mediatek: introduce KERNEL_LOADADDR to Device/Default template"),
let's move the default loadaddr to Device/Default.

What's more, use 0x80200000 instead of the SDK default value 0x80088000
to avoid the following error which may overwrite TZ memory and cause crash:

    [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
    [    0.000000] OF: reserved mem: Reserved memory: failed to reserve memory for node 'atf@80000000': base 0x0000000080000000, size 2 MiB

Signed-off-by: Ziyang Huang <[email protected]>
[ fix spelling mistake ]
Link: openwrt#20470
Signed-off-by: Christian Marangi <[email protected]>

* airoha: Add missing board files for EN7581

Add missing leds and network board files for EN7581 SoC.

Signed-off-by: Lorenzo Bianconi <[email protected]>
[ drop reference to downstream 10g RFB board ]
Link: openwrt#20556
Signed-off-by: Christian Marangi <[email protected]>

* airoha: backport minor fixes for NPU handling

Backport upstream minor fixed for NPU handling that might result in
kernel panic or handle leak.

Signed-off-by: Christian Marangi <[email protected]>

* kernel: rtl8261n: Correct serdes global config register

Fix typo in register for the serdes global config.

Fixes: ddb0cd2 ("kernel: rtl8261n: add support for Serdes TX swap")
Signed-off-by: Richard Huynh <[email protected]>
[ add commit description ]
Link: openwrt#20465
Signed-off-by: Christian Marangi <[email protected]>

* kernel: rtl8261n: Add support for Serdes RX swap

Datasheet claims this register bit is supposed to be set by default,
however it was found in practice to not be, and OEM drivers would set
this bit at the same time.

Signed-off-by: Richard Huynh <[email protected]>
Link: openwrt#20465
Signed-off-by: Christian Marangi <[email protected]>

* ucode-mod-uline: drop usage of AUTORELEASE

AUTORELEASE has been deprecated from a long time. Drop it and hardcode
the release following the current one present in the downloads
repository.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* cli: drop usage of AUTORELEASE

AUTORELEASE has been deprecated from a long time. Drop it and hardcode
the release following the current one present in the downloads
repository.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* provision: drop usage of AUTORELEASE

AUTORELEASE has been deprecated from a long time. Drop it and hardcode
the release following the current one present in the downloads
repository.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* unetmsg: drop usage of AUTORELEASE

AUTORELEASE has been deprecated from a long time. Drop it and hardcode
the release following the current one present in the downloads
repository.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* uboot-bmips: drop usage of AUTORELEASE

AUTORELEASE has been deprecated from a long time. Drop it and hardcode
the release following the current one present in the downloads
repository.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* uboot-bcm53xx: drop usage of AUTORELEASE

AUTORELEASE has been deprecated from a long time. Drop it and hardcode
the release following the current one present in the downloads
repository.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* rules.mk: add DEPRECATION NOTICE for AUTORELEASE

Add DEPRECATION NOTICE for AUTORELEASE to signal that any usage of this
should be dropped and fixed.

The macro is still defined for legacy reason but we at least dropped any
usage of it in both main and feeds.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* Revert "sdk: use git-src-full to allow Git versioning"

This reverts commit f795ecc.

Now that AUTORELEASE has been dropped from main, we can go back on
shallow clone it for faster SDK usage.

Link: openwrt#20586
Signed-off-by: Christian Marangi <[email protected]>

* ipq40xx: add support for ASUS Lyra Mini (MAP-AC1300)

The device is the little brother of the already supported ASUS Lyra but
with the flash configuration/layout of the RT-AC58U.

Hardware
--------
SOC:    Qualcomm IPQ4019
FLASH:  2MB (Macronix MX25L1606E)
        128MB (GigaDevice GD5F1GQ4UCYIG)
RAM:    256MB (Nanya NT5CC128M16IP-DI)
WIFI:   Qualcomm IPQ4019
BT:     Atheros AR3012-BL3D
ETH:    1x WAN, 1x LAN
LED:    1 RBG LED
BTN:    WPS, Reset
UART:   115200 8N1 (square pin = VCC) VCC-TX-RX-GND

MAC addresses
-------------
LAN     2.4G + 1
WAN     2.4G + 3
2.4G    Label MAC (stored in factory offset 0x1006)
5G      2.4G + 2 (stored in factory offset 0x5006)

Installation
------------
SSH
---
1. Reset the device, setup and enable SSH.
2. Transfer initramfs.itb to /tmp on the device.
3. SSH into the router, credentials are the same as in the web ui.
4. Write initramfs to linux partition:
   mtd-write -d linux -i initramfs.itb
5. Reboot and wait for OpenWrt to boot.
6. Transfer sysupgrade.bin to /tmp on the device.
7. SSH into the router, user root, no pw.
8. Delete jffs2 ubi partition:
   ubirmvol /dev/ubi0 --name=jffs2
9. Flash OpenWrt:
   sysupgrade -n sysupgrade.bin

Signed-off-by: Christoph Krapp <[email protected]>
Link: openwrt#20573
Signed-off-by: Robert Marko <[email protected]>

* airoha: support openwrt,netdev-name for renaming interfaces

Add support to the airoha target for the OpenWrt-specific DT property
`openwrt,netdev-name`. In particular, this is for interfaces under
non-DSA `airoha_eth` interfaces.

This will avoid conflicts with upstream code[1]; and maintain forward
compatibility with OpenWrt configurations if/when `airoha_eth` becomes
a full DSA driver.

[1] https://lore.kernel.org/netdev/20240709124503.pubki5nwjfbedhhy@skbuf/

Borrowed from d4d6c48 (mediatek: filogic: support openwrt,netdev-name for renaming interfaces)

Signed-off-by: Kenneth Kasilag <[email protected]>
Link: openwrt#20475
Signed-off-by: Robert Marko <[email protected]>

* mt7981: enable irqs for rss to have compatibility with this repo

Signed-off-by: Andrea Pesaresi <[email protected]>

* Reapply "toolchain: fortify-headers: Update to version 2.3.3"

This reverts commit e5a6cfc.

* Reapply "build: Add _FORTIFY_SOURCE=3 support"

This reverts commit 4ec07b7.

* linux-firmware: set the correct source date

Signed-off-by: Andrea Pesaresi <[email protected]>

---------

Signed-off-by: Andrea Pesaresi <[email protected]>
Signed-off-by: Damien Dejean <[email protected]>
Signed-off-by: Robert Marko <[email protected]>
Signed-off-by: Hang Zhou <[email protected]>
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>
Signed-off-by: Hannu Nyman <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
Signed-off-by: Christoph Krapp <[email protected]>
Signed-off-by: Jonas Jelonek <[email protected]>
Signed-off-by: Leon M. Busch-George <[email protected]>
Signed-off-by: Felix Baumann <[email protected]>
Signed-off-by: Ziyang Huang <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Richard Huynh <[email protected]>
Signed-off-by: Kenneth Kasilag <[email protected]>
Co-authored-by: Andrea Pesaresi <[email protected]>
Co-authored-by: Damien Dejean <[email protected]>
Co-authored-by: Hang Zhou <[email protected]>
Co-authored-by: Hauke Mehrtens <[email protected]>
Co-authored-by: Hannu Nyman <[email protected]>
Co-authored-by: Álvaro Fernández Rojas <[email protected]>
Co-authored-by: Christian Marangi <[email protected]>
Co-authored-by: Christoph Krapp <[email protected]>
Co-authored-by: Jonas Jelonek <[email protected]>
Co-authored-by: Leon M. Busch-George <[email protected]>
Co-authored-by: Felix Baumann <[email protected]>
Co-authored-by: Ziyang Huang <[email protected]>
Co-authored-by: Lorenzo Bianconi <[email protected]>
Co-authored-by: Richard Huynh <[email protected]>
Co-authored-by: Kenneth Kasilag <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Nov 3, 2025
On the RTL930x series the serdes #3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>
FrankZRS pushed a commit to Cascoda/OpenWrt that referenced this pull request Dec 16, 2025
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Jan 6, 2026
On the RTL930x series the serdes #3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Jun 19, 2026
ANI-G (ME 263) attribute openwrt#10 (downstream RX optical signal level) and openwrt#14
(transmit optical level) were fixed snapshot constants. Read them live
instead from the RTL8290B's calibrated SFF-8472 DDM words (RX 0x168/0x169,
TX 0x166/0x167 on the BOSA I2C bus, unit 0.1 uW/LSB) and convert to the
G.988 encoding (2's-complement s16, 0.002 dB referred to 1 mW) with a
fixed-point log2 (no kernel FPU).

The DDM read busy-waits on the I2C bus, so it must not run in the PLOAM
fsm_poll softirq; a periodic workqueue (~3 s) samples it into a cache and
the (softirq) OMCI GET returns the cache. The snapshot stays as the
fallback until the first good read. Also expose the cached levels in
/proc/gpon for diagnostics.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
When USB Wi-Fi dongle based on Atheros AR9271 is connected to OHCI
(USB 1.1) controller following warnings flood debug console:
------------------------>8---------------------------
usb 1-1: new full-speed USB device number 2 using ohci-platform
usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4 at drivers/usb/core/urb.c:450
usb_submit_urb+0x162/0x404
usb 1-1: BOGUS urb xfer, pipe 1 != type 3
Modules linked in:
CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 4.6.3 openwrt#10
Workqueue: events request_firmware_work_func

Stack Trace:
  arc_unwind_core.constprop.1+0x94/0x10c
---[ end trace 2249b79eac9991d1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4 at drivers/usb/core/urb.c:450 usb_submit_urb+0x162/0x404
usb 1-1: BOGUS urb xfer, pipe 1 != type 3
Modules linked in:
CPU: 0 PID: 4 Comm: kworker/0:0 Tainted: G        W       4.6.3 openwrt#10
Workqueue: events request_firmware_work_func

Stack Trace:
  arc_unwind_core.constprop.1+0x94/0x10c
---[ end trace 2249b79eac9991d2 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4 at drivers/usb/core/urb.c:450 usb_submit_urb+0x162/0x404
usb 1-1: BOGUS urb xfer, pipe 1 != type 3
Modules linked in:
CPU: 0 PID: 4 Comm: kworker/0:0 Tainted: G        W       4.6.3 openwrt#10
Workqueue: events request_firmware_work_func

Stack Trace:
  arc_unwind_core.constprop.1+0x94/0x10c
---[ end trace 2249b79eac9991d3 ]---

...
------------------------>8---------------------------

With removed warning Wi-Fi dongle works properly.

Even though this is not the best solution it gets us a working Wireless
AP. Anyways new discussion was started in linux-usb mailing list to find
a proper solution instead of that hack.

Signed-off-by: Alexey Brodkin <[email protected]>
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
On the RTL930x series the serdes openwrt#3 is backed by serdes openwrt#10 when pages
0, 1, 2 or 3 are accessed [1]. This changeset modifies the sds mapping
function from a single implementation for the 3 families to one
implementation per chip family. In particular it implements the mapping
required for the rtl930x one.

[1] https://github.com/ddejean/dms-1250-oss-release/blob/main/sdk/sdk_rtk_switch/rtk-sdk/src/dal/longan/dal_longan_sds.c#L624

Signed-off-by: Damien Dejean <[email protected]>
Link: openwrt#20472
Signed-off-by: Robert Marko <[email protected]>
MayorBug pushed a commit to MayorBug/openwrt that referenced this pull request Oct 4, 2026
… functions and modem power timing

qualcommax: cudy p5: update modem timing and LED descriptions
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 6, 2026
Mandatory control (operator 2026-09-29): PON RX/TX within 2 dB of the unit's
own stock, read at the OLT. The G24W on our image reported RX -30.00 dBm
there (stock -8.85) while its module's own A2h monitor read -8.87: the
ANI-G cache (ME 263 openwrt#10/openwrt#14, what the OLT reads) sampled RTL8290B registers
0x166/0x168, and on a GN25L95 those are bytes of its identity EEPROM.

A module that is not an RTL8290B now reports through the common SFF-8472
A2h decode the Cortina shell already uses (gpon_ddm_a2h_decode ->
uw10_to_cdbm -> cdbm_to_anig); an unusable sample keeps the previous cache.
The RTL8290B path is unchanged. Host test luna_bosa_activate (dev): the
shipping body, extracted, FAILED on the old reader (gn_anig_levels_from_a2h,
gn_unusable_a2h_keeps_previous) and passes now, 1381/1381. G24W and X111W
built and verified (--no-stage).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 6, 2026
…shows it

The lab OLT's ont-capability of the bench X111W read ETH 2, POTS 1, IP
configuration support[3], priority queues DS 24 / US 96 on stock and 1, 0, not
support, 8, 0 on ours. Production OLTs see the same MIB, and the operator's
rule is that only the software version may differ. After this change
olt_view.py reads MATCHES (47 fields), and the datapath group passes on the
bench X111W (NAT v4/v6, 941/956 Mbps transit, WiFi, PPPoE, tagged WAN).

Core (gpon_omci_me.c/.h, gpon_omci_core.c):
- struct omci_slot: one equipment slot per declared circuit pack (ME 5 + ME 6:
  type, ports, priority queues, T-CONT buffers, schedulers). ME 6 gains
  openwrt#6..openwrt#8, openwrt#10, openwrt#11, openwrt#13, openwrt#14. Undeclared boards keep the single 0x0101 slot.
- ME 277 rows follow the slots: downstream blocks of 8 per Ethernet UNI then
  the VEIP, upstream 8 per T-CONT (0x8000 + 8t + p), related port counting
  down -- stock's own numbering, all 120 X111W queues checked.
- ME 134 IP host config data per declared instance; openwrt#2 is the WAN netdev MAC
  the NIC pushes (luna_omci_set_wan_mac), not answered until it does.
- ME 53 PPTP POTS UNI per declared instance (stock reports 0x0201 unwired).
- A Get of ME 5/6/53/134/277 validates the instance (UNKNOWN_INST).
- Luna OMCI_MIB_ROWS_MAX 200 -> 256 (the X111W MIB is 205 rows).

Luna shell: /omci-uni circuit-packs, ip-host-instances/ip-host-wan-mac and
pots-uni-instances are parsed; rtl9602c_eth.c and luna_eth.c push the WAN MAC
wherever they set it.

X111W DTS: the omci-uni node sat inside &spi_nor (/flash@14000000/omci-uni)
while luna_gpon looks it up at /omci-uni, so the board's UNI panel was never
applied. It is now a root child and declares stock's six circuit packs, three
IP hosts and one POTS UNI. dts_vs_measured's DRIVER_NODE_PATHS check catches
the misplacement at build time.

Host proof: omci_slot_test 30/0 (mutation-proven), omci_me_table 15/15,
omci_admin_state 129/0, omci_wire_offsets 159/159, luna_omci_pipeline 12578/0;
widths agree with stock's mib_*.so for every added attribute. All four boards
build.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Oct 6, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Oct 9, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 19, 2026
…s Set no longer stops provisioning

ISP AXS's ZTE OLT (DC3, 2026-10-17), right after its MIB upload, writes ME 11
on every Ethernet UNI with mask 0x8140: #1 expected type 0 (autosense), openwrt#8 max
frame size 1632, openwrt#10 pause time 0. We modelled #1 read-only and openwrt#8/openwrt#10 as
constants settable only to the value served (1518, 0xffff), so the whole
atomic Set failed rc=9; the OLT answered with a MIB reset, retried once, then
kept the unit at O5 with no OMCI and deactivated it every ~50 s. Stock's own
writable set (0xb9fe) has all three.

Now, per instance: #1 accepts 0 or the type the port senses; openwrt#8 accepts
1518..2000 (what the NIC's 2048-octet RX buffer carries whole); openwrt#10 accepts
any value. Each is stored and served back by Get; a MIB reset restores
expected = sensed, 1518 and 0xffff, so the upload any OLT sees before writing
is unchanged. The switch is not reprogrammed for openwrt#8/openwrt#10: a non-default value
is COUNTED in attr_owed, as the held-but-unapplied table writes are.

dev's omci_masked_store_test replays the ZTE Set byte for byte on a two-port
panel; mutating the writable set reddens four arms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Oct 19, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 31, 2026
ANI-G (ME 263) attribute openwrt#10 (downstream RX optical signal level) and openwrt#14
(transmit optical level) were fixed snapshot constants. Read them live
instead from the RTL8290B's calibrated SFF-8472 DDM words (RX 0x168/0x169,
TX 0x166/0x167 on the BOSA I2C bus, unit 0.1 uW/LSB) and convert to the
G.988 encoding (2's-complement s16, 0.002 dB referred to 1 mW) with a
fixed-point log2 (no kernel FPU).

The DDM read busy-waits on the I2C bus, so it must not run in the PLOAM
fsm_poll softirq; a periodic workqueue (~3 s) samples it into a cache and
the (softirq) OMCI GET returns the cache. The snapshot stays as the
fallback until the first good read. Also expose the cached levels in
/proc/gpon for diagnostics.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 31, 2026
Mandatory control (operator 2026-09-29): PON RX/TX within 2 dB of the unit's
own stock, read at the OLT. The G24W on our image reported RX -30.00 dBm
there (stock -8.85) while its module's own A2h monitor read -8.87: the
ANI-G cache (ME 263 openwrt#10/openwrt#14, what the OLT reads) sampled RTL8290B registers
0x166/0x168, and on a GN25L95 those are bytes of its identity EEPROM.

A module that is not an RTL8290B now reports through the common SFF-8472
A2h decode the Cortina shell already uses (gpon_ddm_a2h_decode ->
uw10_to_cdbm -> cdbm_to_anig); an unusable sample keeps the previous cache.
The RTL8290B path is unchanged. Host test luna_bosa_activate (dev): the
shipping body, extracted, FAILED on the old reader (gn_anig_levels_from_a2h,
gn_unusable_a2h_keeps_previous) and passes now, 1381/1381. G24W and X111W
built and verified (--no-stage).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 31, 2026
…shows it

The lab OLT's ont-capability of the bench X111W read ETH 2, POTS 1, IP
configuration support[3], priority queues DS 24 / US 96 on stock and 1, 0, not
support, 8, 0 on ours. Production OLTs see the same MIB, and the operator's
rule is that only the software version may differ. After this change
olt_view.py reads MATCHES (47 fields), and the datapath group passes on the
bench X111W (NAT v4/v6, 941/956 Mbps transit, WiFi, PPPoE, tagged WAN).

Core (gpon_omci_me.c/.h, gpon_omci_core.c):
- struct omci_slot: one equipment slot per declared circuit pack (ME 5 + ME 6:
  type, ports, priority queues, T-CONT buffers, schedulers). ME 6 gains
  openwrt#6..openwrt#8, openwrt#10, openwrt#11, openwrt#13, openwrt#14. Undeclared boards keep the single 0x0101 slot.
- ME 277 rows follow the slots: downstream blocks of 8 per Ethernet UNI then
  the VEIP, upstream 8 per T-CONT (0x8000 + 8t + p), related port counting
  down -- stock's own numbering, all 120 X111W queues checked.
- ME 134 IP host config data per declared instance; openwrt#2 is the WAN netdev MAC
  the NIC pushes (luna_omci_set_wan_mac), not answered until it does.
- ME 53 PPTP POTS UNI per declared instance (stock reports 0x0201 unwired).
- A Get of ME 5/6/53/134/277 validates the instance (UNKNOWN_INST).
- Luna OMCI_MIB_ROWS_MAX 200 -> 256 (the X111W MIB is 205 rows).

Luna shell: /omci-uni circuit-packs, ip-host-instances/ip-host-wan-mac and
pots-uni-instances are parsed; rtl9602c_eth.c and luna_eth.c push the WAN MAC
wherever they set it.

X111W DTS: the omci-uni node sat inside &spi_nor (/flash@14000000/omci-uni)
while luna_gpon looks it up at /omci-uni, so the board's UNI panel was never
applied. It is now a root child and declares stock's six circuit packs, three
IP hosts and one POTS UNI. dts_vs_measured's DRIVER_NODE_PATHS check catches
the misplacement at build time.

Host proof: omci_slot_test 30/0 (mutation-proven), omci_me_table 15/15,
omci_admin_state 129/0, omci_wire_offsets 159/159, luna_omci_pipeline 12578/0;
widths agree with stock's mib_*.so for every added attribute. All four boards
build.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86 added a commit to alphaonex86/openwrt that referenced this pull request Oct 31, 2026
…s Set no longer stops provisioning

ISP AXS's ZTE OLT (DC3, 2026-10-17), right after its MIB upload, writes ME 11
on every Ethernet UNI with mask 0x8140: #1 expected type 0 (autosense), openwrt#8 max
frame size 1632, openwrt#10 pause time 0. We modelled #1 read-only and openwrt#8/openwrt#10 as
constants settable only to the value served (1518, 0xffff), so the whole
atomic Set failed rc=9; the OLT answered with a MIB reset, retried once, then
kept the unit at O5 with no OMCI and deactivated it every ~50 s. Stock's own
writable set (0xb9fe) has all three.

Now, per instance: #1 accepts 0 or the type the port senses; openwrt#8 accepts
1518..2000 (what the NIC's 2048-octet RX buffer carries whole); openwrt#10 accepts
any value. Each is stored and served back by Get; a MIB reset restores
expected = sensed, 1518 and 0xffff, so the upload any OLT sees before writing
is unchanged. The switch is not reprogrammed for openwrt#8/openwrt#10: a non-default value
is COUNTED in attr_owed, as the held-but-unapplied table writes are.

dev's omci_masked_store_test replays the ZTE Set byte for byte on a two-port
panel; mutating the writable set reddens four arms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Nov 7, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
kubrickfr pushed a commit to kubrickfr/openwrt-be9300 that referenced this pull request Nov 7, 2026
Bring the RTL837x DSA driver up to the state tested on the GL.iNet
GL-BE9300:

 - propagate and report errors from MDIO, GPIO, regmap, the RTK/DAL
   API and the DSA callbacks as Linux errnos, and unwind cleanly on
   probe, setup and teardown failures
 - keep the VLAN shadow state, VLAN filtering and PVID transitions,
   STP state and SerDes mode consistent on errors
 - harden the debugfs handlers and the CPU-port status worker, reject
   multiple switch instances and hold a netdev reference on the conduit
 - offload the bridge learning, flooding, hairpin and isolation flags,
   add FDB dump, per-VLAN fast ageing and link-down FDB age-out, and
   isolate FDB entries by tag_8021q database
 - expose ethtool MAC/RMON statistics, hardware port counters through
   get_stats64, the ASIC identity through devlink info and DSA EEE
 - add bridge flag regression tests and document the MTU/jumbo frame
   research

This squashes the following commits of the flint3-be9300 branch:

 - 5c78c28 rtl837x: fix DSA tagger documentation (openwrt#10)
 - cfe2ede rtl837x: check switch setup errors (openwrt#12)
 - fd744e2 rtl837x: propagate MDIO read errors (openwrt#14)
 - d3866f0 rtl837x: propagate GPIO read errors (openwrt#15)
 - c4e9956 rtl837x: preserve regmap init errors (openwrt#16)
 - 5dec047 rtl837x: report FDB flush errors (openwrt#25)
 - 7195404 rtl837x: report STP state errors (openwrt#26)
 - db484f0 rtl837x: clear global private state on teardown (openwrt#28)
 - 44a2654 rtl837x: report CPU tag teardown errors (openwrt#30)
 - caefe48 rtl837x: handle debugfs SerDes dump errors (openwrt#31)
 - 86deeba rtl837x: reject malformed extra-init properties (openwrt#32)
 - 7eed649 rtl837x: report device ID read failures (openwrt#33)
 - 0d5dc10 rtl837x: roll back SFP SerDes mode on errors (openwrt#39)
 - 9923462 rtl837x: harden CPU-port status worker (openwrt#41)
 - e23575f rtl837x: keep VLAN shadow state consistent on errors (openwrt#42)
 - e12f0b4 rtl837x: propagate auxiliary probe failures (openwrt#44)
 - d7d421c rtl837x: harden debugfs write handlers (openwrt#45)
 - a996b4b rtl837x: add DSA EEE control (openwrt#48)
 - 75a835f rtl837x: fix shared meter IFG readback (openwrt#50)
 - 1ac83b3 rtl837x: handle invalid SerDes mode properties (openwrt#40)
 - a2dc599 rtl837x: propagate debugfs register access errors (openwrt#55)
 - 6994611 rtl837x: handle SerDes swap configuration errors (openwrt#29)
 - 161f810 rtl837x: handle reset GPIO lifecycle correctly (openwrt#43)
 - 56a8f0a rtl837x: return Linux errno from MDIO regmap callbacks (openwrt#56)
 - f884e5e rtl837x: clean probe state on initialization failure (openwrt#52)
 - 09c7aef rtl837x: avoid overriding bridge STP on port enable (openwrt#53)
 - 9ac07a3 rtl837x: keep VLAN filtering and PVID transitions consistent (openwrt#54)
 - 5606175 rtl837x: use SGMII SerDes mode for SGMII SFP modules (openwrt#57)
 - 79d086e rtl837x: isolate FDB entries by tag_8021q database (openwrt#58)
 - 9feee33 rtl837x: reject multiple switch instances
 - 0852fcb rtl837x: keep global state through shutdown
 - 7019995 rtl837x: expose ASIC identity through devlink info
 - ae580c1 rtl837x: preserve RTK error semantics in DSA callbacks
 - aa882fd rtl837x: preserve RTL8373 DAL operation error codes
 - a3f2890 rtl837x: bound RTL8373 VLAN table write polling
 - b6a0e39 rtl837x: offload bridge port learning flag (openwrt#63)
 - 9b57021 rtl837x: expose standard ethtool MAC and RMON statistics (openwrt#67)
 - 9d81760 rtl837x: offload bridge hairpin mode (openwrt#64)
 - 7c9ce34 rtl837x: expose hardware port counters through get_stats64 (openwrt#66)
 - 0e2be0c rtl837x: offload bridge port isolation (openwrt#65)
 - 15c0c81 rtl837x: wire RTL8373 unicast FDB flush mapper (openwrt#71)
 - a5956c3 rtl837x: fix RTL8373 PHY poll termination
 - 8e1e7ca rtl837x: fix RTL8373 PHY poll termination
 - 3cdf8fa rtl837x: add VLAN-specific FDB fast ageing (openwrt#72)
 - b7c60ea rtl837x: align and enable link-down FDB age-out (openwrt#69)
 - a655214 rtl837x: add bridge flag regression test coverage (openwrt#70)
 - 047db99 rtl837x: offload bridge flood flags
 - 3662de9 rtl837x: document MTU and jumbo-frame research
 - f3f0e82 rtl837x: clarify MTU research limits
 - c08abd9 rtl837x: fix tabs/spaces mismatch from PR openwrt#75
 - c0af589 kernel: rtl837x: add FDB dump support
 - f665cd5 rtl837x: tighten FDB dump iterator handling
 - 2de1c6f rtl837x: filter FDB dump entries
 - 1f7e4b8 rtl837x: drop leftover multicast-LUT debug print in dal_rtl8373_lut.c
 - 909dd6b39f rtl837x: hold a netdev reference on the DSA conduit

Co-developed-by: Akshay Kakatkar <[email protected]>
Co-developed-by: perceival <[email protected]>
Co-developed-by: François Guerraz <[email protected]>
Signed-off-by: Maksims Neroba <[email protected]>
Signed-off-by: Maksim Neroba <[email protected]>
Signed-off-by: Akshay Kakatkar <[email protected]>
Signed-off-by: Kamil Bienkiewicz <[email protected]>
Signed-off-by: François Guerraz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.