linux/arch/x86/events
Kan Liang b80d0c6e5b perf/x86/uncore: Don't WARN_ON_ONCE() for a broken discovery table
commit 5d515ee40c upstream.

The kernel warning message is triggered, when SPR MCC is used.

[   17.945331] ------------[ cut here ]------------
[   17.946305] WARNING: CPU: 65 PID: 1 at
arch/x86/events/intel/uncore_discovery.c:184
intel_uncore_has_discovery_tables+0x4c0/0x65c
[   17.946305] Modules linked in:
[   17.946305] CPU: 65 PID: 1 Comm: swapper/0 Not tainted
5.4.17-2136.313.1-X10-2c+ #4

It's caused by the broken discovery table of UPI.

The discovery tables are from hardware. Except for dropping the broken
information, there is nothing Linux can do. Using WARN_ON_ONCE() is
overkilled.

Use the pr_info() to replace WARN_ON_ONCE(), and specify what uncore unit
is dropped and the reason.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Petlan <mpetlan@redhat.com>
Link: https://lore.kernel.org/r/20230112200105.733466-6-kan.liang@linux.intel.com
Cc: Mahmoud Adam <mngyadam@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-12-20 17:00:13 +01:00
..
amd perf/x86/amd: Do not WARN() on every IRQ 2023-10-10 22:00:41 +02:00
intel perf/x86/uncore: Don't WARN_ON_ONCE() for a broken discovery table 2023-12-20 17:00:13 +01:00
zhaoxin x86/perf/zhaoxin: Add stepping check for ZXC 2023-03-10 09:32:45 +01:00
core.c perf/x86: Refuse to export capabilities for hybrid PMUs 2023-02-22 12:59:55 +01:00
Kconfig perf/x86/Kconfig: Fix indentation in the Kconfig file 2022-05-25 15:54:26 +02:00
Makefile perf/x86: Move branch classifier 2022-08-27 00:05:44 +02:00
msr.c perf/x86/msr: Add Emerald Rapids 2023-02-01 08:34:30 +01:00
perf_event.h Perf events updates for v6.1: 2022-10-10 09:27:46 -07:00
perf_event_flags.h x86/perf: Assert all platform event flags are within PERF_EVENT_FLAG_ARCH 2022-09-07 21:54:01 +02:00
probe.c perf/x86/rapl: Add msr mask support 2021-02-10 14:44:54 +01:00
probe.h perf/x86/rapl: Add msr mask support 2021-02-10 14:44:54 +01:00
rapl.c perf/x86/rapl: Add support for Intel Emerald Rapids 2023-01-24 07:24:32 +01:00
utils.c perf/x86/lbr: Filter vsyscall addresses 2023-10-19 23:08:56 +02:00