Commit Graph

463 Commits

Author SHA1 Message Date
Linus Walleij
f878e9a2d6 kernel: backport RTL8366RB patches
These upstream patches makes the RTL8366RB DSA switch work
properly with OpenWrt, the D-Link DIR-685 gets network and
can be used as a router, and the same should be applicable
for any other device that want to enable the RTL8366RB
through Device Tree.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-08-25 12:25:47 +08:00
CN_SZTL
f3eca9a203
Merge Mainline 2020-08-23 02:15:59 +08:00
CN_SZTL
14459b8a3d
kernel: refresh patches
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-23 02:10:34 +08:00
CN_SZTL
abc38b2132
Merge Mainline 2020-08-23 01:30:00 +08:00
Felix Fietkau
6d5483c956
kernel: add patch that adds support for running threaded NAPI poll functions
This is helps on workloads with CPU intensive poll functions (e.g. 802.11)
on multicore systems

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2020-08-23 01:29:23 +08:00
CN_SZTL
2105d78e8a
kernel: bump 5.4 to 5.4.60
Resolve conflicted:
- 804-crypto-0016-MLKU-114-1-crypto-caam-reduce-page-0-regs-access-to-.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-22 03:33:14 +08:00
CN_SZTL
a4c3b23569
Merge Mainline 2020-08-22 02:27:01 +08:00
CN_SZTL
e9deb93962
kernel: bump 4.19 to 4.19.141
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-22 02:23:05 +08:00
Hauke Mehrtens
d505b07070
kernel: Add GigaDevice GD5F4GQ4xC SPI NAND flash
This flash was found on the Imagination Technologies Creator Ci40 (Marduk).

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-22 01:38:59 +08:00
CN_SZTL
15c39065cd
kernel: bump 4.14 to 4.14.194
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-22 01:30:26 +08:00
CN_SZTL
879e74c482
kernel: bump 4.9 to 4.9.233
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-21 23:59:57 +08:00
AmadeusGhost
7f210212d9 ipq40xx: sync upstream crypto patches 2020-08-21 22:46:23 +08:00
CN_SZTL
84eb37bcb3
kernel: bump 5.4 to 5.4.59
Resolve conflicted:
- 950-0163-staging-vchiq_arm-Fix-platform-device-unregistration.patch
- 950-0338-staging-vchiq_arm-Unify-the-unload-handling-of-platf.patch
- 801-audio-0005-Revert-ASoC-fsl_sai-Add-support-for-SAI-new-version.patch
- 805-display-0043-gpu-Move-ipu-v3-to-imx-folder.patch

Remove upstreamed:
- 950-0428-staging-vchiq_arm-Add-a-matching-unregister-call.patch
- 0800-spi-lantiq-ssc-Fix-warning-by-using-WQ_MEM_RECLAI.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-20 04:30:19 +08:00
CN_SZTL
0817390727
Merge Mainline 2020-08-20 04:23:58 +08:00
CN_SZTL
015b2f2131
kernel: bump 4.19 to 4.19.140
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-20 02:13:03 +08:00
CN_SZTL
848f964c9f
Merge Mainline 2020-08-19 01:07:23 +08:00
Thibaut VARÈNE
7fd272698f
generic: platform/mikrotik: fix incorrect test
The test is meant to check the result of the preceding kmalloc()

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-08-19 01:06:07 +08:00
Tony Ambardar
557867c14a
kernel: mips: fix init crash/bootloop on 64-bit systems
The malta subtargets for mips64 and mips64el fail to start the init process
at boot, resulting in a boot loop. The issue was raised and analyzed within
FS#3277. Investigation suggested code near the [vdso] memory area of the
process was long jumping into a region inaccessible to the process, e.g.

 init: - preinit -
 init: Launched preinit instance, pid=522
 do_page_fault(): sending SIGSEGV to init for invalid read access from 0000000000000360
 epc = 0000000000000360 in init[aaab42b000+4000]
 ra  = 000000fffee385e0 in
 Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
 Rebooting in 1 seconds..

Note the low-memory read access and epc are the same. Upstream kernel 5.6
included a relevant patch and discussion:

  * d3f703c4359f ("mips: vdso: fix 'jalr t9' crash in vdso code")

Disassembly of the failing kernel's vdso.so confirmed presence of the
telltale long jumps, e.g.:

00000000000007c0 <__vdso_clock_getres@@LINUX_2.6>:
 [...]
 7dc:   0320f809        jalr    t9
 [...]

Restore booting mips64/mips64el malta by backporting the above commit:
  * 310-v5.6-mips-vdso-fix-jalr-t9-crash-in-vdso-code.patch

Fixes: 54310a3aa0 ("malta: add kernel 5.4 config")
Fixes: FS#3277
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3277

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2020-08-15 02:09:22 +08:00
CN_SZTL
56f4fab2b5
kernel/5.4: remove useless patch
It was fixed more generically upstream so no longer required.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-14 03:04:43 +08:00
Adrian Schmutzler
8b24d5301d kernel: add CGROUPS and IOSCHED_BFQ back to config
After those symbols have been removed from generic kernel config,
they were added to the target config during every kernel config
refresh. As that's not desirable, add them back to the generic
config.

Fixes: d1a8217d87 ("kernel: clean-up build-configurable kernel config symbols")
Fixes: cfe235c436 ("kernel: modules: add package kmod-iosched-bfq")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-13 11:57:54 +08:00
Adrian Schmutzler
6b0c7c54e6 kernel: add CGROUPS and IOSCHED_BFQ back to config
After those symbols have been removed from generic kernel config,
they were added to the target config during every kernel config
refresh. As that's not desirable, add them back to the generic
config.

