From: "Li,Rongqing(ACG CCN)" <lirongqing@baidu.com>
To: "srinivas pandruvada" <srinivas.pandruvada@linux.intel.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"platform-driver-x86@vger.kernel.org"
<platform-driver-x86@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: 答复: [外部邮件] Re: [PATCH][RFC] platform/x86: intel_speed_select: Use static_cpu_has for HWP check
Date: Sat, 28 Feb 2026 07:22:20 +0000 [thread overview]
Message-ID: <a9247ce471e940f2bb0af122277c1733@baidu.com> (raw)
In-Reply-To: <fa10ba0b396d5c67bf1762e06869950496d85280.camel@linux.intel.com>
> That is not same. Presence of HWP feature means that HWP can be enabled on
> this SoC. But user can boot with option to not enable HWP by intel_pstate
> driver.
> If HWP is not enabled, then SST features can't be enabled.
>
If HWP is not enabled, Can the PCT is enabled from BIOS?
In my machine, HWP is disabled, but PCT is enabled; and can not disable PCT by " ./intel-speed-select core-power disable"
[root@tjzj-acg-tge2026-01-281zrfild.tjzj.baidu.com ~]# rdmsr 0x770
0
[root@tjzj-acg-tge2026-01-281zrfild.tjzj.baidu.com ~]# cpupower monitor
| Nehalem || Mperf || Idle_Stats
PKG|CORE| CPU| C3 | C6 | PC3 | PC6 || C0 | Cx | Freq || POLL | C1
0| 0| 0| 0.00| 0.00| 0.00| 0.00|| 0.64| 99.36| 4598|| 0.00| 99.50
0| 0| 128| 0.00| 0.00| 0.00| 0.00|| 1.98| 98.02| 4581|| 0.00| 98.10
0| 1| 1| 0.00| 0.00| 0.00| 0.00|| 99.38| 0.62| 2299|| 0.00| 0.00
0| 1| 129| 0.00| 0.00| 0.00| 0.00|| 99.18| 0.82| 2299|| 0.00| 0.00
0| 2| 2| 0.00| 0.00| 0.00| 0.00|| 99.38| 0.62| 2299|| 0.00| 0.00
0| 2| 130| 0.00| 0.00| 0.00| 0.00|| 99.18| 0.82| 2299|| 0.00| 0.00
0| 3| 3| 0.00| 0.00| 0.00| 0.00|| 3.13| 96.87| 2300|| 0.00| 96.90
0| 3| 131| 0.00| 0.00| 0.00| 0.00|| 0.01| 99.99| 2754|| 0.00| 100.2
0| 4| 4| 0.00| 0.00| 0.00| 0.00|| 1.38| 98.62| 2301|| 0.00| 98.81
0| 4| 132| 0.00| 0.00| 0.00| 0.00|| 0.18| 99.82| 2321|| 0.00| 100.0
0| 5| 5| 0.00| 0.00| 0.00| 0.00|| 0.61| 99.39| 2305|| 0.00| 100.1
0| 5| 133| 0.00| 0.00| 0.00| 0.00|| 5.13| 94.87| 2299|| 0.02| 95.02
0| 6| 6| 0.00| 0.00| 0.00| 0.00|| 0.15| 99.85| 2321|| 0.00| 100.5
0| 6| 134| 0.00| 0.00| 0.00| 0.00|| 2.28| 97.72| 2300|| 0.00| 98.00
0| 7| 7| 0.00| 0.00| 0.00| 0.00|| 0.67| 99.33| 2305|| 0.00| 99.76
0| 7| 135| 0.00| 0.00| 0.00| 0.00|| 0.20| 99.80| 2319|| 0.00| 100.0
0| 8| 8| 0.00| 0.00| 0.00| 0.00|| 10.16| 89.84| 2299|| 0.02| 89.91
0| 8| 136| 0.00| 0.00| 0.00| 0.00|| 0.01| 99.99| 2786|| 0.00| 100.2
0| 9| 9| 0.00| 0.00| 0.00| 0.00|| 0.04| 99.96| 2393|| 0.00| 100.4
0| 9| 137| 0.00| 0.00| 0.00| 0.00|| 2.17| 97.83| 2300|| 0.00| 97.84
[Li,Rongqing]
> Thanks,
> Srinivas
>
> > Signed-off-by: Li RongQing <lirongqing@baidu.com>
> > ---
> > drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 5 +---
> > -
> > 1 file changed, 1 insertion(+), 4 deletions(-)
> >
> > diff --git
> > a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
> > b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
> > index b8cdaa2..416620b 100644
> > --- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
> > +++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
> > @@ -556,10 +556,7 @@ static struct tpmi_per_power_domain_info
> > *get_instance(int pkg_id, int power_dom
> >
> > static bool disable_dynamic_sst_features(void)
> > {
> > - u64 value;
> > -
> > - rdmsrq(MSR_PM_ENABLE, value);
> > - return !(value & 0x1);
> > + return !static_cpu_has(X86_FEATURE_HWP);
> > }
> >
> > #define _read_cp_info(name_str, name, offset, start, width,
> > mult_factor)\
prev parent reply other threads:[~2026-02-28 7:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-28 3:51 lirongqing
2026-02-28 6:57 ` 答复: " Li,Rongqing(ACG CCN)
2026-02-28 7:02 ` srinivas pandruvada
2026-02-28 7:01 ` srinivas pandruvada
2026-02-28 7:22 ` Li,Rongqing(ACG CCN) [this message]
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=a9247ce471e940f2bb0af122277c1733@baidu.com \
--to=lirongqing@baidu.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.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®