]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: intel_pstate: Improve warning message on HWP-disabled hybrid CPUs
authorYohei Kojima <yohei.kojima@sony.com>
Fri, 22 May 2026 00:15:58 +0000 (09:15 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 May 2026 16:45:32 +0000 (18:45 +0200)
Improve warning message on HWP-disabled hybrid processors to state that
intel_pstate requires HWP to be enabled on such processors [1].

Previously it warned that "intel_pstate: CPU model not supported", but
it was misleading.

Link: https://docs.kernel.org/admin-guide/pm/intel_pstate.html
Signed-off-by: Yohei Kojima <yohei.kojima@sony.com>
[ rjw: Changelog tweaks ]
Link: https://patch.msgid.link/87f69971a9bf89fb4b51f128e8ae519cbaf5894e.1779406085.git.yohei.kojima@sony.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index 0fbbdbd5765cfb27d6785cdedabc33f3d54ecdcd..8dc22a65e025815ecfde72080355b0066ec0e19a 100644 (file)
@@ -3826,6 +3826,12 @@ static int __init intel_pstate_init(void)
                if (no_load)
                        return -ENODEV;
 
+               id = x86_match_cpu(intel_hybrid_scaling_factor);
+               if (id) {
+                       pr_info("HWP-disabled hybrid CPU is not supported\n");
+                       return -ENODEV;
+               }
+
                id = x86_match_cpu(intel_pstate_cpu_ids);
                if (!id) {
                        pr_info("CPU model not supported\n");