]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Loongson64: Handle more memory types passed from firmware
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 7 Nov 2023 11:15:20 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 14:17:33 +0000 (15:17 +0100)
commitfd0d9b167459e6e00e76fbabe2b1d6578af1b9f4
tree580626fa36c4705e3886740808432aa7db5e3b92
parentd9a9d8effdb23db62e35e06e0daef919cccc94f9
MIPS: Loongson64: Handle more memory types passed from firmware

[ Upstream commit c7206e7bd214ebb3ca6fa474a4423662327d9beb ]

There are many types of revsered memory passed from firmware
that should be reserved in memblock, and UMA memory passed
from firmware that should be added to system memory for system
to use.

Also for memblock there is no need to align those space into page,
which actually cause problems.

Handle them properly to prevent memory corruption on some systems.

Cc: stable@vger.kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/include/asm/mach-loongson64/boot_param.h
arch/mips/loongson64/init.c