From: Sohil Mehta <sohil.mehta@intel.com>
To: "H. Peter Anvin" <hpa@zytor.com>, Xin Li <xin@zytor.com>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>, <x86@kernel.org>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
Kees Cook <kees@kernel.org>,
"Ahmed S. Darwish" <darwi@linutronix.de>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/2] x86/fred: enable FRED by default
Date: Tue, 24 Mar 2026 10:19:00 -0700 [thread overview]
Message-ID: <8cba266d-4d3d-4058-a4b4-b937395e50e3@intel.com> (raw)
In-Reply-To: <C6340C57-DEB3-4A1B-A2FE-28CC1D1591C7@zytor.com>
On 3/24/2026 12:50 AM, H. Peter Anvin wrote:
Giving it one last try if I can change your mind :)
> On March 23, 2026 10:08:42 PM PDT, Sohil Mehta <sohil.mehta@intel.com> wrote:
>> On 3/23/2026 8:52 PM, H. Peter Anvin wrote:
>>>>> Nit: Would it be better to compare with "off" rather than not on?
>>>>
>>>> +1 :)
>>>>
>>>
>>> It would change the meaning of something like "fred=0" though.
>>>
>>
>> I don't believe we have ever supported fred=0 or fred=1, did we?
>>
>> Also, I am not sure about letting userspace be creative with command
>> line parameters :) For example, fred=yes and fred=enable will both pass
>> the same check and cause FRED to be disabled.
>
> Unfortunately right now we *are* being creative: anytime but the exact string "on" disables FRED.
You are right, we are accepting invalid inputs today. There is a slight
difference though. The default right now is FRED disabled. So any
invalid input would not change the kernel default. Only fred=on enables
the feature.
With FRED proposed to be default on, I think we should match the above
and only let fred=off disable it. All other inputs should be ignored.
> This is a general problem.
I agree. In general, we shouldn't even need special command line
parameters to *disable* features. clearcpuid=fred would have been
equivalent to fred=off if it didn't taint the kernel. I don't know the
exact history about why the taint is needed.
> In the kernel; overall I feel promoting foo= syntax for booleans, which was not the original style, was a mistake, but here we are.
>
> Anyway, I don't have a strong preference and I think we can leave that policy decision to the maintainers.
>
Yes, that's completely fine with me. I won't push for it any further.
next prev parent reply other threads:[~2026-03-24 17:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 20:15 H. Peter Anvin
2026-03-23 20:15 ` [PATCH 1/2] " H. Peter Anvin
2026-03-23 20:15 ` [PATCH 2/2] x86/Kconfig: tighten up wording of the CONFIG_X86_FRED help text H. Peter Anvin
2026-03-23 20:24 ` [PATCH 0/2] x86/fred: enable FRED by default Peter Zijlstra
2026-03-24 1:01 ` Sohil Mehta
2026-03-24 3:05 ` Xin Li
2026-03-24 3:52 ` H. Peter Anvin
2026-03-24 5:08 ` Sohil Mehta
2026-03-24 6:34 ` Sohil Mehta
2026-03-24 7:50 ` H. Peter Anvin
2026-03-24 17:19 ` Sohil Mehta [this message]
2026-03-24 19:53 ` Borislav Petkov
2026-03-25 16:22 ` H. Peter Anvin
2026-03-25 16:30 ` Borislav Petkov
2026-03-25 16:41 ` H. Peter Anvin
2026-03-25 17:07 ` Sohil Mehta
2026-03-24 19:50 ` 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=8cba266d-4d3d-4058-a4b4-b937395e50e3@intel.com \
--to=sohil.mehta@intel.com \
--cc=bp@alien8.de \
--cc=darwi@linutronix.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--cc=xin@zytor.com \
/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®