]> git.baikalelectronics.ru Git - kernel.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)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 14 Sep 2018 03:47:31 +0000 (13:47 +1000)
commitc05efffb2a9b860a7c6ddd09bd9fe5c02f727157
treeeffb7a0689569fd93c4329b3e4ba29e5731e421a
parentd9cd171e36a0a756e2d44073ffb1adf94fb7ed60
powerpc/tm: Fix HFSCR bit for no suspend case

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>
arch/powerpc/kernel/setup_64.c