]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/tm: Fix HFSCR bit for no suspend case
authorMichael Neuling <mikey@neuling.org>
Tue, 11 Sep 2018 03:07:56 +0000 (13:07 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:12:47 +0000 (11:12 -0800)
commitba5a3866a609f3a8f1aec572d5b565ff7fbb4554
tree0fc253560ee073e10838b567f520bb1ae4919a73
parentc0668860758ead905b998dc78e9e61a814ff43fa
powerpc/tm: Fix HFSCR bit for no suspend case

commit dd9a8c5a87395b6f05552c3b44e42fdc95760552 upstream.

Currently on P9N DD2.1 we end up taking infinite TM facility
unavailable exceptions on the first TM usage by userspace.

In the special case of TM no suspend (P9N DD2.1), Linux is told TM is
off via CPU dt-ftrs but told to (partially) use it via
OPAL_REINIT_CPUS_TM_SUSPEND_DISABLED. So HFSCR[TM] will be off from
dt-ftrs but we need to turn it on for the no suspend case.

This patch fixes this by enabling HFSCR TM in this case.

Cc: stable@vger.kernel.org # 4.15+
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/setup_64.c