[PATCH] powerpc/boot: Explicitly disable usage of SPE instructions

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE1434d LANDED

Landed in mainline as 110a58b9f91c on 2022-09-28.

2 messages, 2 authors, 2022-10-04 · open the first message on its own page

[PATCH] powerpc/boot: Explicitly disable usage of SPE instructions

From: Pali Rohár <pali@kernel.org>
Date: 2022-08-27 13:46:49

uImage boot wrapper should not use SPE instructions, like kernel itself.
Boot wrapper has already disabled Altivec and VSX instructions but not SPE.
Options -mno-spe and -mspe=no already set when compilation of kernel, but
not when compiling uImage wrapper yet. Fix it.

Cc: stable@vger.kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 arch/powerpc/boot/Makefile | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index f56a5f90a5d8..2247374c4e70 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -34,6 +34,7 @@ endif
 
 BOOTCFLAGS    := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
 		 -fno-strict-aliasing -O2 -msoft-float -mno-altivec -mno-vsx \
+		 $(call cc-option,-mno-spe) $(call cc-option,-mspe=no) \
 		 -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
 		 $(LINUXINCLUDE)
 
-- 
2.20.1

Re: [PATCH] powerpc/boot: Explicitly disable usage of SPE instructions

From: Michael Ellerman <hidden>
Date: 2022-10-04 14:01:55

On Sat, 27 Aug 2022 15:44:54 +0200, Pali Rohár wrote:
uImage boot wrapper should not use SPE instructions, like kernel itself.
Boot wrapper has already disabled Altivec and VSX instructions but not SPE.
Options -mno-spe and -mspe=no already set when compilation of kernel, but
not when compiling uImage wrapper yet. Fix it.
Applied to powerpc/next.

[1/1] powerpc/boot: Explicitly disable usage of SPE instructions
      https://git.kernel.org/powerpc/c/110a58b9f91c66f743c01a2c217243d94c899c23

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help