From: Ingo Molnar <mingo@kernel.org>
To: Dave Hansen <dave.hansen@intel.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
LKML <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [PATCH v2] x86/idle: Remove MFENCEs for X86_BUG_CLFLUSH_MONITOR
Date: Wed, 2 Apr 2025 22:04:10 +0200 [thread overview]
Message-ID: <Z-2YOvIVDfttHFdq@gmail.com> (raw)
In-Reply-To: <67274a07-eac9-4d60-9737-c730c25a9fea@intel.com>
* Dave Hansen <dave.hansen@intel.com> wrote:
> On 4/2/25 10:24, Andrew Cooper wrote:
> ...
> > i.e. The SDM was incorrect at the time, and barriers should not have been
> > inserted. Double checking the original AAI65 errata (not available from
> > intel.com any more) shows no mention of barriers either.
> >
> > Note: If this were a general codepath, the MFENCEs would be needed, because
> > AMD CPUs of the same vintage do sport otherwise-unordered CLFLUSHs.
> >
> > Furthermore, use a plain alternative, rather than static_cpu_has_bug() and/or
> > no optimisation. The workaround is a single instruction.
>
> Nit: this never comes out and says that it removes the unnecessary
> barriers. But we can fix that up when we apply this by adding:
>
> Remove the unnecessary barriers. Furthermore, use a plain
> alternative, rather than static_cpu_has_bug() and/or
> no optimisation. The workaround is a single instruction.
So the title says it already:
x86/idle: Remove MFENCEs for X86_BUG_CLFLUSH_MONITOR
But I've added in your sentence as well, because there's no such thing
as too much clarity in a changelog. :-)
> Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Thanks!
Ingo
next prev parent reply other threads:[~2025-04-02 20:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-02 17:24 [PATCH v2] x86/idle: Remove MFENCEs for X86_BUG_CLFLUSH_MONITOR Andrew Cooper
2025-04-02 17:35 ` Dave Hansen
2025-04-02 20:04 ` Ingo Molnar [this message]
2025-04-02 19:35 ` [tip: x86/mm] x86/idle: Remove MFENCEs for X86_BUG_CLFLUSH_MONITOR in mwait_idle_with_hints() and prefer_mwait_c1_over_halt() tip-bot2 for Andrew Cooper
2025-04-02 20:32 ` tip-bot2 for Andrew Cooper
2025-04-04 14:14 ` [PATCH v2] x86/idle: Remove MFENCEs for X86_BUG_CLFLUSH_MONITOR Uros Bizjak
2025-04-04 14:16 ` Andrew Cooper
2025-04-04 14:49 ` Uros Bizjak
2025-04-06 17:21 ` Ingo Molnar
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=Z-2YOvIVDfttHFdq@gmail.com \
--to=mingo@kernel.org \
--cc=andrew.cooper3@citrix.com \
--cc=bp@alien8.de \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--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.