]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/x86/amd: Warn only on new bits set
authorBreno Leitao <leitao@debian.org>
Tue, 1 Oct 2024 14:10:19 +0000 (07:10 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 7 Oct 2024 07:28:46 +0000 (09:28 +0200)
commitde20037e1b3c2f2ca97b8c12b8c7bca8abd509a7
treef3669d058f21ce06394935296ed16368bcb71fee
parent6c74ca7aa81a23c613b8ca52bfe0a4b3734dd287
perf/x86/amd: Warn only on new bits set

Warning at every leaking bits can cause a flood of message, triggering
various stall-warning mechanisms to fire, including CSD locks, which
makes the machine to be unusable.

Track the bits that are being leaked, and only warn when a new bit is
set.

That said, this patch will help with the following issues:

1) It will tell us which bits are being set, so, it is easy to
   communicate it back to vendor, and to do a root-cause analyzes.

2) It avoid the machine to be unusable, because, worst case
   scenario, the user gets less than 60 WARNs (one per unhandled bit).

Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sandipan Das <sandipan.das@amd.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Link: https://lkml.kernel.org/r/20241001141020.2620361-1-leitao@debian.org
arch/x86/events/amd/core.c