summaryrefslogtreecommitdiffstats
path: root/target/linux/generic
Commit message (Collapse)AuthorAgeFilesLines
* kernel: 6.1: add missing CONFIG_TEST_DYNAMIC_DEBUG optionTony Ambardar2023-05-311-0/+1
| | | | | | | | 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-311-0/+1
| | | | | | | | | 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-301-0/+7
| | | | | | 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-302-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | 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-307-0/+3408
| | | | | | | 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-3016-4/+2333
| | | | | | | 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-3019-302/+158
| | | | | | | | 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-302-0/+3
| | | | | | | | 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-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-291-1/+6
| | | | | | 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-281-1/+32
| | | | | | 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-271-593/+789
| | | | | | | | | 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-261-0/+0
| | | | | | | | 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-261-0/+48
| | | | | | | | | | | | | | | | | | | 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-261-5/+5
| | | | | | It is unused Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: bump 5.15 to 5.15.113John Audia2023-05-264-20/+20
| | | | | | | | | | 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-252-0/+546
| | | | | | | 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-2518-165/+1505
| | | | | | | | | 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-241-0/+1
| | | | | | | 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-241-0/+1
| | | | | | | 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-241-0/+1
| | | | | | | 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-241-0/+1
| | | | | | | 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-241-0/+1
| | | | | | | 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-241-0/+1
| | | | | | | | 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-2319-6/+2480
| | | | | | | | | | | | | | | | 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-237-0/+3212
| | | | | | | 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-232-4/+4
| | | | | | | | | | | | | | | | | | | 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-231-0/+1
| | | | | | | 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-232-3/+3
| | | | | | | | | | | | 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-221-0/+2
| | | | | | | | | 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-221-0/+3
| | | | | | | | 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-221-0/+1
| | | | | | 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-221-21/+211
| | | | | | | | | 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-222-2/+2
| | | | | | | | | | 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-222-18/+19
| | | | | | | | | 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-221-0/+16
| | | | | | | Refresh swconfig_leds source to handle new trigger locking that is now a spinlock. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: refresh IFF_NO_IP_ALIGN ifdef for kernel >= 6.1Christian Marangi2023-05-221-0/+8
| | | | | | | Kernel 6.1 expanded the priv_flags to long bitmap so update and restore it to priv_flags. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: refresh pending patchesChristian Marangi2023-05-2298-374/+348
| | | | | | Refresh pending patches with make target/linux/refresh. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: refresh hack patchesChristian Marangi2023-05-2244-232/+205
| | | | | | Refresh hack patches with make target/linux/refresh. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: refresh backport patchesChristian Marangi2023-05-2269-381/+380
| | | | | | Refresh backport patches with make target/linux/refresh. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: add pending OPP set opp improvement patchChristian Marangi2023-05-221-0/+117
| | | | | | | Add pending OPP set opp improvement patch to better handle _set_opp function in clock scaling. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: add patch to compile ieee8211 headersChristian Marangi2023-05-222-0/+69
| | | | | | | With kernel 6.1 ieee2111_ptr is not compiled by default. Add pending patch to restore this to make backports project compatible. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: manually refresh mglru patch with new kernel versionChristian Marangi2023-05-229-171/+162
| | | | | | | Refresh mglru patch for new kernel version due to very fun backport changing name from folio to pages. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: manually refresh hack patchesChristian Marangi2023-05-2228-489/+225
| | | | | | Refresh hack patches for kernel 6.1. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: drop pending patch backported as fixesChristian Marangi2023-05-222-56/+0
| | | | | | Drop pending patch backported as fixes in later kernel version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: manually refresh pending patchesChristian Marangi2023-05-2236-228/+846
| | | | | | | | | | | Refresh pending patches for kernel 6.1. Changes: - Refresh mtd patches with new implementation. - Change 191-rtc-rs5c372-let_the_alarm_to_be_used_as_wakeup_source as uie_unsupported got dropped and we now set the bit directly. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: manually refresh backport patchesChristian Marangi2023-05-225-9/+9
| | | | | | Refresh backport patches that still needs to be merged for kernel 6.1. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: drop backport patchesChristian Marangi2023-05-22386-76303/+0
| | | | | | Drop all backport patches that are now included in kernel 6.1. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: copy backport, hack, pending patch and config from 5.15 to 6.1Christian Marangi2023-05-22713-0/+130426
| | | | | | Copy backport, hack, pending patch and config from 5.15 to 6.1. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: remove obsolete kernel version switchesAleksander Jan Bajkowski2023-05-203-26/+0
| | | | | | | This removes unneeded kernel version switches from the targets after kernel 5.10 has been dropped. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>