Commit Graph

34154 Commits

Author SHA1 Message Date
Robert Marko
569d9ee9c8 qualcommax: refresh config
Refresh the qualcommax generic config.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-30 18:50:16 +02:00
Robert Marko
0cf636c8c6 generic: filter out CONFIG_TOOLS_SUPPORT_RELR
CONFIG_TOOLS_SUPPORT_RELR is set during runtime by the kernel so it should
not end up in our static configs.

So, filter it out by default.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-30 18:42:13 +02:00
Robert Marko
db75f17058 generic: add missing MXL862 DSA symbols
If DSA support is enabled, then these will pop up.
So instead of ending up in target configs, add them to the generic configs.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-30 18:42:07 +02:00
Markus Stockhausen
3f76802660 realtek: mdio-serdes: reorganize RTL839x TGRX0/1 pages
The four TGRX pages are currently mapped into the page range 4-7 for even
10G serdes. This is only partly right. TGRX0/1 better aligns with RTL93xx
pages TGX_STD_0/TGX_STD_1. Change the mapping. No code update needed as
the pages are not yet used anywhere.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 15:35:13 +02:00
Markus Stockhausen
e6b297a970 realtek: mdio-serdes: reorganize RTL839x ANA_RG pages
The ANA_RG pages of the RTL839x SerDes are a wild mix of WDIG, ANA_MISC
and ANA_1G2 data. Its current mapping to the TGX_STD_0 register does
not match at all. From the coding it makes most sense to remap it to the
ANA_1G2/ANA_1G2_EXT range. Adapt all consumers in the pcs driver
accordingly.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 15:35:13 +02:00
Markus Stockhausen
2ee0beea6e realtek: mdio-serdes: reorgnaize RTL839x ANA_10G pages
With all the recent development about RTL93xx serdes it has become
clear that the RTL839x ANA_TG page mapping is not perfect. Until
know it is mapped to pages 10/11. As its naming suggests these are
serdes analogous register settings for 10G. Map it to the appropriate
ANA_10G pages to align better with RTL93xx. Adapt all consumers
in the pcs driver accordingly.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 15:35:13 +02:00
Markus Stockhausen
ae2ce7faa3 realtek: mdio-serdes: rename debug serdes pages
The initial page naming of the debugfs page registers in the mdio
serdes driver was a mix of RTL839x and RTL93xx. Developing the
Realtek pcs driver, it was discovered that the RTL93xx IP block
shares a lot of the registers with the RTL8295 PHY.

The RTL839x serdes development is quite okay and currently on hold.
Thus drop the RTL839x derived page names and substitute them for
their RTL93xx counterpart.

This is only a cosmetic change for better readability.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 15:35:13 +02:00
Markus Stockhausen
c1804cbc71 realtek: dts: cleanup of ethernet link speed
Realtek switches have a very simple network adapter for the SOC.
They can ship packets via DMA without further offloading features.
Even on the RTL931x devices they can barely reach 50MB/s. In the
dts there is a mix of 1G/10G definitions. To be consistent and
better reflect the performance set the link speed to 1000.
This is only cosmetic.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22639
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 15:00:31 +02:00
John Audia
ac1d494d58 kernel: bump 6.12 to 6.12.79
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.79

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22607
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 13:43:51 +02:00
John Audia
bb3da35c90 kernel: bump 6.12 to 6.12.78
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.78

Removed upstreamed:
  generic/pending-6.12/620-net-sfp-improve-Huawei-MA5671a-fixup.patch[1]
  generic/pending-6.12/704-net-phy-register-phy-led_triggers-during-probe-to-av.patch[2]
  airoha/patches-6.12/014-01-v6.13-net-airoha-fix-PSE-memory-configuration-in-airoha_fe.patch[3]
  airoha/patches-6.12/014-02-v6.13-net-airoha-read-default-PSE-reserved-pages-value-bef.patch[4]
  airoha/patches-6.12/031-01-v6.13-net-airoha-Read-completion-queue-data-in-airoha_qdma.patch[5]
  airoha/patches-6.12/128-v7.1-net-airoha-Remove-airoha_dev_stop-in-airoha_remove.patch[6]

