aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-5.15
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-07-24 13:17:44 +0200
committerFelix Fietkau <nbd@nbd.name>2023-07-24 20:19:11 +0200
commite5dea9e37f1953d0cc4b846a530ff4247bf08ee0 (patch)
tree294a8a2b23037bb83ff632b1090ec9d92ee718c5 /target/linux/ramips/patches-5.15
parent476bf135fcec4c1ceb5114029e539a07131e970f (diff)
downloadupstream-e5dea9e37f1953d0cc4b846a530ff4247bf08ee0.tar.gz
upstream-e5dea9e37f1953d0cc4b846a530ff4247bf08ee0.tar.bz2
upstream-e5dea9e37f1953d0cc4b846a530ff4247bf08ee0.zip
ramips: mt7621: disable highmem support and remove highmem offset patch
On MT7621 it was observed, that enabling highmem support causes a significant performance drop, as documented in: https://github.com/openwrt/openwrt/issues/13151 By adjusting the highmem start offset, we avoid leaving any RAM unaddressable, even on devices with 512 MB Fixes: https://github.com/openwrt/openwrt/issues/13151 Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit cd2b74e01e8d5f5b80b82db1cb204c13ed99dd58)
Diffstat (limited to 'target/linux/ramips/patches-5.15')
-rw-r--r--target/linux/ramips/patches-5.15/120-highmem-start-offset.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-5.15/120-highmem-start-offset.patch b/target/linux/ramips/patches-5.15/120-highmem-start-offset.patch
new file mode 100644
index 0000000000..629c7bfa5c
--- /dev/null
+++ b/target/linux/ramips/patches-5.15/120-highmem-start-offset.patch
@@ -0,0 +1,19 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Mon Jul 24 13:29:13 CEST 2023
+Subject: [PATCH] mips: ralink: increase highmem start
+
+Increase highmem start address in order to support devices with 512 MB memory
+and MT7621 SoC
+
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+--- a/arch/mips/include/asm/mach-ralink/spaces.h
++++ b/arch/mips/include/asm/mach-ralink/spaces.h
+@@ -5,6 +5,7 @@
+ #define PCI_IOBASE _AC(0xa0000000, UL)
+ #define PCI_IOSIZE SZ_16M
+ #define IO_SPACE_LIMIT (PCI_IOSIZE - 1)
++#define HIGHMEM_START _AC(0x24000000, UL)
+
+ #include <asm/mach-generic/spaces.h>
+ #endif