powerpc/perf: Fix disabling BHRB and instruction sampling
authorNicholas Piggin <npiggin@gmail.com>
Wed, 18 Oct 2023 15:34:23 +0000 (01:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Oct 2023 11:40:20 +0000 (22:40 +1100)
commitea142e590aec55ba40c5affb4d49e68c713c63dc
tree44dc69807c481f9b566a48b2f03e711b48dc742d
parentf01b0edd562ef5a05bae31fe3a296721f89af7d9
powerpc/perf: Fix disabling BHRB and instruction sampling

When the PMU is disabled, MMCRA is not updated to disable BHRB and
instruction sampling. This can lead to those features remaining enabled,
which can slow down a real or emulated CPU.

Fixes: 1cade527f6e9 ("powerpc/perf: BHRB control to disable BHRB logic when not used")
Cc: stable@vger.kernel.org # v5.9+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231018153423.298373-1-npiggin@gmail.com
arch/powerpc/perf/core-book3s.c