]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Add support for ori barrier_nospec patching
authorMichal Suchanek <msuchanek@suse.de>
Tue, 24 Apr 2018 04:15:55 +0000 (14:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:44 +0000 (20:43 +1000)
commit5e82f22a5d12a61a75d1a4b1baa98ab2c11eaa1b
treeed00f86636a5220a2ddd369284af72cf1deb79ff
parentadc043e67301b0ed673bd600db9f97df38d77a7f
powerpc/64s: Add support for ori barrier_nospec patching

Based on the RFI patching. This is required to be able to disable the
speculation barrier.

Only one barrier type is supported and it does nothing when the
firmware does not enable it. Also re-patching modules is not supported
So the only meaningful thing that can be done is patching out the
speculation barrier at boot when the user says it is not wanted.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/barrier.h
arch/powerpc/include/asm/feature-fixups.h
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/security.c
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/lib/feature-fixups.c