From: "Limonciello, Mario" <Mario.Limonciello@amd.com>
To: Dave Hansen <dave.hansen@intel.com>, Andreas Mohr <andi@lisas.de>
Cc: "Nayak, K Prateek" <KPrateek.Nayak@amd.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"rafael@kernel.org" <rafael@kernel.org>,
"lenb@kernel.org" <lenb@kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"bp@alien8.de" <bp@alien8.de>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"puwen@hygon.cn" <puwen@hygon.cn>,
"peterz@infradead.org" <peterz@infradead.org>,
"rui.zhang@intel.com" <rui.zhang@intel.com>,
"gpiccoli@igalia.com" <gpiccoli@igalia.com>,
"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
"Narayan, Ananth" <Ananth.Narayan@amd.com>,
"Shenoy, Gautham Ranjal" <gautham.shenoy@amd.com>,
"Ong, Calvin" <Calvin.Ong@amd.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: RE: [PATCH] ACPI: processor_idle: Skip dummy wait for processors based on the Zen microarchitecture
Date: Thu, 22 Sep 2022 21:38:11 +0000 [thread overview]
Message-ID: <MN0PR12MB61013DC656891259F5D5FA96E24E9@MN0PR12MB6101.namprd12.prod.outlook.com> (raw)
In-Reply-To: <4d61b9c0-ee00-c5f6-bef1-622b80c79714@intel.com>
[Public]
> -----Original Message-----
> From: Dave Hansen <dave.hansen@intel.com>
> Sent: Thursday, September 22, 2022 16:22
> To: Andreas Mohr <andi@lisas.de>
> Cc: Nayak, K Prateek <KPrateek.Nayak@amd.com>; linux-
> kernel@vger.kernel.org; rafael@kernel.org; lenb@kernel.org; linux-
> acpi@vger.kernel.org; linux-pm@vger.kernel.org;
> dave.hansen@linux.intel.com; bp@alien8.de; tglx@linutronix.de;
> puwen@hygon.cn; Limonciello, Mario <Mario.Limonciello@amd.com>;
> peterz@infradead.org; rui.zhang@intel.com; gpiccoli@igalia.com;
> daniel.lezcano@linaro.org; Narayan, Ananth <Ananth.Narayan@amd.com>;
> Shenoy, Gautham Ranjal <gautham.shenoy@amd.com>; Ong, Calvin
> <Calvin.Ong@amd.com>; stable@vger.kernel.org;
> regressions@lists.linux.dev
> Subject: Re: [PATCH] ACPI: processor_idle: Skip dummy wait for processors
> based on the Zen microarchitecture
>
> On 9/22/22 13:10, Andreas Mohr wrote:
> > (- but then what about other more modern chipsets?)
> >
> > --> we need to achieve (hopefully sufficiently precisely) a solution which
> > takes into account Zen3 STPCLK# improvements while
> > preserving "accepted" behaviour/requirements on *all* STPCLK#-
> hampered chipsets
> > ("STPCLK# I/O wait is default/traditional handling"?).
>
> Ideally, sure. But, we're talking about theoretically regressing the
> idle behavior of some indeterminate set of old systems, the majority of
> which are sitting in a puddle of capacitor goo at the bottom of a
> landfill right now. This is far from an ideal situation.
>
> FWIW, I'd much rather do something like
>
> if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
> (boot_cpu_data.x86_model >= 0xF))
> return;
>
> inl(slow_whatever);
>
> than a Zen check. AMD has, as far as I know, been a lot more sequential
> and sane about model numbers than Intel, and there are some AMD model
> number range checks in the codebase today.
>
> A check like this would also be _relatively_ future-proof in the case
> that X86_FEATURE_ZEN stops getting set on future AMD CPUs. That's a lot
> more likely than AMD going and reusing a <0xF model.
If you're going to use a family check instead it should be 0x17 or newer.
(c->x86 >= 0x17)
That does match what's used to set X86_FEATURE_ZEN at least then right now too.
next prev parent reply other threads:[~2022-09-22 21:38 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-21 6:36 [PATCH] ACPI: processor_idle: Skip dummy wait for processors based on the Zen microarchitecture K Prateek Nayak
2022-09-21 8:47 ` Borislav Petkov
2022-09-21 10:39 ` K Prateek Nayak
2022-09-21 13:10 ` Borislav Petkov
2022-09-21 14:15 ` Dave Hansen
2022-09-21 19:51 ` Borislav Petkov
2022-09-21 19:55 ` Limonciello, Mario
2022-09-22 3:58 ` Ananth Narayan
2022-09-22 5:44 ` K Prateek Nayak
[not found] ` <20220923160106.9297-1-ermorton@ericmoronsm1mbp.amd.com>
2022-09-23 16:15 ` Ananth Narayan
2022-09-21 15:00 ` Peter Zijlstra
2022-09-21 19:48 ` Borislav Petkov
2022-09-22 8:17 ` Peter Zijlstra
2022-09-22 15:21 ` Rafael J. Wysocki
2022-09-22 15:36 ` Borislav Petkov
2022-09-22 15:53 ` Rafael J. Wysocki
2022-09-22 16:36 ` Dave Hansen
2022-09-22 16:44 ` Dave Hansen
2022-09-22 16:54 ` K Prateek Nayak
2022-09-22 17:01 ` Dave Hansen
2022-09-22 17:48 ` Limonciello, Mario
2022-09-22 18:17 ` Dave Hansen
2022-09-22 18:28 ` Limonciello, Mario
2022-09-23 11:47 ` Ananth Narayan
2022-09-22 19:42 ` Andreas Mohr
2022-09-22 20:10 ` Andreas Mohr
2022-09-22 21:21 ` Dave Hansen
2022-09-22 21:38 ` Limonciello, Mario [this message]
2022-09-23 7:42 ` Peter Zijlstra
2022-09-23 7:57 ` Peter Zijlstra
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=MN0PR12MB61013DC656891259F5D5FA96E24E9@MN0PR12MB6101.namprd12.prod.outlook.com \
--to=mario.limonciello@amd.com \
--cc=Ananth.Narayan@amd.com \
--cc=Calvin.Ong@amd.com \
--cc=KPrateek.Nayak@amd.com \
--cc=andi@lisas.de \
--cc=bp@alien8.de \
--cc=daniel.lezcano@linaro.org \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=gautham.shenoy@amd.com \
--cc=gpiccoli@igalia.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=puwen@hygon.cn \
--cc=rafael@kernel.org \
--cc=regressions@lists.linux.dev \
--cc=rui.zhang@intel.com \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
/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.