History

perf/x86/cstate: Add Tiger Lake CPU support

Tiger Lake is the followon to Ice Lake. From the perspective of Intel cstate residency counters, there is nothing changed compared with Ice Lake. Share icl_cstates with Ice Lake. Update the comments for Tiger Lake. The External Design Specification (EDS) is not published yet. It comes from an authoritative internal source. The patch has been tested on real hardware.

Kan Liang committed 7 years ago

Commit 52e92f41 parent 0917b951 file · +11 −9Browse files

Unified · Split

arch/x86/events/intel/cstate.c+11−9
@@ -50,44 +50,44 @@ · 49 unmodified lines
5050 * MSR_CORE_C6_RESIDENCY: CORE C6 Residency Counter
5151 * perf code: 0x02
5252 * Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW,
53− * SKL,KNL,GLM,CNL,KBL,CML,ICL
53+ * SKL,KNL,GLM,CNL,KBL,CML,ICL,TGL
5454 * Scope: Core
5555 * MSR_CORE_C7_RESIDENCY: CORE C7 Residency Counter
5656 * perf code: 0x03
5757 * Available model: SNB,IVB,HSW,BDW,SKL,CNL,KBL,CML,
58− * ICL
58+ * ICL,TGL
5959 * Scope: Core
6060 * MSR_PKG_C2_RESIDENCY: Package C2 Residency Counter.
6161 * perf code: 0x00
6262 * Available model: SNB,IVB,HSW,BDW,SKL,KNL,GLM,CNL,
63− * KBL,CML,ICL
63+ * KBL,CML,ICL,TGL
6464 * Scope: Package (physical package)
6565 * MSR_PKG_C3_RESIDENCY: Package C3 Residency Counter.
6666 * perf code: 0x01
6767 * Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,KNL,
68− * GLM,CNL,KBL,CML,ICL
68+ * GLM,CNL,KBL,CML,ICL,TGL
6969 * Scope: Package (physical package)
7070 * MSR_PKG_C6_RESIDENCY: Package C6 Residency Counter.
7171 * perf code: 0x02
7272 * Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW
73− * SKL,KNL,GLM,CNL,KBL,CML,ICL
73+ * SKL,KNL,GLM,CNL,KBL,CML,ICL,TGL
7474 * Scope: Package (physical package)
7575 * MSR_PKG_C7_RESIDENCY: Package C7 Residency Counter.
7676 * perf code: 0x03
7777 * Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,CNL,
78− * KBL,CML,ICL
78+ * KBL,CML,ICL,TGL
7979 * Scope: Package (physical package)
8080 * MSR_PKG_C8_RESIDENCY: Package C8 Residency Counter.
8181 * perf code: 0x04
82− * Available model: HSW ULT,KBL,CNL,CML,ICL
82+ * Available model: HSW ULT,KBL,CNL,CML,ICL,TGL
8383 * Scope: Package (physical package)
8484 * MSR_PKG_C9_RESIDENCY: Package C9 Residency Counter.
8585 * perf code: 0x05
86− * Available model: HSW ULT,KBL,CNL,CML,ICL
86+ * Available model: HSW ULT,KBL,CNL,CML,ICL,TGL
8787 * Scope: Package (physical package)
8888 * MSR_PKG_C10_RESIDENCY: Package C10 Residency Counter.
8989 * perf code: 0x06
90− * Available model: HSW ULT,KBL,GLM,CNL,CML,ICL
90+ * Available model: HSW ULT,KBL,GLM,CNL,CML,ICL,TGL
9191 * Scope: Package (physical package)
9292 *
9393 */
@@ -645,6 +645,8 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = { · 551 unmodified lines
645645
646646 X86_CSTATES_MODEL(INTEL_FAM6_ICELAKE_L, icl_cstates),
647647 X86_CSTATES_MODEL(INTEL_FAM6_ICELAKE, icl_cstates),
648+ X86_CSTATES_MODEL(INTEL_FAM6_TIGERLAKE_L, icl_cstates),
649+ X86_CSTATES_MODEL(INTEL_FAM6_TIGERLAKE, icl_cstates),
648650 { },
649651 };
650652 MODULE_DEVICE_TABLE(x86cpu, intel_cstates_match);