Manually rebased:
  airoha/patches-6.12/048-01-v6.15-net-airoha-Move-airoha_eth-driver-in-a-dedicated-fol.patch

All patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=bbdf6d378e1ddbeadc04c57b182aadefcc3aa917
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=241cd64cf2e32b28ead151b1795cd8fef2b6e482
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=a04ac7bc97afe313e10ae4c73797c668dee47c5c
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=a9ed47c3663219e20406d566f02809de05373a42
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=4cba4373abac7ba27fdb33057a29b92efa8fd15d
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=652ec118d8dc1b088e685d5562995b6665463771

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22607
[Fix 048-01-v6.15-net-airoha-Move-airoha_eth-driver-in-a-dedicated-fol]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-30 13:42:44 +02:00
Christian Marangi
0bf1870245
airoha: an7581: drop airoha,x2-mode related property and enable in device
Drop airoha,x2-mode related property from the DTSI and enable them only in
the relevant devices that use a PCIe0 line. x2-mode should be enabled only
for the WiFi card that would use it as it might cause problem for WiFi card
that expect 2 single PCIe x1 line instead of a single PCIe x2 line.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-03-30 12:17:50 +02:00
Zoltan HERPAI
aa06d26879 mxs: enable 6.18 testing kernel
The mxs target now supports 6.18 kernel as testing.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-03-29 18:52:41 +02:00
Zoltan HERPAI
342b394bff generic/6.18: add missing config symbols
These were discovered when migrating mxs to 6.18.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2026-03-29 18:52:41 +02:00
Zoltan HERPAI
3687a09d0d kernel/mxs: 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: Zoltan HERPAI <wigyori@uid0.hu>
2026-03-29 18:52:41 +02:00
Zoltan HERPAI
d5e79d602c kernel/mxs: 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: Zoltan HERPAI <wigyori@uid0.hu>
2026-03-29 18:52:41 +02:00
Rany Hany
a2fa1db797 ramips: mt7621: disable CONFIG_LIST_HARDENED
It appears that CONFIG_LIST_HARDENED causes the system to
hang when restarted. I was unable to determine the cause
of the crash so disabling CONFIG_LIST_HARDENED seems like
an acceptable workaround for the time being.

The issue only occurs on reboot.

Fixes: https://github.com/openwrt/openwrt/issues/20099
Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/22672
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:50:57 +02:00
Daniel Golle
efb282f97f kernel: 6.18: backport mxl862xx driver for Linxu 6.18
The signature of phylink_pcs get_state has changed, and we need to set
.supported_interfaces.

Both has been removed when backporting the driver to Linux 6.12, readd
to make it build and work with Linux 6.18.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://github.com/openwrt/openwrt/pull/22668
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:27:07 +02:00
Jonas Jelonek
52d9c6c9cb realtek: add patch to extend upstream sfp smbus support
Add patches that extends the upstream smbus support in sfp driver. This
only supports SMBus byte operations and in that case, disables hwmon and
prints warnings because of that. Using the word/block capability of our
I2C controller is totally fine for all that functionality.

The patches are currently pending upstream.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
19478cf334 realtek: dsa: 6.18: adjust mac ops and callbacks
Between 6.12 and 6.18, several DSA switch ops have changed.
phylink_mac_* ops were moved out of dsa_switch_ops into dsa_switch using
phylink_mac_ops. Add new definitions for that and adjust the callbacks
accordingly to work with the different signatures.

get_mac_eee() has been dropped and support_eee() was added.

remove_new() has been dropped completely, allowing us to use remove()
again.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
af50e4d6c8 realtek: pcs: 6.18: fix neg_mode handling
Between 6.12 and 6.18, neg_mode moved from struct phylink_pcs to a
parameter passed to pcs_get_state. Adjust the implementation
accordingly.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
48f90025a0 realtek: phy: 6.18: drop shared priv access helper
Between v6.12 and v6.18, struct phy_package_shared was moved from
include/linux/phylib.h to drivers/net/phy/phy_package.c and thus made
internal/unavailable for other drivers.

