]> www.infradead.org Git - users/hch/misc.git/commit
perf/x86/intel/uncore: Fix the scale of IIO free running counters on SPR
authorKan Liang <kan.liang@linux.intel.com>
Wed, 16 Apr 2025 14:24:26 +0000 (07:24 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 17 Apr 2025 10:57:32 +0000 (12:57 +0200)
commit506f981ab40f0b03a11a640cfd77f48b09aff330
treed5fba8598f3fc8be6adfcf8c5fba63ec8895ae19
parent32c7f1150225694d95a51110a93be25db03bb5db
perf/x86/intel/uncore: Fix the scale of IIO free running counters on SPR

The scale of IIO bandwidth in free running counters is inherited from
the ICX. The counter increments for every 32 bytes rather than 4 bytes.

The IIO bandwidth out free running counters don't increment with a
consistent size. The increment depends on the requested size. It's
impossible to find a fixed increment. Remove it from the event_descs.

Fixes: 0378c93a92e2 ("perf/x86/intel/uncore: Support IIO free-running counters on Sapphire Rapids server")
Reported-by: Tang Jun <dukang.tj@alibaba-inc.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250416142426.3933977-3-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c