difos/target/linux
Chuanhong Guo 2f024b7933 ramips: mt7621: do memory detection on KSEG1
It's reported that current memory detection code occasionally detects
larger memory under some bootloaders.
Current memory detection code tests whether address space wraps around
on KSEG0, which is unreliable because it's cached.

Rewrite memory size detection to perform the same test on KSEG1 instead.
While at it, this patch also does the following two things:
1. use a fixed pattern instead of a random function pointer as the magic
   value.
2. add an additional memory write and a second comparison as part of the
   test to prevent possible smaller memory detection result due to
   leftover values in memory.

Fixes: 6d91ddf517 ("ramips: mt7621: add support for memory detection")
Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-02-14 11:59:12 +08:00
..
apm821xx apm821xx: WNDR4700: utilize ath9k nvmem-cells 2022-02-04 21:15:17 +01:00
archs38 kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
armvirt kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
at91 at91: drop /etc/config/firewall 2022-01-15 16:36:28 +01:00
ath25 ath25: switch to 5.10 Kernel 2022-02-10 11:55:22 +01:00
ath79 kernel: bump 5.10 to 5.10.98 2022-02-11 23:17:40 +01:00
bcm27xx kernel: bump 5.10 to 5.10.99 2022-02-11 23:17:40 +01:00
bcm47xx bcm47xx: switch to kernel 5.10 2021-11-08 15:56:39 +01:00
bcm53xx kernel: bump 5.10 to 5.10.92 2022-01-16 20:51:14 +01:00
bcm63xx bcm63xx: Remove patch already in Linux stable 2022-02-01 23:34:07 +00:00
bcm4908 target/linux: replace egrep with grep -E 2022-02-07 00:03:27 +01:00
bmips kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
gemini kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
generic kernel: remove 640-bridge-only-accept-EAP-locally.patch 2022-02-12 23:50:26 +01:00
imx imx: bump SDMA firmware to v3.6 2022-01-13 09:33:29 +01:00
ipq40xx kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
ipq806x ipq806x: Enlarge D7800 flash - use netgear partition 2022-02-08 12:52:14 +01:00
kirkwood target/linux: replace egrep with grep -E 2022-02-07 00:03:27 +01:00
lantiq kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
layerscape kernel: bump 5.4 to 5.4.174 2022-01-28 22:06:03 +01:00
malta kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
mediatek kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
mpc85xx kernel: move bootargs-append patch to generic 2022-01-29 23:50:28 +09:00
mvebu target/linux: replace egrep with grep -E 2022-02-07 00:03:27 +01:00
mxs kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeon octeon: switch to Kernel 5.10 2022-02-11 14:24:01 +01:00
octeontx octeontx: switch to 5.10 Kernel 2022-02-05 14:39:20 +01:00
omap omap: make use of 'rootfs-part' feature 2022-01-23 19:48:20 +00:00
oxnas kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
pistachio kernel: bump 5.10 to 5.10.95 2022-02-01 23:34:07 +00:00
qoriq qoriq: Expand generic subtarget description 2022-01-05 10:54:59 +02:00
ramips ramips: mt7621: do memory detection on KSEG1 2022-02-14 11:59:12 +08:00
realtek kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
rockchip rockchip: disable UHS modes for NanoPi R4S 2022-01-27 01:44:28 +01:00
sunxi sunxi: make use of 'rootfs-part' feature 2022-01-23 19:48:25 +00:00
tegra kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
uml uml: make use of 'rootfs-part' feature 2022-01-23 19:48:31 +00:00
x86 x86: improve sysinfo handling of dummy values 2022-01-08 23:25:05 +01:00
zynq kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00