From: Ingo Molnar <mingo@kernel.org>
To: Dave Hansen <dave.hansen@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
linux-kernel@vger.kernel.org, x86@kernel.org,
andrew.cooper3@citrix.com, Len Brown <len.brown@intel.com>,
Peter Zijlstra <peterz@infradead.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
stable@vger.kernel.org
Subject: Re: [PATCH] Handle Ice Lake MONITOR erratum
Date: Tue, 22 Apr 2025 21:35:06 +0200 [thread overview]
Message-ID: <aAfvalru47h7Qffk@gmail.com> (raw)
In-Reply-To: <4ea35cc4-1720-494c-9d90-e4669c8cde08@intel.com>
* Dave Hansen <dave.hansen@intel.com> wrote:
> On 4/21/25 23:46, Ingo Molnar wrote:
> >> /*
> >> + * These CPUs have buggy MWAIT/MONITOR implementations that
> >> + * usually manifest as hangs or stalls at boot.
> >> + */
> >> +#define MWAIT_VFM(_vfm) \
> >> + X86_MATCH_VFM_FEATURE(_vfm, X86_FEATURE_MWAIT, 0)
> >> +static const struct x86_cpu_id monitor_bug_list[] = {
> >> + MWAIT_VFM(INTEL_ATOM_GOLDMONT),
> >> + MWAIT_VFM(INTEL_LUNARLAKE_M),
> >> + MWAIT_VFM(INTEL_ICELAKE_X), /* Erratum ICX143 */
> >> + {},
> >> +};
> > While it's just an internal helper, macro names should still be
> > intuitive:
> >
> > s/MWAIT_VFM
> > /VFM_MWAIT_BUG
>
> The current convention is to end with the thing that's being matched,
> like "_FEATURE" or "_VFM" in the X86_MATCH*() macros. That's why I
> ordered it the way I did.
>
> As for including "BUG", the _macro_ doesn't match CPUs with the bug.
> It's just matching CPUs with the specified VFM that have MWAIT. It could
> (theoretically) get used for non-bug things so I don't think it's
> intuitive to put "BUG" in the name.
Oh, that makes sense - objection withdrawn.
Thanks,
Ingo
next prev parent reply other threads:[~2025-04-22 19:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-21 19:22 [PATCH] Handle Ice Lake MONITOR erratum Dave Hansen
2025-04-21 19:32 ` Andrew Cooper
2025-04-21 23:02 ` srinivas pandruvada
2025-04-22 6:46 ` Ingo Molnar
2025-04-22 14:18 ` Dave Hansen
2025-04-22 19:35 ` Ingo Molnar [this message]
2026-05-28 3:06 ` Jim Mattson
2026-05-28 3:36 ` Dave Hansen
2026-05-28 16:03 ` Andrew Cooper
2026-05-28 17:47 ` Jim Mattson
-- strict thread matches above, loose matches on Subject: below --
2025-04-25 3:08 Christian Ludloff
2025-05-01 20:33 ` Dave Hansen
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=aAfvalru47h7Qffk@gmail.com \
--to=mingo@kernel.org \
--cc=andrew.cooper3@citrix.com \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rafael.j.wysocki@intel.com \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=stable@vger.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 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.