Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1413438rwe; Sat, 27 Aug 2022 07:36:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4lBhJxy0EzG+ILXsesq3nieTnukiCdQ9Jxt6SSsIpcx8Ll9zwakn+cTUJp0WRf0TZU6RDn X-Received: by 2002:a17:906:7950:b0:73d:6cda:939e with SMTP id l16-20020a170906795000b0073d6cda939emr8502693ejo.148.1661611017772; Sat, 27 Aug 2022 07:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661611017; cv=none; d=google.com; s=arc-20160816; b=SjRpQjA4sRdaYlbur2NIAE3qVhZjt25fikaVjjG+6BShewlH0tt4OXD9Qe3DqSoINL xcMOnxjlD7l80VtSyXJGh0lhyJzBAaQVWJeMas4O3BznAqI9CMrQN8vuii1ZIW6u0qyt u/qRCQal611odOtv8zBU/X+SMzi8xuygbo/uMJ1ckCuVxaTOI4IT14csEVKtELLC/J/G AgxdgxCS2fn+C1OwOrMmznz6L4cWgPoYs9kH3UAdBhH0OiTPcrXXtPUDW1Wk0V78mxMy I3zRalWBxP6y6XJClO9KE/tup9FAm0DPeq5UzShbv7m/g6Wbec1Spe0IceMCSG7N+K3r Rshg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=d6crQ51gaijIVqMbwpYRynp7xQ8gyRdM6qt+PlD0kPo=; b=ikYVzp7oZnkYi0n+UrS9FOUTe8X8CD3knGwHLKFE8gP2pOEGwEuEw0X1efP3b+M7Zm nDFF56ufksULHktWOUZ51oqXwdnabqzSZYGFJ+769jszwKAkwiot9vkPbmCBU96U4PNv Dn6Fnh1G/rEIDeIOyXUI581fX2b5iYW0yEiaEO5JM5WXvKnG1Mno61FtyJv8TA6H0Xpo xDkLeXlm2BfK14u3VOp1FIDgRvrj1iechEg1leYYGD2IiScwmzFYLtltSoR5g7ckZVBa xEjJY6/+4oWGYtL1I374Ir6OMIurN2VpIHaCt/fOvD7REI0KtJUKsHcLf78xShY9EiZE Zv3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r2tQiZE/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj3-20020a170906f9c300b0073860fb87ddsi2893705ejb.487.2022.08.27.07.36.31; Sat, 27 Aug 2022 07:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r2tQiZE/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbiH0Nqq (ORCPT + 99 others); Sat, 27 Aug 2022 09:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbiH0Nqp (ORCPT ); Sat, 27 Aug 2022 09:46:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7DDE2E9DB for ; Sat, 27 Aug 2022 06:46:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5EE57B80108 for ; Sat, 27 Aug 2022 13:46:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED316C433D7; Sat, 27 Aug 2022 13:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661608001; bh=O8gmx9Ap9zIBtCiJLLQVT7q7XPpgT6RZWLM3kJPhSvk=; h=From:To:Cc:Subject:Date:From; b=r2tQiZE/jvIeD6vjt6YkQzdVBMP/CjgW33BfZqQ8Cld7KkbLWgc12UdtIbfGXLPX/ kQf/3ymxgAUEB2DZCCbJ9jUMcNo9vLRlgRRLyx2vQI7w3rUiU5mEAaEpKjxtIIaev2 JM1GtSM97GxDKxLch2o1S29OiIH8CtdfVH47fwu7AxRFcE0xM8FQusxt696LpxeEvM TB/XR9NcNd4nYXnqeYgyeTen6mwBbAEePs2J6MR2LKFLbtkxABm1ntwv2VElq784FX Pc4gJgNIQI9lW50lf02jiqvWMUphoMrn4lIR0FVOLnVg0ZAkR1rC3B8/OejnbE9of6 zuSgkBA+9ZgLQ== Received: by pali.im (Postfix) id 239EAC7A; Sat, 27 Aug 2022 15:46:38 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/boot: Explicitly disable usage of SPE instructions Date: Sat, 27 Aug 2022 15:44:54 +0200 Message-Id: <20220827134454.17365-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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