aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/test_emulate_step.c
diff options
context:
space:
mode:
authorAthira Rajeev <[email protected]>2020-07-17 10:38:23 -0400
committerMichael Ellerman <[email protected]>2020-07-22 21:56:42 +1000
commit1cade527f6e9bec6a6412d0641643c359ada8096 (patch)
tree9d5f4e5e45d68ac56c36fa8872e895e595db7c62 /arch/powerpc/lib/test_emulate_step.c
parent80350a4bac992e3404067d31ff901ae9ff76aaa8 (diff)
powerpc/perf: BHRB control to disable BHRB logic when not used
PowerISA v3.1 has few updates for the Branch History Rolling Buffer(BHRB). BHRB disable is controlled via Monitor Mode Control Register A (MMCRA) bit, namely "BHRB Recording Disable (BHRBRD)". This field controls whether BHRB entries are written when BHRB recording is enabled by other bits. This patch implements support for this BHRB disable bit. By setting 0b1 to this bit will disable the BHRB and by setting 0b0 to this bit will have BHRB enabled. This addresses backward compatibility (for older OS), since this bit will be cleared and hardware will be writing to BHRB by default. This patch addresses changes to set MMCRA (BHRBRD) at boot for power10 (there by the core will run faster) and enable this feature only on runtime ie, on explicit need from user. Also save/restore MMCRA in the restore path of state-loss idle state to make sure we keep BHRB disabled if it was not enabled on request at runtime. Signed-off-by: Athira Rajeev <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/test_emulate_step.c')
0 files changed, 0 insertions, 0 deletions