Our PHY driver used a helper to access the shared priv. With v6.18, it
doesn't work anymore (due to missing access to internal fields of struct
phy_package_shared) but upstream has an equivalent helper for that. Drop
ours and use the upstream helper.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
370a84eff2 realtek: phy: 6.18: switch to sfp module caps
Kernel 6.18 uses dedicated sfp_module_caps instead of a plain bitmask
for supported modes. Switch to that the fix the rtl83xx-phy driver.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
1d6702b764 realtek: add missing symbols for 6.18
Add missing symbols to default config by running make kernel_oldconfig
and using default options for all unanswered symbols.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
c22c1c717e realtek: 6.18: adapt and refresh remaining patches
Refresh and adapt the remaining patches as needed.

- 024-02-v7.1-net-phy-realtek-add-RTL8224-pair-order-support.patch
  needed addition of '#include "../phylib.h"'
- 314-irqchip-irq-realtek-rtl-add-VPE-support.patch needed manual
adoption
- 700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch needed
  manual fix
- 810-lm75-alert-polarity-swap.patch needed adoption to changed probe
  function upstream

All other patches were automatically refreshed.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
56a5e37442 realtek: 6.18: adapt SFP SMBus patches
Adapt our downstream patches for SMBus SFP functionality to kernel 6.18.
Upstream gained support for SMBus byte access on SFP and a patch to
extend that to word and block access is pending.

These downstream patches aren't acceptable for upstream and will need to
be adapted. However, keep them for now to maintain functionality.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
c3d998f147 realtek: 6.18: remove obsolete patches
Remove patches which are accepted upstream and were backported to
pre-6.18. Those are obsolete now.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
a7e63b4dac realtek: add v6.18 as testing kernel
Add kernel v6.18 as testing kernel for realtek target.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:21 +02:00
Jonas Jelonek
f1163d7771 kernel/realtek: 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: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:20 +02:00
Jonas Jelonek
9198b13f02 kernel/realtek: 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: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 18:08:20 +02:00
Robert Marko
2fcd673ed3
microchipsw: add 6.18 testing kernel
Add the 6.18 kernel config and allow selecting it as testing kernel.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-29 18:07:05 +02:00
Robert Marko
0257e6df33
microchipsw: 6.18: refresh patches
Refresh the patches for 6.18 so they apply.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-29 18:07:05 +02:00
Robert Marko
3c49e25cea
microchipsw: 6.18: drop upstreamed patches
Drop patches that were upstead into 6.18 or earlier.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-29 18:07:05 +02:00
Robert Marko
3ac8490569
kernel/microchipsw: 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: Robert Marko <robert.marko@sartura.hr>
2026-03-29 18:07:05 +02:00
Robert Marko
cf62da3eb1
kernel/microchipsw: 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: Robert Marko <robert.marko@sartura.hr>
2026-03-29 18:07:05 +02:00
Robert Marko
c400fb8305
microchipsw: lan969x: make kernel config version specific
As preparation for enabling 6.18 kernel, rename the existing config to a
version specific 6.12 config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-29 18:07:05 +02:00
Paweł Owoc
b52f608a13 qualcommax: ipq807x: DL-WRX36 use mac from art
MAC addresses are located at the beginning of the art partition.
Some units do not have MAC addresses in the u-boot variables.

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22622
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-29 12:14:34 +02:00
Ziyang Huang
92c7feebd2 qualcommax: qpic only support max 4 bytes ID
QPIC use a reg (NAND_READ_ID) to transport the ID, so the max bytes of ID is a word (4Bytes).

