Commit 8191016
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: 2b3b76b ("perf/x86/intel/uncore: Add Ice Lake server uncore support")
Fixes: ee49532 ("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.com1 parent f797f05 commit 8191016
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4807 | 4807 | | |
4808 | 4808 | | |
4809 | 4809 | | |
4810 | | - | |
| 4810 | + | |
4811 | 4811 | | |
4812 | 4812 | | |
4813 | | - | |
| 4813 | + | |
4814 | 4814 | | |
4815 | 4815 | | |
4816 | 4816 | | |
| |||
5268 | 5268 | | |
5269 | 5269 | | |
5270 | 5270 | | |
5271 | | - | |
| 5271 | + | |
5272 | 5272 | | |
5273 | 5273 | | |
5274 | | - | |
| 5274 | + | |
5275 | 5275 | | |
5276 | 5276 | | |
5277 | 5277 | | |
5278 | | - | |
| 5278 | + | |
5279 | 5279 | | |
5280 | 5280 | | |
5281 | | - | |
| 5281 | + | |
5282 | 5282 | | |
5283 | 5283 | | |
5284 | 5284 | | |
| |||
0 commit comments