perf/x86/cstate: Add ICELAKE_X and ICELAKE_D support
authorZhang Rui <rui.zhang@intel.com>
Fri, 25 Jun 2021 13:32:47 +0000 (21:32 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 2 Jul 2021 13:58:33 +0000 (15:58 +0200)
commit87bf399f86ecf36cc84fbeb7027a2995af649d6e
treea54eff307580af8ef2a8d2e2e946c476c8c692e4
parent62fb9874f5da54fdb243003b386128037319b219
perf/x86/cstate: Add ICELAKE_X and ICELAKE_D support

Introduce icx_cstates for ICELAKE_X and ICELAKE_D, and also update the
comments.

On ICELAKE_X and ICELAKE_D, Core C1, Core C6, Package C2 and Package C6
Residency MSRs are supported.

This patch has been tested on real hardware.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Link: https://lkml.kernel.org/r/20210625133247.2813-1-rui.zhang@intel.com
arch/x86/events/intel/cstate.c