3a86608788/drivers/mtd/nand/raw/qcom_nandc.c (L1783)
4a26e7032d/drivers/spi/spi-qpic-snand.c (L1392-L1393)

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/21021
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-28 18:06:18 +01:00
Robert Marko
bb76ac1e4a generic: 6.18: disable CONFIG_ROCKCHIP_ERRATUM_3568002
CONFIG_ROCKCHIP_ERRATUM_3568002 should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:54:34 +01:00
Robert Marko
c445cc6c6a generic: 6.18: disable CONFIG_AMPERE_ERRATUM_AC04_CPU_23
CONFIG_AMPERE_ERRATUM_AC04_CPU_23 should be disabled in generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:54:34 +01:00
Robert Marko
d3bf8ada02 generic: 6.18: disable CONFIG_ARCH_SOPHGO
CONFIG_ARCH_SOPHGO should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:46:30 +01:00
Robert Marko
9934653738 generic: 6.18: disable CONFIG_ARCH_CIX
CONFIG_ARCH_CIX should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:46:29 +01:00
Robert Marko
397e66f181 generic: 6.18: disable CONFIG_ARCH_BLAIZE
CONFIG_ARCH_BLAIZE should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:46:29 +01:00
Robert Marko
a08d2beedd generic: 6.18: disable CONFIG_ARCH_AXIADO
CONFIG_ARCH_AXIADO should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:46:29 +01:00
Robert Marko
f4a927ab86 generic: 6.18: disable CONFIG_AMD_SBRMI_I2C
CONFIG_AMD_SBRMI_I2C should be disabled in generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 17:46:29 +01:00
John Audia
238f9b657b kernel: refresh patches for 6.18.20
Sole patch automatically rebased.

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22643
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-28 12:24:19 +01:00
Robert Marko
fa20221a8b microchipsw: tactical-1000: expand FIP partition size
Expand the FIP partition size to future proof and allow custom firmware
to be used as BL31 instead of U-Boot.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-28 12:15:08 +01:00
John Audia
5c49ee6099 kernel: refresh patches
x86 patches automatically rebased

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-28 11:51:11 +01:00
John Audia
65d36329e3 x86: make CONFIG_NR_CPUS a tunable (2-512)
Add KERNEL_NR_CPUS option in Global build settings → Kernel build
options, allowing users to set maximum CPU count (2-512) for the image.

Defaults:
- x86_64: 512 CPUs (backward compatible)
- x86: 8 CPUs (fix broken single-CPU default)

Per-CPU data structures consume ~100-200KB each.
On a 4-core system configured to NR_CPUS=4, this frees approx 76 MB
of RAM: (512 - 4) × 150 KB = ~76 MB

Note: CONFIG_NR_CPUS_RANGE_{BEGIN,END}= and CONFIG_NR_CPUS_DEFAULT= are
set by the build system and will default to 2/512/64 per arch/x86/Kconfig
These are harmless metadata and don't affect memory allocation.

Note pending https://github.com/openwrt/openwrt/pull/21407

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-28 11:51:11 +01:00
John Audia
c9075798cc x86/64: 6.18: enable recent MITIGATION options
These mitigations are low-overhead, upstream-supported hardening options
that only activate on CPUs affected by their respective vulnerabilities.
Enabling them provides consistent, defense-in-depth coverage across Intel
and AMD systems without impacting unaffected hardware.

Detailed list:
- CONFIG_MITIGATION_SRSO to guard against known a vulnerability found on
  AMD processors (Zen generations 1-4) for sure, maybe others. This is
  tracked under CVE-2023-20569.
- CONFIG_MITIGATION_ITS to guard against a bug in BPU on some Intel CPUs
  that may allow Spectre V2 style attacks. We never enabled this option
  (and its dependencies).
- CONFIG_MITIGATION_SRBDS to guard against Special Register Buffer Data
  Sampling on affected Intel CPUs (CVE-2020-0543), preventing cross-core
  leakage of RDRAND/RDSEED/EGETKEY values.
- CONFIG_MITIGATION_SLS to guard against Spectre-v4 gadgets on x86 by
  inserting speculation barriers around RET/JMP/CALL sites when required
  by CPU/microcode state.
- CONFIG_MITIGATION_CALL_DEPTH_TRACKING to guard against speculative
  call-stack underflow on x86 by enabling hardware-assisted depth
  tracking where supported, reducing exposure to RET-based misprediction
  attacks.
- CONFIG_MITIGATION_UNRET_ENTRY to guard against RET-based speculation
  attacks on x86 by replacing vulnerable function returns in kernel
  entry paths with UNRET sequences when required by CPU/microcode state.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-28 11:51:11 +01:00
John Audia
8a7417ef95 x86/64: 6.18: enable THP (disabled by default)
Users can opt-in to THP via builtin tunables under:
/sys/kernel/mm/transparent_hugepage/enabled

Useful if using running VMs on the device.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-28 11:51:11 +01:00