From: Len Brown Date: Fri, 11 Feb 2022 02:06:56 +0000 (-0500) Subject: tools/power turbostat: fix ICX DRAM power numbers X-Git-Tag: v5.19-rc1~182^2^2^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6397b6418935773a34b533b3348b03f4ce3d7050;p=thirdparty%2Flinux.git tools/power turbostat: fix ICX DRAM power numbers ICX (and its duplicates) require special hard-coded DRAM RAPL units, rather than using the generic RAPL energy units. Reported-by: Srinivas Pandruvada Signed-off-by: Len Brown --- diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index e194f3a0e2d7c..dbc01af5fd3d5 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -4430,6 +4430,7 @@ static double rapl_dram_energy_units_probe(int model, double rapl_energy_units) case INTEL_FAM6_BROADWELL_X: /* BDX */ case INTEL_FAM6_SKYLAKE_X: /* SKX */ case INTEL_FAM6_XEON_PHI_KNL: /* KNL */ + case INTEL_FAM6_ICELAKE_X: /* ICX */ return (rapl_dram_energy_units = 15.3 / 1000000); default: return (rapl_energy_units);