mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
powercap: RAPL: fix invalid initialization for pl4_supported field
[ Upstream commitd05b5e0baf] The current initialization of the struct x86_cpu_id via pl4_support_ids[] is partial and wrong. It is initializing "stepping" field with "X86_FEATURE_ANY" instead of "feature" field. Use X86_MATCH_INTEL_FAM6_MODEL macro instead of initializing each field of the struct x86_cpu_id for pl4_supported list of CPUs. This X86_MATCH_INTEL_FAM6_MODEL macro internally uses another macro X86_MATCH_VENDOR_FAM_MODEL_FEATURE for X86 based CPU matching with appropriate initialized values. Reported-by: Dave Hansen <dave.hansen@intel.com> Link: https://lore.kernel.org/lkml/28ead36b-2d9e-1a36-6f4e-04684e420260@intel.com Fixes:eb52bc2ae5("powercap: RAPL: Add Power Limit4 support for Meteor Lake SoC") Fixes:b08b95cf30("powercap: RAPL: Add Power Limit4 support for Alder Lake-N and Raptor Lake-P") Fixes:5157559069("powercap: RAPL: Add Power Limit4 support for RaptorLake") Fixes:1cc5b9a411("powercap: Add Power Limit4 support for Alder Lake SoC") Fixes:8365a898fe("powercap: Add Power Limit4 support") Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
48a7c36959
commit
fb27405d60
1 changed files with 8 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue