From: Ronan Pigott <ronan@rjp.ie>
To: tglx@kernel.org, mingo@redhat.com, bp@alien8.de,
dave.hansen@linux.intel.com
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
Ronan Pigott <ronan@rjp.ie>
Subject: [PATCH] x86/split_lock: Don't warn about unknown parameter
Date: Sun, 5 Apr 2026 01:30:50 -0700 [thread overview]
Message-ID: <20260405083245.50007-1-ronan@rjp.ie> (raw)
The split_lock_detect command line parameter is handled in sld_setup
shortly after cpu_parse_early_param but still before parse_early_param.
Add a dummy __setup function so that parse_early_param doesn't later
complain about the "unknown" parameter split_lock_detect=, and pass it
along to init.
---
arch/x86/kernel/cpu/bus_lock.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/x86/kernel/cpu/bus_lock.c b/arch/x86/kernel/cpu/bus_lock.c
index fb166662bc0d..c8fec79ed557 100644
--- a/arch/x86/kernel/cpu/bus_lock.c
+++ b/arch/x86/kernel/cpu/bus_lock.c
@@ -132,6 +132,12 @@ static void __init sld_state_setup(void)
sld_state = state;
}
+static __init int setup_split_lock_detect(char *arg)
+{
+ return 1;
+}
+__setup("split_lock_detect=", setup_split_lock_detect);
+
static void __init __split_lock_setup(void)
{
if (!split_lock_verify_msr(false)) {
--
2.53.0
next reply other threads:[~2026-04-05 8:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-05 8:30 Ronan Pigott [this message]
2026-04-05 11:37 ` Borislav Petkov
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=20260405083245.50007-1-ronan@rjp.ie \
--to=ronan@rjp.ie \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®