ramips: rt288x: replace hack with a kconfig change
[openwrt/staging/stintel.git] / target / linux / ramips / patches-5.10 / 201-MIPS-ralink-rt288x-select-MIPS_AUTO_PFN_OFFSET.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
3 Date: Sat, 3 Apr 2021 18:51:44 -0700
4 Subject: [PATCH] MIPS: ralink: rt288x: select MIPS_AUTO_PFN_OFFSET
5
6 RT288X systems may have a non-zero ramstart causing problems with memory
7 reservations and boot hangs, as well as messages like:
8 Wasting 1048576 bytes for tracking 32768 unused pages
9
10 Both are alleviated by selecting MIPS_AUTO_PFN_OFFSET for such
11 platforms.
12
13 Tested on a Belkin F5D8235 v1 RT2880 device.
14
15 Link: https://lore.kernel.org/linux-mips/20180820233111.xww5232dxbuouf4n@pburton-laptop/
16
17 Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
18 Cc: Mike Rapoport <rppt@kernel.org>
19 ---
20 arch/mips/ralink/Kconfig | 1 +
21 1 file changed, 1 insertion(+)
22
23 --- a/arch/mips/ralink/Kconfig
24 +++ b/arch/mips/ralink/Kconfig
25 @@ -26,6 +26,7 @@ choice
26
27 config SOC_RT288X
28 bool "RT288x"
29 + select MIPS_AUTO_PFN_OFFSET
30 select MIPS_L1_CACHE_SHIFT_4
31 select HAVE_LEGACY_CLK
32 select HAVE_PCI