Commit e605f20
CKI KWF Bot
Merge: cpufreq: intel_pstate: Check IDA only before MSR_IA32_PERF_CTL writes
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7634
JIRA: https://issues.redhat.com/browse/RHEL-128549
commit 4b747cc
Author: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Date: Mon Nov 10 17:08:40 2025 -0800
cpufreq: intel_pstate: Check IDA only before MSR_IA32_PERF_CTL writes
Commit ac4e04d ("cpufreq: intel_pstate: Unchecked MSR aceess in
legacy mode") introduced a check for feature X86_FEATURE_IDA to verify
turbo mode support. Although this is the correct way to check for turbo
mode support, it causes issues on some platforms that disable turbo
during OS boot, but enable it later [1]. Before adding this feature
check, users were able to get turbo mode frequencies by writing 0 to
/sys/devices/system/cpu/intel_pstate/no_turbo post-boot.
To restore the old behavior on the affected systems while still
addressing the unchecked MSR issue on some Skylake-X systems, check
X86_FEATURE_IDA only immediately before updates of MSR_IA32_PERF_CTL
that may involve setting the Turbo Engage Bit (bit 32).
Fixes: ac4e04d ("cpufreq: intel_pstate: Unchecked MSR aceess in legacy mode")
Reported-by: Aaron Rainbolt <arainbolt@kfocus.org>
Closes: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2122531 [1]
Tested-by: Aaron Rainbolt <arainbolt@kfocus.org>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
[ rjw: Subject adjustment, changelog edits ]
Link: https://patch.msgid.link/20251111010840.141490-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 4b747cc)
Assisted-by: Patchpal
Signed-off-by: David Arcari <darcari@redhat.com>
Approved-by: Steve Best <sbest@redhat.com>
Approved-by: Tony Camuso <tcamuso@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | 607 | | |
611 | 608 | | |
612 | 609 | | |
| |||
2151 | 2148 | | |
2152 | 2149 | | |
2153 | 2150 | | |
2154 | | - | |
| 2151 | + | |
| 2152 | + | |
2155 | 2153 | | |
2156 | 2154 | | |
2157 | 2155 | | |
| |||
2316 | 2314 | | |
2317 | 2315 | | |
2318 | 2316 | | |
2319 | | - | |
| 2317 | + | |
| 2318 | + | |
2320 | 2319 | | |
2321 | 2320 | | |
2322 | 2321 | | |
| |||
0 commit comments