You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
powercap: RAPL: fix invalid initialization for pl4_supported field
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 <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Fixes: eb52bc2 ("powercap: RAPL: Add Power Limit4 support for Meteor Lake SoC")
Fixes: b08b95c ("powercap: RAPL: Add Power Limit4 support for Alder Lake-N and Raptor Lake-P")
Fixes: 5157559 ("powercap: RAPL: Add Power Limit4 support for RaptorLake")
Fixes: 1cc5b9a ("powercap: Add Power Limit4 support for Alder Lake SoC")
Fixes: 8365a89 ("powercap: Add Power Limit4 support")
Signed-off-by: Sumeet Pawnikar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
0 commit comments