diff options
author | Gautham R. Shenoy <gautham.shenoy@amd.com> | 2024-08-28 15:40:35 +0530 |
---|---|---|
committer | Mario Limonciello <mario.limonciello@amd.com> | 2024-08-28 10:15:00 -0500 |
commit | 9c68a3b03e8109f3917fd35f39043499897d4a79 (patch) | |
tree | 61600e3d99b7a569305fd6e94f7f808e00bfccca /mm/debug.c | |
parent | 9983a9cd4d429dc9ca01770083c4c1f366214b65 (diff) |
cpufreq/amd-pstate: Remove warning for X86_FEATURE_CPPC on certain Zen models
commit bff7d13c190a ("cpufreq: amd-pstate: add debug message while
CPPC is supported and disabled by SBIOS") issues a warning on plaforms
where the X86_FEATURE_CPPC is expected to be enabled, but is not due
to it being disabled in the BIOS.
This feature bit corresponds to CPUID 0x80000008.ebx[27] which is a
reserved bit on the Zen1 processors and a reserved bit on Zen2 based
models 0x70-0x7F, and is expected to be cleared on these
platforms. Thus printing the warning message for these models when
X86_FEATURE_CPPC is unavailable is incorrect. Fix this.
Modify some of the comments, and use switch-case for model range
checking for improved readability while at it.
Fixes: bff7d13c190a ("cpufreq: amd-pstate: add debug message while CPPC is supported and disabled by SBIOS")
Cc: Xiaojian Du <xiaojian.du@amd.com>
Reported-by: David Wang <00107082@163.com>
Closes: https://lore.kernel.org/lkml/20240730140111.4491-1-00107082@163.com/
Signed-off-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Acked-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions