From: Magnus Lindholm <linmag7@gmail.com>
To: richard.henderson@linaro.org, mattst88@gmail.com,
linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org
Cc: linmag7@gmail.com
Subject: [PATCH v2 1/2] alpha: parse early parameters before reserving contiguous memory
Date: Sat, 14 Nov 2026 10:53:16 +0100 [thread overview]
Message-ID: <20261114095335.1283016-2-linmag7@gmail.com> (raw)
In-Reply-To: <20261114095335.1283016-1-linmag7@gmail.com>
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@gmail.com>
---
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
next prev parent reply other threads:[~2026-11-14 9:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 9:53 [PATCH v2 0/2] alpha: enable DMA CMA support Magnus Lindholm
2026-11-14 9:53 ` Magnus Lindholm [this message]
2026-11-14 9:53 ` [PATCH v2 2/2] alpha: enable contiguous memory allocation for coherent DMA Magnus Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261114095335.1283016-2-linmag7@gmail.com \
--to=linmag7@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.