sparc32: Limit memblock allocation to low memory
authorAndreas Larsson <andreas@gaisler.com>
Fri, 5 Feb 2021 13:20:31 +0000 (14:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:24 +0000 (17:06 +0100)
commit99ed6ae4d0008a87b035fc5cac2e19019083fcd7
tree0653e7c4d4c8e2e1c7e33deca227bcd2ea18aaaa
parent661cba45dc67729a0a0e891320f3e3b713638a5b
sparc32: Limit memblock allocation to low memory

[ Upstream commit bda166930c37604ffa93f2425426af6921ec575a ]

Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use
memblocks instead of bootmem, but also made high memory available via
memblock allocation which does not work together with e.g. phys_to_virt
and can lead to kernel panic.

This changes back to only low memory being allocatable in the early
stages, now using memblock allocation.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/sparc/mm/init_32.c