From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: "Li,Rongqing(ACG CCN)" <lirongqing@baidu.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: Fri, 27 Feb 2026 23:02:03 -0800 [thread overview]
Message-ID: <14c6d1ec06bde185c928e433c3d1fa2341be86b9.camel@linux.intel.com> (raw)
In-Reply-To: <ad6453bb815f4445bd80239e96c827e5@baidu.com>
On Sat, 2026-02-28 at 06:57 +0000, Li,Rongqing(ACG CCN) wrote:
> > 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)\
> > --
>
>
> static_cpu_has(X86_FEATURE_HWP) is different from value of
> MSR_PM_ENABLE, when intel_pstate=no_hwp is configured in kernel
> cmdline
>
> Sorry for the noise, please drop this patch;
>
No worries.
-Srinivas
> [Li,Rongqing]
>
>
> > 2.9.4
next prev parent reply other threads:[~2026-02-28 7:02 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 [this message]
2026-02-28 7:01 ` srinivas pandruvada
2026-02-28 7:22 ` 答复: [外部邮件] " Li,Rongqing(ACG CCN)
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=14c6d1ec06bde185c928e433c3d1fa2341be86b9.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lirongqing@baidu.com \
--cc=platform-driver-x86@vger.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 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®