Fixes: d1a8217d87 ("kernel: clean-up build-configurable kernel config symbols")
Fixes: cfe235c436 ("kernel: modules: add package kmod-iosched-bfq")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-13 11:56:34 +08:00
Hauke Mehrtens
335ad64a6f kernel: Create UBIFS v5 volume
In commit 87b35c16ad ("kernel: ubifs: create use file system format 4
by default") we changed the default UBIFS version used when the kernel
creates a new volume from 5 to 4. UBIFS v5 was added in kernel 4.10 and
only kernel 4.10 and later can read it.
We changed the kernel to create version 4 volumes also on more recent
kernel versions to make it possible to downgrade to an OpenWrt version
with kernel 4.9, the upgrade still works. This is probably not needed
any more and we can remove this patch.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-13 11:45:13 +08:00
AmadeusGhost
75f55483f9 generic/4.9: add missing line 2020-08-12 16:00:06 +08:00
CN_SZTL
76c217e8df
Merge Mainline 2020-08-12 14:49:43 +08:00
AmadeusGhost
0ca6b90875 ramips/dir878: remove the original factory partition definition 2020-08-12 11:01:24 +08:00
CN_SZTL
cd73b85ee0
target: drop kernel 4.9 support 2020-08-12 03:17:56 +08:00
Hauke Mehrtens
8d141be934
kernel: Move CONFIG_IONIC to generic kernel config
It is deactivated everywhere, just set this in the generic config.

Acked-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-11 18:15:38 +08:00
AmadeusGhost
481e226f95 Merge Mainline 2020-08-10 21:25:06 +08:00
Daniel Golle
fdd2beaf7c kernel: modules: add package kmod-iosched-bfq
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-10 21:15:10 +08:00
CN_SZTL
b0e9557632
Merge Mainline 2020-08-07 19:44:17 +08:00
CN_SZTL
854ce725e7
kernel: bump 4.14 to 4.14.193
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-07 19:24:40 +08:00
Felix Fietkau
2675e744f4
kernel: unify CONFIG_GPIO_SYSFS in kernel configs
Enable it for all platforms

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2020-08-07 18:08:33 +08:00
CN_SZTL
a3949e4b15
kernel: bump 5.4 to 5.4.56
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-05 20:38:24 +08:00
CN_SZTL
b898719475
Merge Mainline 2020-08-05 20:36:43 +08:00
CN_SZTL
ed4abdd44f
kernel: bump 4.19 to 4.19.137
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-05 20:27:48 +08:00
CN_SZTL
fbda318d72
kernel: bump 4.14 to 4.14.192
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-05 20:26:26 +08:00
CN_SZTL
79dc412747
Merge Mainline 2020-08-03 01:55:38 +08:00
CN_SZTL
fce99c706d
target/generic: add missing symbol in kernel 4.9 2020-08-03 01:53:13 +08:00
CN_SZTL
042648871a
Merge Mainline 2020-08-03 00:45:53 +08:00
Stijn Tintel
8ba47b7699
kernel: add missing config symbol
This symbol is exposed on ARM64 with EFI enabled in the kernel config.
Currently this happens only on ipq807x, but as there might be new ARM64
targets with EFI in the future it is better to add the symbol to the
generic config.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Jo-Philipp Wich <jo@mein.io>
2020-08-03 00:27:33 +08:00
Daniel Golle
34e28b29a0
kernel: clean-up build-configurable kernel config symbols
Don't explicitely disable options in target/linux/generic/config-* if
they are already controlled in config/Config-kernel.in.
Add a bunch of new symbols  and prepare defaults for using only unified
hierarchy (ie. cgroup2). Update symbol dependencies while at it

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-03 00:25:11 +08:00
Tony Ambardar
d6283216bd
kernel: mips: restore missing MIPS32 cBPF JIT
Kernel v5.1 included an eBPF JIT for MIPS32 kernels, but problems were
discovered [1] and the changes later reverted in kernel v5.5 with commits:

  * f8fffebdea75 ("MIPS: BPF: Disable MIPS32 eBPF JIT")
  * 36366e367ee9 ("MIPS: BPF: Restore MIPS32 cBPF JIT")

Only the first of these was backported to LTS kernel 5.4, leaving cBPF
programs without a JIT and introducing a performance regression for any
such users e.g. libpcap, tcpdump, etc.

Restore cBPF performance by backporting the second commit above:
  * 070-v5.5-MIPS-BPF-Restore-MIPS32-cBPF-JIT.patch

[1] https://lore.kernel.org/bpf/20191205182318.2761605-1-paulburton@kernel.org/

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2020-08-03 00:18:37 +08:00
CN_SZTL
f0c4f73481
Merge Mainline 2020-08-01 02:17:20 +08:00
CN_SZTL
2063d28587
kernel: bump 4.9 to 4.9.232
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-31 23:09:39 +08:00
CN_SZTL
e6b52447eb
Merge Mainline 2020-07-31 21:46:49 +08:00
ElonH
cb9d0994dd
kernel-4.19: skb_protocol missing args 2020-07-30 11:18:38 +08:00
ElonH
00422a78b9
kernel-4.19: tc_skb_protocol not defined
fixed: https://github.com/project-openwrt/openwrt-kisco/issues/48
2020-07-30 09:51:35 +08:00
CN_SZTL
ec012f816a
kernel: bump 5.4 to 5.4.54
Resolve conflicted:
- 701-net-0231-enetc-Use-DT-protocol-information-to-set-up-the-port.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-29 18:04:27 +08:00
CN_SZTL
8beb28ab29
Merge Mainline 2020-07-29 17:46:34 +08:00
CN_SZTL
40b4de8f44
kernel: bump 4.19 to 4.19.135
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-29 17:06:41 +08:00