mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
5f07c579f8
Use an existing kernel config symbol to fix devices whose ramstart is not zero. See upstream patch message for more details. Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com> Cc: Tobias Wolf <dev-NTEO@vplace.de> Cc: Daniel Golle <daniel@makrotopia.org>
33 lines
1020 B
Diff
33 lines
1020 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
|
|
Date: Sat, 3 Apr 2021 18:51:44 -0700
|
|
Subject: [PATCH] MIPS: ralink: rt288x: select MIPS_AUTO_PFN_OFFSET
|
|
|
|
RT288X systems may have a non-zero ramstart causing problems with memory
|
|
reservations and boot hangs, as well as messages like:
|
|
Wasting 1048576 bytes for tracking 32768 unused pages
|
|
|
|
Both are alleviated by selecting MIPS_AUTO_PFN_OFFSET for such
|
|
platforms.
|
|
|
|
Tested on a Belkin F5D8235 v1 RT2880 device.
|
|
|
|
Link: https://lore.kernel.org/linux-mips/20180820233111.xww5232dxbuouf4n@pburton-laptop/
|
|
|
|
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
|
|
Cc: Mike Rapoport <rppt@kernel.org>
|
|
---
|
|
arch/mips/ralink/Kconfig | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/arch/mips/ralink/Kconfig
|
|
+++ b/arch/mips/ralink/Kconfig
|
|
@@ -26,6 +26,7 @@ choice
|
|
|
|
config SOC_RT288X
|
|
bool "RT288x"
|
|
+ select MIPS_AUTO_PFN_OFFSET
|
|
select MIPS_L1_CACHE_SHIFT_4
|
|
select HAVE_LEGACY_CLK
|
|
select HAVE_PCI
|