[1/4] powerpc/tm: Add commandline option to disable hardware transactional memory
Michael Ellerman
patch-notifications at ellerman.id.au
Tue Oct 24 19:08:39 AEDT 2017
On Thu, 2017-10-12 at 10:17:16 UTC, Michael Ellerman wrote:
> From: Cyril Bur <cyrilbur at gmail.com>
>
> Currently the kernel relies on firmware to inform it whether or not the
> CPU supports HTM and as long as the kernel was built with
> CONFIG_PPC_TRANSACTIONAL_MEM=y then it will allow userspace to make
> use of the facility.
>
> There may be situations where it would be advantageous for the kernel
> to not allow userspace to use HTM, currently the only way to achieve
> this is to recompile the kernel with CONFIG_PPC_TRANSACTIONAL_MEM=n.
>
> This patch adds a simple commandline option so that HTM can be
> disabled at boot time.
>
> Signed-off-by: Cyril Bur <cyrilbur at gmail.com>
> [mpe: Simplify to a bool, move to prom.c, put doco in the right place.
> Always disable, regardless of initial state, to avoid user confusion.]
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
Series applied to powerpc next.
https://git.kernel.org/powerpc/c/07fd1761e1cd2b5ecdb470fc228d52
cheers
More information about the Linuxppc-dev
mailing list