aboutsummaryrefslogtreecommitdiff
path: root/target/linux/generic
Commit message (Collapse)AuthorAge
* kernel: 6.1: add missing Kconfig symbolsÁlvaro Fernández Rojas2023-06-09
| | | | | | Add missing symbol found during refreshing bcm27xx Kconfigs. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* generic: 6.1: move Qualcomm SoC ID bindings to genericRobert Marko2023-06-08
| | | | | | | | | | | Move the Qualcomm SoC ID bindings that are used by the CPUFreq NVMEM driver that was recently backported to generic from ipq807x as that series depends on SoC ID bindings but they were forgotten. Due to that IPQ806x builds would fail as the backport was still in ipq807x. Fixes: d44279 ("generic: 6.1: backport Qualcomm CPUFreq NVMEM changes") Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 5.15: backport PPC VDSO executable stack fixRobert Marko2023-06-08
| | | | | | | | | | | | Recent binutils will warn if there is no .note.GNU-stack section and will interpret that as that stack is executable. So, lets modify the upstream 6.1 fix as in 5.15 VDSO32 and VDSO64 are still separate but later they were merged to resolve: /external-toolchain/openwrt-toolchain-mpc85xx-p1020_gcc-12.3.0_musl.Linux-x86_64/toolchain-powerpc_8548_gcc-12.3.0_musl/bin/../lib/gcc/powerpc-openwrt-linux-musl/12.3.0/../../../../powerpc-openwrt-linux-musl/bin/ld: warning: arch/powerpc/kernel/vdso32/getcpu.o: missing .note.GNU-stack section implies executable stack /external-toolchain/openwrt-toolchain-mpc85xx-p1020_gcc-12.3.0_musl.Linux-x86_64/toolchain-powerpc_8548_gcc-12.3.0_musl/bin/../lib/gcc/powerpc-openwrt-linux-musl/12.3.0/../../../../powerpc-openwrt-linux-musl/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: drop useless binfmt patch fixing compilation warningChristian Marangi2023-06-08
| | | | | | | | | | | | | | | | | The compilation warning was triggered by wrongly set FRAME_WARN to 1024 even for 64bit. This was recently fix by correctly setting the FRAME_WARN to 2048 for 64bit systems. The compilation warning would still be triggered on 32bit system but the actual code is never reached as ARCH_USE_GNU_PROPERTY is only set on arm64 arch. Drop the patch as kmalloc cause perf regression as suggested by upstream maintainers. Fixes: fa79baf4a6e2 ("generic: copy backport, hack, pending patch and config from 5.15 to 6.1") Fixes: 5913ea1ba2fa ("generic: 5.15: add pending patch fixing binfmt compilation warning") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: use struct group to wipe psb6970 volatile priv dataAleksander Jan Bajkowski2023-06-08
| | | | | | | | | | | | | | | | | | Instead of reference vlan and do strange subtraction, use the handy struct_group() to create a virtual struct of the same size of the members. This permits to have a more secure memset and fix compilation warning in 6.1 where additional checks are done. Fix compilation warning: | inlined from 'psb6970_reset_switch' at drivers/net/phy/psb6970.c:275:2: | ./include/linux/fortify-string.h:314:25: error: call to '__write_overflow_field' | declared with attribute warning: detected write beyond size of field | (1st parameter); maybe use struct_group()? [-Werror=attribute-warning] | 314 | __write_overflow_field(p_size_field, size); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |cc1: all warnings being treated as errors Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
* generic: 6.1: backport Qualcomm CPUFreq NVMEM changesRobert Marko2023-06-07
| | | | | | | | | | | | | | | | Currently, IPQ807x is using CPUFreq NVMEM for dealing with different SoC SKU-s having different frequency limits, and we are keeping the patches for it in ipq807x target. However, we managed to upstream a big cleanup of the driver in order to make it possible for other SMEM based targets to be added to CPUFreq NVMEM. IPQ806x will be using CPUFreq NVMEM and depends on these changes as well, so lets put them in generic backport to avoid code duplication. This replaces the older patches in ipq807x. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: bump 6.1 to 6.1.32Robert Marko2023-06-06
| | | | | | | | | | | | | | | Removed upstreamed: generic-backport/610-v6.3-net-page_pool-use-in_softirq-instead.patch[1] All other patches automatically rebased. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/net?h=v6.1.32&id=7dccd5fa7edb9562da61af820bb9d0346447baf1 Build system: x86_64/Fedora 38 Build-tested: ipq807x/Dynalink DL-WRX36 Runtime-tested: ipq807x/Dynalink DL-WRX36 Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: backport initial LEDs hw control supportChristian Marangi2023-06-06
| | | | | | | | | | | | Backport initial LEDs hw control support. Currently this is limited to only rx/tx and link events for the netdev trigger but the API got accepted and the additional modes are working on and will be backported later. Refresh every patch and add the additional config flag for QCA8K new LEDs support. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: use only first element in bootconf for uImage.FITDaniel Golle2023-06-05
| | | | | | | | | Now that it is possible to load several device tree overlays by appending their config names to bootconf the uImage.FIT partition parser need to discard everything after the first '#' character in bootconf when looking up the config node to be used. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: Backport mvneta crash fix to 5.15Marek Behún2023-06-03
| | | | | | | | | | | | | | | Backport Russell King's series [1] net: mvneta: reduce size of TSO header allocation to pending-5.15 to fix random crashes on Turris Omnia. This also backports two patches that are dependencies to this series: net: mvneta: Delete unused variable net: mvneta: fix potential double-frees in mvneta_txq_sw_deinit() [1] https://lore.kernel.org/netdev/ZCsbJ4nG+So%2Fn9qY@shell.armlinux.org.uk/ Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (squashed)
* kernel: bump 6.1 to 6.1.31Robert Marko2023-06-02
| | | | | | | | | | All patches automatically rebased. Build system: x86_64/Fedora 38 Build-tested: ipq807x/Qnap 301W, ipq807x/Dynalink DL-WRX36 Run-tested: ipq807x/Qnap 301W, ipq807x/Dynalink DL-WRX36 Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: b53: rename exported symbols to avoid upstream conflictRobert Marko2023-06-02
| | | | | | | | | | | Upstream DSA driver is exporting symbols with the same name as our downstream swconfig driver, so lets rename the downstream symbols to make them unique and avoid the conflict on 6.1 kernel. Without this change, building 6.1 with kmod-switch-bcm53xx would conflict with the B53 DSA driver and CI would fail. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: backport libcap workaround for BPF selftestsTony Ambardar2023-06-02
| | | | | | | Recent libcap versions (>= 2.60) cause problems with BPF kselftests, so backport an upstream patch that replaces libcap and drops the dependency. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* kernel: Set CONFIG_FRAME_WARN depending on targetHauke Mehrtens2023-06-02
| | | | | | | | This set the CONFIG_FRAME_WARN option depending on some target settings. It will use the default from the upstream kernel and not the hard coded value of 1024 now. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: 6.1: add missing CONFIG_TEST_DYNAMIC_DEBUG optionTony Ambardar2023-05-31
| | | | | | | | This new option (default N) will generate prompts building with OpenWrt configs that set CONFIG_KERNEL_DYNAMIC_DEBUG=y. Fix this by adding the disabled option to the generic config. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* kernel: disable new v6.1 DRM optionLinus Walleij2023-05-31
| | | | | | | | | Not many platforms use the DRM configs but Gemini use it so make sure to disable all new kernel v6.1 features that we do not want to get prompted about. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Petr Štetiar <ynezz@true.cz> [rebased]
* kernel: 6.1: add missing Kconfig symbolsÁlvaro Fernández Rojas2023-05-30
| | | | | | Add missing symbol found during refreshing bmips Kconfigs. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* generic: import patch fixing workqueue compilation with gcc-13Nick Hainke2023-05-30
| | | | | | | | | | | | | | | | | | | | | | | | Already applied in wq/for-6.5 [0]. Fixes errors in the form of: kernel/workqueue.c: In function 'get_work_pwq': kernel/workqueue.c:705:24: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 705 | return (void *)(data & WORK_STRUCT_WQ_DATA_MASK); | ^ kernel/workqueue.c: In function 'get_work_pool': kernel/workqueue.c:733:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 733 | return ((struct pool_workqueue *) | ^ kernel/workqueue.c: In function 'get_work_pool_id': kernel/workqueue.c:755:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 755 | return ((struct pool_workqueue *) | ^ cc1: all warnings being treated as errors [0] - https://lore.kernel.org/all/ZGmEmkcrfh7QdkIz@slm.duckdns.org/ Fixes: #12687 ("mt7621: kernel 5.15 compile failure with GCC 13") Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: include MT7988 Ethernet support in Linux 6.1Daniel Golle2023-05-30
| | | | | | | Import pending patches adding Ethernet support for MT7988 which are already present in pending-5.15 also to pending-6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: backport MT7988 DSA support for Linux 6.1Daniel Golle2023-05-30
| | | | | | | Patches adding DSA support for MT7988 have been backported to Linux 5.15 but not to Linux 6.1. Import backports also to Linux 6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: refresh patches for Linux 6.1Daniel Golle2023-05-30
| | | | | | | | Some backported patches generated with git-format-patch were not refreshed. Use 'make target/linux/refresh' to align them with OpenWrt's patch style. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* apm821xx: make ata-dwc as a standalone moduleChristian Lamparter2023-05-30
| | | | | | | | In order to cut down on the Netgear WNDR4700, the ata driver can be outsourced. This helps other apm821xx devices too to save up on kernel size (~200 kb). Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: 6.1: fix swconfig not workingChristian Lamparter2023-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 6.1 swconfig is not showing up and there's a splat: | ------------[ cut here ]------------ | WARNING: CPU: 0 PID: 1 at genl_register_family+0xb4/0x81c | Modules linked in: | CPU: 0 PID: 1 Comm: swapper Not tainted 6.1.29 #0 | Hardware name: Netgear WNDR4700/WNDR4720 Series APM821XX [...] | NIP: c0599370 LR: c0599344 CTR: c08c9950 | REGS: c0c21cb0 TRAP: 0700 Not tainted (6.1.29) | MSR: 00029000 <CE,EE,ME> CR: 48000888 XER: 00000000 | | GPR00: c0002678 c0c21da0 c0c2cd80 [...] | NIP [c0599370] genl_register_family+0xb4/0x81c | LR [c0599344] genl_register_family+0x88/0x81c | Call Trace: | [c0c21d80] [c0c21df4] 0xc0c21df4 (unreliable) | [c0c21e10] [c08c9988] swconfig_init+0x38/0x64 | [c0c21e30] [c0002678] do_one_initcall+0x50/0x260 This is due to it failing to register the netlink family since changes to upstream linux in patch. | commit 9c5d03d362519f36cd551aec596388f895c93d2d |Author: Jakub Kicinski <kuba@kernel.org> |Date: Wed Aug 24 17:18:30 2022 -0700 | | genetlink: start to validate reserved header byte this is fixed by adding the proper value to the introduced "resv_start_op" parameter. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: 6.1: add missing Kconfig symbolsTianling Shen2023-05-29
| | | | | | Add missing symbol found during refreshing rockchip Kconfigs. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* kernel: 6.1: add missing config symbolsTony Ambardar2023-05-28
| | | | | | Add generic config symbols found updating the malta and armvirt targets. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* mediatek: sync MT7988 USXGMII with SDK driverDaniel Golle2023-05-27
| | | | | | | | | The USXGMII driver in SDK was heavily refactored, some bugs have been fixed and it has switched to use phylink_pcs. Follow up with changes in SDK driver and sync our on-top-of-mainline driver with the SDK driver. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: add kernel tag to backport patchNick Hainke2023-05-26
| | | | | | | | In the previous commit, the kernel tag was not added when adding the backport. Fixes: 537624db39a9 ("generic: backport missing helper for phy interfaces") Signed-off-by: Nick Hainke <vincent@systemli.org>
* generic: backport missing helper for phy interfacesNick Hainke2023-05-26
| | | | | | | | | | | | | | | | | | | The function was defined before in the patch "hack-5.15/795-backport-phylink_pcs-helpers.patch". However, the hack did not move to 6.1. Instead of using the hack do the backport of upstream accepted version. Fixes errors in the form of: make[8]: Entering directory '/home/nick/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-6.1.29' CC drivers/net/pcs/pcs-mtk-lynxi.o drivers/net/pcs/pcs-mtk-lynxi.c: In function 'mtk_pcs_lynxi_config': drivers/net/pcs/pcs-mtk-lynxi.c:160:30: error: implicit declaration of function 'phylink_get_link_timer_ns' [-Werror=implicit-function-declaration] 160 | link_timer = phylink_get_link_timer_ns(interface); | ^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Fixes: fa79baf4a6e2 ("generic: copy backport, hack, pending patch and config from 5.15 to 6.1") Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: disable wireless extension support for 6.1Felix Fietkau2023-05-26
| | | | | | It is unused Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: bump 5.15 to 5.15.113John Audia2023-05-26
| | | | | | | | | | All patches automatically rebased. Build system: x86_64 Build-tested: bcm2711/RPi4B, ramips/tplink_archer-a6-v3, filogic/xiaomi_redmi-router-ax6000-ubootmod Run-tested: bcm2711/RPi4B, ramips/tplink_archer-a6-v3, filogic/xiaomi_redmi-router-ax6000-ubootmod Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: Backport MGLRU patch from 6.4Kazuki Hashimoto2023-05-25
| | | | | | | This fixes a bug where the reclaim path could occasionally have long tail latency. Signed-off-by: Kazuki Hashimoto <kazukih0205@gmail.com>
* kernel: 6.1: Synchronize MGLRU patches with upstreamKazuki Hashimoto2023-05-25
| | | | | | | | | Replace the refreshed 5.15 backports with backports for 6.1. This fixes FMODE_CAN_ODIRECT having the same value as FMODE_NOREUSE. Signed-off-by: Kazuki Hashimoto <kazukih0205@gmail.com>
* generic: filter out CONFIG_PAHOLE_HAS_SPLIT_BTFRobert Marko2023-05-24
| | | | | | | CONFIG_PAHOLE_HAS_SPLIT_BTF should be runtime detected as it depends on pahole being available on the host, so filter it out of configs. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: disable CONFIG_VMWARE_VMCI by defaultRobert Marko2023-05-24
| | | | | | | There is no reason for VMware VMCI to be disabled in targets, so disable it in the generic config. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: disable CONFIG_OCTEON_EP by defaultRobert Marko2023-05-24
| | | | | | | There is no reason for Octeon PCI endpoint driver to be disabled in targets so disable it in generic config. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: disable CONFIG_HP_WATCHDOG by defaultRobert Marko2023-05-24
| | | | | | | There is no reason for HP ProLiant HW watchdog to be disabled in individual targets, so disable it in generic config. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: disable CONFIG_ARCH_NXP by defaultRobert Marko2023-05-24
| | | | | | | There is no reason for CONFIG_ARCH_NXP to have to be disabled in individual targets, so just disable CONFIG_ARCH_NXP in generic config. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: disable CONFIG_SURFACE_PLATFORMS by defaultRobert Marko2023-05-24
| | | | | | | | There is no need for Surface platform drivers to be enabled by default, especially on OpenWrt so disable CONFIG_SURFACE_PLATFORMS in the generic config. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: mt7530: backport support for the MT7988 built-in switchDaniel Golle2023-05-23
| | | | | | | | | | | | | | | | Backport commits adding support for the MT7988 built-in switch to the mt7530 driver. This change results in the Kconfig symbol NET_DSA_MT7530 to be extended by NET_DSA_MT7530_MDIO (everything formally covered by NET_DSA_MT7530) and NET_DSA_MT7530_MMIO (a new driver for the MMIO-connected built-in switch of the MT7988 SoC). Select NET_DSA_MT7530_MDIO for all targets previously selecting NET_DSA_MT7530, with the exception of mediatek/filogic which also selects NET_DSA_MT7530_MMIO. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: add support for MediaTek NETSYS v3Daniel Golle2023-05-23
| | | | | | | In order to support Ethernet on the MT7988 SoC add support for NETSYS v3 as well as new paths and USXGMII SerDes to the mtk_eth_soc driver. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: enable (ARM|ARM64)_MODULE_PLTS in generic configTony Ambardar2023-05-23
| | | | | | | | | | | | | | | | | | | This allows loading modules with large memory requirements, recently needed while testing on armvirt/32. Past forum discussions [1] and bug reports [2] also raised this and the ipq806x target already set it in response [3]. Given this increases kernel image size by only ~1KB, is generally useful on multi-platform kernels, and enabled by default on upstream arm32 Linux, add it to the generic config. The setting has similar utility on arm64, is a requirement for KASLR, and already enabled on most OpenWrt aarch64 targets, so pull this into the top-level generic config. [1]: https://forum.openwrt.org/t/vmap-allocation-for-size-442368-failed-use-vmalloc-size-to-increase-size/34545/7 [2]: https://github.com/openwrt/openwrt/issues/8282 [3]: f81e148eb6 ("ipq806x: update 4.19 kernel config"). Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* kernel: add disabled symbol CONFIG_CPU_LITTLE_ENDIAN on 6.1Aleksander Jan Bajkowski2023-05-23
| | | | | | | The identical change was previously added to the 5.15 kernel in the commit 9226f1e41948 ("kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config"). Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
* kernel: sort generic configurationAleksander Jan Bajkowski2023-05-23
| | | | | | | | | | | | This was done by executing these commands: $ ./scripts/kconfig.pl '+' target/linux/generic/config-5.15 /dev/null > target/linux/generic/config-5.15-new $ mv target/linux/generic/config-5.15-new target/linux/generic/config-5.15 $ ./scripts/kconfig.pl '+' target/linux/generic/config-6.1 /dev/null > target/linux/generic/config-6.1-new $ mv target/linux/generic/config-6.1-new target/linux/generic/config-6.1 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
* kernel: modules: wwan: adapt for kernel 6.1Robert Marko2023-05-22
| | | | | | | | | Update the WWAN kmods for compilation under kernel 6.1: * Depend on kernel not being 5.10 rather than only 5.15 * Enable CONFIG_WWAN_DEBUGFS as its now optional from 5.17 * Add missing symbols for new WWAN drivers to generic config Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: kernel: add missing symbolPawel Dembicki2023-05-22
| | | | | | | | Add missing symbol while adding layerscape support Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> [ add commit description ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: add missing symbolsRobert Marko2023-05-22
| | | | | | These symbols got exposed once building for ipq807x. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: refresh config and add missing symbolsChristian Marangi2023-05-22
| | | | | | | | | Refresh generic config for 6.1 and add missing symbols. Then sorted using: $ ./scripts/kconfig.pl '+' target/linux/generic/config-6.1 /dev/null > target/linux/generic/config-6.1-new $ mv target/linux/generic/config-6.1-new target/linux/generic/config-6.1 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: use eth_random_addr instead of random_ether_addrChristian Marangi2023-05-22
| | | | | | | | | | random_ether_addr is just a reference to eth_random_addr, that was later dropped in more recent kernel version. Drop random_ether_addr and use eth_random_addr directly to fix compilation error in 6.1 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernek: use struct_group to wipe ar8216 volatile priv dataChristian Marangi2023-05-22
| | | | | | | | | Instead of reference vlan and do strange subtraction, use the handy struct_group() to create a virtual struct of the same size of the members. This permits to have a more secure memset and fix compilation warning in 6.1 where additional checks are done. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: refresh swconfig_leds to handle new trigger lockingChristian Marangi2023-05-22
| | | | | | | Refresh swconfig_leds source to handle new trigger locking that is now a spinlock. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>