Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pm-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management fix from Rafael Wysocki:
"Fix an incorrect warning emitted by the amd-pstate driver on
processors that don't support X86_FEATURE_CPPC (Gautham Shenoy)"

* tag 'pm-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
cpufreq/amd-pstate: Remove warning for X86_FEATURE_CPPC on certain Zen models

+24 -10
+24 -10
drivers/cpufreq/amd-pstate.c
··· 1834 1834 } 1835 1835 1836 1836 /* 1837 - * If the CPPC feature is disabled in the BIOS for processors that support MSR-based CPPC, 1838 - * the AMD Pstate driver may not function correctly. 1839 - * Check the CPPC flag and display a warning message if the platform supports CPPC. 1840 - * Note: below checking code will not abort the driver registeration process because of 1841 - * the code is added for debugging purposes. 1837 + * If the CPPC feature is disabled in the BIOS for processors 1838 + * that support MSR-based CPPC, the AMD Pstate driver may not 1839 + * function correctly. 1840 + * 1841 + * For such processors, check the CPPC flag and display a 1842 + * warning message if the platform supports CPPC. 1843 + * 1844 + * Note: The code check below will not abort the driver 1845 + * registration process because of the code is added for 1846 + * debugging purposes. Besides, it may still be possible for 1847 + * the driver to work using the shared-memory mechanism. 1842 1848 */ 1843 1849 if (!cpu_feature_enabled(X86_FEATURE_CPPC)) { 1844 - if (cpu_feature_enabled(X86_FEATURE_ZEN1) || cpu_feature_enabled(X86_FEATURE_ZEN2)) { 1845 - if (c->x86_model > 0x60 && c->x86_model < 0xaf) 1850 + if (cpu_feature_enabled(X86_FEATURE_ZEN2)) { 1851 + switch (c->x86_model) { 1852 + case 0x60 ... 0x6F: 1853 + case 0x80 ... 0xAF: 1846 1854 warn = true; 1847 - } else if (cpu_feature_enabled(X86_FEATURE_ZEN3) || cpu_feature_enabled(X86_FEATURE_ZEN4)) { 1848 - if ((c->x86_model > 0x10 && c->x86_model < 0x1F) || 1849 - (c->x86_model > 0x40 && c->x86_model < 0xaf)) 1855 + break; 1856 + } 1857 + } else if (cpu_feature_enabled(X86_FEATURE_ZEN3) || 1858 + cpu_feature_enabled(X86_FEATURE_ZEN4)) { 1859 + switch (c->x86_model) { 1860 + case 0x10 ... 0x1F: 1861 + case 0x40 ... 0xAF: 1850 1862 warn = true; 1863 + break; 1864 + } 1851 1865 } else if (cpu_feature_enabled(X86_FEATURE_ZEN5)) { 1852 1866 warn = true; 1853 1867 }