[PATCH v2 1/2] alpha: parse early parameters before reserving contiguous memory
From: Magnus Lindholm
Date: Sat Nov 14 2026 - 04:54:06 EST
Run parse_early_param() in setup_arch(), after machine initialization
and before further memory reservations. This lets the subsequent CMA
reservation honor cma= before start_kernel() reaches its normal call.
The parser uses boot_command_line and guards against repeated calls.
This moves all early parameter handlers, not just the CMA handler.
Signed-off-by: Magnus Lindholm <linmag7@xxxxxxxxx>
---
arch/alpha/kernel/setup.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c
index 9fda01b73b18..c7b7ebcc47b6 100644
--- a/arch/alpha/kernel/setup.c
+++ b/arch/alpha/kernel/setup.c
@@ -579,6 +579,9 @@ setup_arch(char **cmdline_p)
if (alpha_mv.init_arch)
alpha_mv.init_arch();
+ /* Parse early options before reserving memory for DMA CMA. */
+ parse_early_param();
+
/* Reserve standard resources. */
reserve_std_resources();
--
2.43.0