]> git.itanic.dy.fi Git - linux-stable/commit
perf/x86/uncore: Correct the number of CHAs on SPR
authorKan Liang <kan.liang@linux.intel.com>
Mon, 8 May 2023 14:02:06 +0000 (07:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 12:55:31 +0000 (13:55 +0100)
commita9ffd42eb9abe593c46ca8b66a251713cb901d26
treef7a6d8a4f8a98da60939ed102aff104e10356449
parent277f206bb874e25fc65f2c27c3e033d5284539f8
perf/x86/uncore: Correct the number of CHAs on SPR

commit 38776cc45eb7603df4735a0410f42cffff8e71a1 upstream.

The number of CHAs from the discovery table on some SPR variants is
incorrect, because of a firmware issue. An accurate number can be read
from the MSR UNC_CBO_CONFIG.

Fixes: 949b11381f81 ("perf/x86/intel/uncore: Add Sapphire Rapids server CHA support")
Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Stephane Eranian <eranian@google.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230508140206.283708-1-kan.liang@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/events/intel/uncore_snbep.c