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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 5 Dec 2023 17:45:24 +0000 (18:45 +0100)
commitc7206e7bd214ebb3ca6fa474a4423662327d9beb
tree1c3d41688ab2cf52f247664d609d6402d4ba05f2
parentedc0378eee00200a5bedf1bb9f00ad390e0d1bd4
MIPS: Loongson64: Handle more memory types passed from firmware

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>
arch/mips/include/asm/mach-loongson64/boot_param.h
arch/mips/loongson64/init.c