aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Fix readid method of XTX XT26G0xAFelix Matouschek2022-04-092-6/+6
| | | | | | The correct readid method is SPINAND_READID_METHOD_OPCODE_ADDR. Signed-off-by: Felix Matouschek <felix@matouschek.org>
* kernel: mtk_bmt: skip bitflip check if threshold isn't setChuanhong Guo2022-04-091-1/+1
| | | | | | kernel spi-nand driver leaves this field empty and let mtd set it later. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* kernel: v5.10: backport GigaDevice SPI-NAND supportsChuanhong Guo2022-04-096-0/+482
| | | | | | This backports GD SPI NAND support from nand/next to v5.10 Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* kernel: v5.15: backport GigaDevice SPI-NAND supportsChuanhong Guo2022-04-095-0/+335
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* kernel: remove duplicate patch that is already in the 5.15 kernel treeFelix Fietkau2022-04-071-26/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing CONFIG_SECURITY_LANDLOCK symbol for 5.15Daniel Golle2022-04-061-0/+1
| | | | | | Building with SELinux enabled unveiled a missing Kconfig symbol. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: add missing symbol for 5.15Koen Vandeputte2022-04-051-0/+1
| | | | | | Driver for the National Semiconductor DP83640 PHYTER (DP83640_PHY) [N/m/y/?] (NEW) Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* Revert "kernel: backport MT7530 VLAN fix"Stijn Tintel2022-04-035-523/+0
| | | | | | | | | | There are various reports on Github and in the forum that this commit causes multiple problems. This reverts commit ee6ba216d8ba1b02154c287e64d709a8bc7b0054. Fixes: #9420 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: backport pgalloc memory leak fixStijn Tintel2022-04-032-0/+96
| | | | | | | Backport a fix for the massive memory leak observed in Octeon after switching to kernel 5.10. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: scale nf_conntrack_max more reasonablyVincent Pelletier2022-04-013-0/+150
| | | | | | | | | | | | | | | | | | | Use the kernel's built-in formula for computing this value. The value applied by OpenWRT's sysctl configuration file does not scale with the available memory, under-using hardware capabilities. Also, that formula also influences net.netfilter.nf_conntrack_buckets, which should improve conntrack performance in average (fewer connections per hashtable bucket). Backport upstream commit for its effect on the number of connections per hashtable bucket. Apply a hack patch to set the RAM size divisor to a more reasonable value (2048, down from 16384) for our use case, a typical router handling several thousands of connections. Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* generic: add missing symbol for 5.15Zoltan HERPAI2022-04-011-0/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: generic: add more missing kernel symbols for 5.15Petr Štetiar2022-03-301-0/+7
| | | | | | Found while adding 5.15 support for imx target. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* kernel: bump 5.10 to 5.10.109John Audia2022-03-3022-180/+169
| | | | | | | | | | All patches automatically rebased. Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <graysky@archlinux.us>
* generic: backport 5.16 fix for hv utils build failurePetr Štetiar2022-03-291-0/+46
| | | | | | | | | | | | | | | | | | | | Backports following fix: hv: utils: add PTP_1588_CLOCK to Kconfig to fix build The hyperv utilities use PTP clock interfaces and should depend a a kconfig symbol such that they will be built as a loadable module or builtin so that linker errors do not happen. Prevents these build errors: ld: drivers/hv/hv_util.o: in function `hv_timesync_deinit': hv_util.c:(.text+0x37d): undefined reference to `ptp_clock_unregister' ld: drivers/hv/hv_util.o: in function `hv_timesync_init': hv_util.c:(.text+0x738): undefined reference to `ptp_clock_register' References: https://lore.kernel.org/stable/20220328093115.7486-1-ynezz@true.cz/T/#u Signed-off-by: Petr Štetiar <ynezz@true.cz>
* kernel: generic: add more missing kernel symbols for 5.15Petr Štetiar2022-03-291-0/+11
| | | | | | Found while adding 5.15 support for x86/sunxi targets. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* generic: 5.15: fix FIT partition parser on block partitionsDaniel Golle2022-03-291-4/+13
| | | | | | | | | Using set_disk_ro() doesn't have the desired effect and instead of just setting the single partition to be read-only it affects the whole disk. Use the bd_read_only flag in struct block_device instead to mark a partition being read-only. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: Backport mv88e6xxx patch to keep pvid at 0 if VLAN-unaware and ↵Marek Behún2022-03-272-18/+236
| | | | | | | | | | | | | | | remove hack Backport patch 8b6836d82470 ("net: dsa: mv88e6xxx: keep the pvid at 0 when VLAN-unaware") from 5.15. Keeping the pvid at 0 when VLAN-unaware makes it possible to drop the hack introduced in commit 920eaab1d817 ("kernel: DSA roaming fix for Marvell mv88e6xxx"). Dropping the hack makes it possible to use VLAN interfaces with VID 1 on DSA ports without problems with FDB. Signed-off-by: Marek Behún <kabel@kernel.org>
* kernel: sort generic configurationAleksander Jan Bajkowski2022-03-272-31/+28
| | | | | | | | | | | | | This was done by executing these commands: $ ./scripts/kconfig.pl '+' target/linux/generic/config-5.10 /dev/null > target/linux/generic/config-5.10-new $ mv target/linux/generic/config-5.10-new target/linux/generic/config-5.10 $ ./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 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: add more missing config symbols for 5.15Aleksander Jan Bajkowski2022-03-271-0/+8
| | | | | | | Add more disabled config options found in malta target to generic. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
* kernel: 5.15: add more missing symbolsDaniel Golle2022-03-271-0/+46
| | | | | | | Add various Kconfig symbols which surfaced when building with all kernel modules enabled. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 5.15: add more missing Kconfig symbolsDaniel Golle2022-03-271-0/+28
| | | | | | Add a bunch of missing new Kconfig symbols to generic/config-5.15. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: add missing config symbols for 5.15Felix Fietkau2022-03-271-0/+4
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mediatek: add patches for MT7622 WED (wireless ethernet dispatch)Felix Fietkau2022-03-2725-25/+7205
| | | | | | This series also contains other improvement for hardware flow offload support Signed-off-by: Felix Fietkau <nbd@nbd.name>
* generic: 5.15: refresh pending patchAnsuel Smith2022-03-2785-273/+272
| | | | | | Use 'make target/linux/refresh' to refresh pending patches. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: refresh hack patchAnsuel Smith2022-03-2739-172/+171
| | | | | | Use 'make target/linux/refresh' to refresh hack patches. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: refresh backport patchAnsuel Smith2022-03-2768-543/+293
| | | | | | Use 'make target/linux/refresh' to refresh backport patches. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: fix compilation warning for ar8xxx swconfigAnsuel Smith2022-03-272-1/+3
| | | | | | | | | There are 2 warning for ar8xxx swconfig. - Fix not used dev variable when ETHERNET_PACKET_MANGLE is not selected - Convert fallthrough comment to compilation macro Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: backport mdio improvement patch for qca8kAnsuel Smith2022-03-2724-0/+3628
| | | | | | | | | Backport qca8k mdio improvement patch merged upstream, where we use eth packet when available to send mdio commands. This should improve speed and cause less load on the CPU. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: get uImage.FIT partition parser readyDaniel Golle2022-03-275-149/+31
| | | | | | | Prepare uImage.FIT partition parser for Linux 5.15 Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: fix AQR 113C and 813Robert Marko2022-03-271-2/+2
| | | | | | | | | | | Patches that add the additional AQR PHY ID-s is just copy/paste from 5.10 and kernel 5.11 dropped the ack_interrupt method for PHY IRQ handling, instead handle_interrupt is used. So, simply switch to using handle_interrupt like other upstream AQR PHY-s. Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: fix new AQR PHY patchesRobert Marko2022-03-273-5/+5
| | | | | | | | | | | | | After fixing the original 720 patch, it looks like more were added for additional AQR ID-s. Patches that add the additional AQR PHY ID-s is just copy/paste from 5.10 and kernel 5.11 dropped the ack_interrupt method for PHY IRQ handling, instead handle_interrupt is used. So, simply switch to using handle_interrupt like other upstream AQR PHY-s. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 5.15: backport mirror mode and LAG feature for qca8kAnsuel Smith2022-03-273-0/+502
| | | | | | Backport LAG and mirror mode feature for qca8k. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: refresh configAnsuel Smith2022-03-271-4/+186
| | | | | | | | Refresh kernel 5.15 generic config file Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [added some missing Kconfig symbols] Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 5.15: fix affinity warning for qcom targetAnsuel Smith2022-03-271-0/+50
| | | | | | Backport a patch from 5.18 that fix affinity warning from qcom pinctrl driver. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: standardize tcp_no_window_check pending patchAnsuel Smith2022-03-271-23/+29
| | | | | | | | | | | | Standardize pending patch tcp_no_window_check patch as with new kernel they added a check for global variables. The 2 new condition are that they must be read-only or the data pointer should not point to kernel/module global data. Remove the global variable and move it to a standard place following other variables logic. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: rework pending patchAnsuel Smith2022-03-2731-561/+89
| | | | | | Rework pending patch for kernel 5.15 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: rework hack patchAnsuel Smith2022-03-2718-91/+123
| | | | | | | | Rework hack patch in dir for kernel 5.15. For the specific patch of packet mangeling introduce a new extra_priv_flags as we don't have enough space to add additional flags in priv_flags. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: qca8k: refresh backport patchesAnsuel Smith2022-03-2711-63/+119
| | | | | | | | Refresh qca8k backport patches for 5.15 kernel. Vlan_prepare is now dropped and there were some changes to vlan add/remove functions. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: rework backport patchAnsuel Smith2022-03-272-34/+30
| | | | | | Rework backport patch for kernel 5.15. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: drop upstream patchAnsuel Smith2022-03-27188-26893/+0
| | | | | | Drop upstream patch from backport dir for kernel 5.15 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: 5.15: copy config and patch from 5.10Ansuel Smith2022-03-27441-0/+71106
| | | | | | Copy config and patches from kernel 5.10 to kernel 5.15 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* generic: sync mtd rootfs hack with part_bitsDaniel Golle2022-03-261-1/+1
| | | | | | | | | | | | | | In commit ab143647ef ("kernel: generic: improve FIT partition parser") part_bits was bumped to 2 in order to allow up to 3 additional FIT sub-images mapped into sub-partitions. This change has to be reflected also in our local patch 420-mtd-set-rootfs-to-be-root-dev.patch which still assumed part_bits==1 for mtdblock devices in case of CONFIG_FIT_PARTITION=y. Fixes: #9557 Fixes: ab143647ef ("kernel: generic: improve FIT partition parser") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: bump 5.10 to 5.10.108Rui Salvaterra2022-03-261-3/+3
| | | | | | | | | | | | | | | | Patches automatically rebased. Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Tested-by: John Audia <graysky@archlinux.us> Build-tested: ath79/generic, ramips/mt76{20,21,x8}, ipq40xx, mvebu, realtek/rtl{838,930}x, x86/64 Run-tested: ramips/mt7621, mvebu Tested-by: Stijn Segers <foss@volatilesystems.org> Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* kernel: mark CONFIG_PSTORE_COMPRESS_DEFAULT as "is not set"Christian Lamparter2022-03-261-1/+1
| | | | | | | | # CONFIG_PSTORE_COMPRESS_DEFAULT="deflate" this can lead to confusion. Thankfully, in the KConfig world this setting is still interpreted as disabled. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: add (disabled) ASYMMETRIC_TPM_KEY_SUBTYPE symbolChristian Lamparter2022-03-261-0/+1
| | | | | | | | | | | | | | at91/sama7 fails to build due to: | Asymmetric (public-key cryptographic) key type (ASYMMETRIC_KEY_TYPE) [Y/?] y | Asymmetric public-key crypto algorithm subtype (ASYMMETRIC_PUBLIC_KEY_SUBTYPE) [Y/?] y | Asymmetric TPM backed private key subtype (ASYMMETRIC_TPM_KEY_SUBTYPE) [N/m/?] (NEW) |Error in reading or end of file. please note that asym_tpm (module) has been removed in 5.17: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d3cff4a9> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: add missing (disabled) GOOGLE_* symbolsChristian Lamparter2022-03-261-0/+6
| | | | | | | | | | | | | ARM Builds like sunxi/cortexa53 or the rpi family failed to build due to a new symbols showing up: |Google Firmware Drivers (GOOGLE_FIRMWARE) [Y/n/?] y | Coreboot Table Access (GOOGLE_COREBOOT_TABLE) [M/n/y/?] m | Coreboot Framebuffer (GOOGLE_FRAMEBUFFER_COREBOOT) [N/m/?] (NEW) |Error in reading or end of file. Fixes: e5b009e53281 ("kernel: Package GOOGLE_FIRMWARE drivers") Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: mtdsplit: support UBI after FIT imagesFelix Fietkau2022-03-251-2/+7
| | | | | | Change the partition name accordingly. Same behavior as mtdsplit_uimage Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: mtk_bmt: add debugfs file to attempt repair of remapped sectorsFelix Fietkau2022-03-251-1/+26
| | | | | | This can be used for sectors that are not physically damaged Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add support for mediatek NMBM flash mapping supportFelix Fietkau2022-03-254-4/+2361
| | | | | | | This NAND flash remapping method is used on newer MediaTek devices with NAND flash. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: mtk_bmt: on error, do not attempt to remap out-of-range blocksFelix Fietkau2022-03-252-15/+24
| | | | | | Pass errors to caller instead Signed-off-by: Felix Fietkau <nbd@nbd.name>