]> Git Repo - linux.git/commitdiff
tools/power turbostat: fix SPR PC6 limits
authorArtem Bityutskiy <[email protected]>
Tue, 26 Jul 2022 15:29:34 +0000 (18:29 +0300)
committerLen Brown <[email protected]>
Thu, 28 Jul 2022 18:37:29 +0000 (14:37 -0400)
Sapphire Rapids Xeon (SPR) supports 2 flavors of PC6 - PC6N (non-retention) and
PC6R (retention). Before this patch we used ICX package C-state limits, which
was wrong, because ICX has only one PC6 flavor. With this patch, we use SKX PC6
limits for SPR, because they are the same.

Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Len Brown <[email protected]>
tools/power/x86/turbostat/turbostat.c

index 3ec10d141abb143d8a70651d027addf7e5b439fd..05e993674015bc9906c5fe976fac57a7e8723fde 100644 (file)
@@ -3734,11 +3734,11 @@ int probe_nhm_msrs(unsigned int family, unsigned int model)
                has_misc_feature_control = 1;
                break;
        case INTEL_FAM6_SKYLAKE_X:      /* SKX */
+       case INTEL_FAM6_SAPPHIRERAPIDS_X:       /* SPR */
                pkg_cstate_limits = skx_pkg_cstate_limits;
                has_misc_feature_control = 1;
                break;
        case INTEL_FAM6_ICELAKE_X:      /* ICX */
-       case INTEL_FAM6_SAPPHIRERAPIDS_X:       /* SPR */
                pkg_cstate_limits = icx_pkg_cstate_limits;
                has_misc_feature_control = 1;
                break;
This page took 0.063132 seconds and 4 git commands to generate.