]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
powerpc/perf: POWER9 PMU stops after idle workaround
authorNicholas Piggin <npiggin@gmail.com>
Thu, 20 Jul 2017 01:53:22 +0000 (11:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 4 Aug 2017 02:52:26 +0000 (12:52 +1000)
commit09539f9b123652e969894d6299ae0df2fe12cb5d
treed48126ca0b6ab5d0a8e692deeaa52fb960bc59a4
parentf29bb7861a5107cc1afbf5a565c3109aa88d5984
powerpc/perf: POWER9 PMU stops after idle workaround

POWER9 DD2 PMU can stop after a state-loss idle in some conditions.

A solution is to set then clear MMCRA[60] after wake from state-loss
idle. MMCRA[60] is a non-architected bit, see the user manual for
details.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Acked-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S