From: Borislav Petkov <bp@alien8.de>
To: "Carroll, Lewis" <Lewis.Carroll@amd.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"peterz@infradead.org" <peterz@infradead.org>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"Karny, Wyes" <Wyes.Karny@amd.com>,
"Limonciello, Mario" <Mario.Limonciello@amd.com>,
"Shenoy, Gautham Ranjal" <gautham.shenoy@amd.com>,
"Narayan, Ananth" <Ananth.Narayan@amd.com>,
"Rao, Bharata Bhasker" <bharata@amd.com>,
"len.brown@intel.com" <len.brown@intel.com>,
"x86@kernel.org" <x86@kernel.org>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"mingo@redhat.com" <mingo@redhat.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"chang.seok.bae@intel.com" <chang.seok.bae@intel.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"metze@samba.org" <metze@samba.org>,
"zhengqi.arch@bytedance.com" <zhengqi.arch@bytedance.com>,
"mark.rutland@arm.com" <mark.rutland@arm.com>
Subject: Re: [PATCH] x86: Prefer MWAIT over HALT on AMD processors
Date: Wed, 6 Apr 2022 11:30:36 +0200 [thread overview]
Message-ID: <Yk1dvBS4BPCPYt+t@zn.tnic> (raw)
In-Reply-To: <MN2PR12MB394969DC4BAF9B91A0E8A560FAE49@MN2PR12MB3949.namprd12.prod.outlook.com>
On Tue, Apr 05, 2022 at 09:49:27PM +0000, Carroll, Lewis wrote:
> Just when I thought I was being thorough. Any of the above will block the
> cpuidle driver from loading. As will absence of _CST ACPI methods (add that
> as a fourth cause).
Yah, put that all in the text over prefer_mwait_c1_over_halt() pls.
> We will have to see what we can sanitize. The original performance observation
> (packet loss in a networking application) led to discovery of lots of cycles
> in the various go-to-sleep-via-halt and wake-from-halt-via-IPI functions. Wyes
> collected the raw data on the relative idle+wake-up latency and included that
> in the commit msg. Think of that delta as the root cause of the performance
> regression in this case.
You don't have to write novels - just leave enough breadcrumbs so that
people looking at this in the future know *why* this was done.
> Yes we are saying use MWAIT instead of HLT on all known (as of today) Zen
> uarch CPUs (AMD >= 17h and Hygon).
Wyes in his reply from today says that the logic is not that simple so
you folks need to define clearly which cases are we talking about here:
Zen uarch, MWAIT CPUID bit set/clear, MONITOR bug, <other feature bits>,
etc.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
next prev parent reply other threads:[~2022-04-06 13:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-05 13:00 [PATCH] x86: Prefer MWAIT over HALT on AMD processors Wyes Karny
2022-04-05 14:05 ` Borislav Petkov
2022-04-05 20:26 ` Carroll, Lewis
2022-04-05 20:38 ` Borislav Petkov
2022-04-05 21:49 ` Carroll, Lewis
2022-04-06 9:30 ` Borislav Petkov [this message]
2022-04-06 6:14 ` Wyes Karny
2022-04-06 9:25 ` Borislav Petkov
2022-04-05 14:07 ` Peter Zijlstra
2022-04-05 15:10 ` Dave Hansen
2022-04-05 15:34 ` Limonciello, Mario
2022-04-05 15:47 ` Dave Hansen
2022-04-05 20:40 ` Limonciello, Mario
2022-04-06 1:44 ` Thomas Gleixner
2022-04-06 14:23 ` Limonciello, Mario
2022-04-07 21:16 ` Dave Hansen
2022-04-08 1:24 ` Limonciello, Mario
2022-04-14 21:06 ` Limonciello, Mario
2022-04-07 2:19 ` Wen Pu
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=Yk1dvBS4BPCPYt+t@zn.tnic \
--to=bp@alien8.de \
--cc=Ananth.Narayan@amd.com \
--cc=Lewis.Carroll@amd.com \
--cc=Mario.Limonciello@amd.com \
--cc=Wyes.Karny@amd.com \
--cc=bharata@amd.com \
--cc=chang.seok.bae@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=gautham.shenoy@amd.com \
--cc=hpa@zytor.com \
--cc=keescook@chromium.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=metze@samba.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=zhengqi.arch@bytedance.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 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.