* [PATCH] powerpc/boot: Explicitly disable usage of SPE instructions
@ 2022-08-27 13:44 Pali Rohár
2022-10-04 13:25 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2022-08-27 13:44 UTC (permalink / raw)
To: Michael Ellerman, Benjamin Herrenschmidt, Paul Mackerras
Cc: linuxppc-dev, linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/boot: Explicitly disable usage of SPE instructions
2022-08-27 13:44 [PATCH] powerpc/boot: Explicitly disable usage of SPE instructions Pali Rohár
@ 2022-10-04 13:25 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2022-10-04 13:25 UTC (permalink / raw)
To: Paul Mackerras, Pali Rohár, Benjamin Herrenschmidt,
Michael Ellerman
Cc: linuxppc-dev, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-04 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-27 13:44 [PATCH] powerpc/boot: Explicitly disable usage of SPE instructions Pali Rohár
2022-10-04 13:25 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).