]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Fix the scale of the IMC free-running events
authorKan Liang <kan.liang@linux.intel.com>
Mon, 28 Sep 2020 13:32:40 +0000 (06:32 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 29 Sep 2020 07:57:02 +0000 (09:57 +0200)
commitf7233574ab1a66da328896136d70a213f7810f49
tree7be28740f6e59837c99e8406d4cea7bcb6f4930e
parentc6a5a2597c02853b75183468fd16e3f97fafeadb
perf/x86/intel/uncore: Fix the scale of the IMC free-running events

The "MiB" result of the IMC free-running bandwidth events,
uncore_imc_free_running/read/ and uncore_imc_free_running/write/ are 16
times too small.

The "MiB" value equals the raw IMC free-running bandwidth counter value
times a "scale" which is inaccurate.

The IMC free-running bandwidth events should be incremented per 64B
cache line, not DWs (4 bytes). The "scale" should be 6.103515625e-5.
Fix the "scale" for both Snow Ridge and Ice Lake.

Fixes: 773499fa8dbb ("perf/x86/intel/uncore: Add Ice Lake server uncore support")
Fixes: 9206f7a55359 ("perf/x86/intel/uncore: Add IMC uncore support for Snow Ridge")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200928133240.12977-1-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c