aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-07-24 14:43:03 +0200
committerFelix Fietkau <nbd@nbd.name>2023-07-24 20:19:11 +0200
commit339e71cbd3f86e5901f600a6bb32c9d2613f3793 (patch)
tree9e4a07eb73483af2cfe04485940fd2d0348d6457 /target/linux/generic/pending-5.15
parente5dea9e37f1953d0cc4b846a530ff4247bf08ee0 (diff)
downloadupstream-339e71cbd3f86e5901f600a6bb32c9d2613f3793.tar.gz
upstream-339e71cbd3f86e5901f600a6bb32c9d2613f3793.tar.bz2
upstream-339e71cbd3f86e5901f600a6bb32c9d2613f3793.zip
kernel: drop mips highmem offset start overrides
The maximum offset that can be supported is 0x20000000 Do not override it to to something bigger than that on MT7621, as that could cause issues based on the fixed memory mappings. This makes the last 64 MB RAM unusable on MT7621 devices with 512 MB but avoids incurring a heavy performance hit Fixes: cd2b74e01e8d ("ramips: mt7621: disable highmem support and remove highmem offset patch") Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit a110de8152df46a1e2adf7010ba75fb3b1236cd8)
Diffstat (limited to 'target/linux/generic/pending-5.15')
-rw-r--r--target/linux/generic/pending-5.15/307-mips_highmem_offset.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/target/linux/generic/pending-5.15/307-mips_highmem_offset.patch b/target/linux/generic/pending-5.15/307-mips_highmem_offset.patch
deleted file mode 100644
index 0529b0c5c8..0000000000
--- a/target/linux/generic/pending-5.15/307-mips_highmem_offset.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-From: Felix Fietkau <nbd@nbd.name>
-Subject: kernel: adjust mips highmem offset to avoid the need for -mlong-calls on systems with >256M RAM
-
-Signed-off-by: Felix Fietkau <nbd@nbd.name>
----
- arch/mips/include/asm/mach-generic/spaces.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/arch/mips/include/asm/mach-generic/spaces.h
-+++ b/arch/mips/include/asm/mach-generic/spaces.h
-@@ -46,7 +46,7 @@
- * Memory above this physical address will be considered highmem.
- */
- #ifndef HIGHMEM_START
--#define HIGHMEM_START _AC(0x20000000, UL)
-+#define HIGHMEM_START _AC(0x10000000, UL)
- #endif
-
- #endif /* CONFIG_32BIT */