-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #13151 By adjusting the highmem start offset, we avoid leaving any RAM unaddressable, even on devices with 512 MB Fixes: #13151 Signed-off-by: Felix Fietkau <nbd@nbd.name>
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
target/linux/ramips/patches-5.15/120-highmem-start-offset.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |