From patchwork Wed Nov 27 20:29:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180319 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6634012ilf; Wed, 27 Nov 2019 12:46:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzsoBxu4+4j+uMuGCkv5mWXAlDYifp4YuyOoWqudLvk6unBxDLqGYP9TPwaNlbAUw4/e1zp X-Received: by 2002:a17:906:7042:: with SMTP id r2mr50894410ejj.166.1574887610412; Wed, 27 Nov 2019 12:46:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887610; cv=none; d=google.com; s=arc-20160816; b=EMGx8cbUS/V64OWmPy9eB0EX1Yy1SH/KMry2dDUuc5H+dfccWNU4xkKwlxtV7l7u8v upxh9jNIW8cGH/hGGNz2oLvNR93RyqZv8XdvpQRxwe1wXXYMxpTKb89X/tzvGY6CkOcq tOMbdpMSng7dipaxiUnHNqhppEh+5eybyjsNyRFMFrV1XD2c3EMRg3OqaVSkLgn6hlTV eeNfMOnbGEW//71lVL06UnhvR6SokydH4TW4z1DndFiBBoIVQZqSUGZrOVu5twQJaaL7 CtuztcB49lyCj6N8qchs96Veu18Pe4bZLR7R2kK1755FlY4b0QcgmwoiDuZcBLi76ZLj 7cAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=j0+XpGUl85AmWfCLGChj7p0GJ/+ihJ0pcxovZFH6syE=; b=igzRNzWFDy8IiCqwKtqRy6qJz5TZu/mEhz9ULy3l33gXP08RMZ4R5oB+Xrdo94gfMf bPFP2kHBMo9xAkJECnN3FbaOFcW156JQS1Dn412ihUGOwNnfo0R6vkU5W7Op+GjJde8b n9+0+vMmH/IbAXt7JfF53LdtdK6q/FNWOJmczKrLrViaFgMclQsprdGq1UXic0kdHNov qHuiAg0IKyvTt/CMuKyK1gruPr7Mn8wruv1RQdLft0hJzOndDuPIS8LvMAsBaE4Isfrg uhX4WQsVr/tO5SwPuKO99GLJKINJC7RL0Zx1mBBsSXiqG5WG/rG3LURwnDfIN8OwoplD uJKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vw5ThjjI; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si10016340eju.310.2019.11.27.12.46.50; Wed, 27 Nov 2019 12:46:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vw5ThjjI; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729926AbfK0Uqr (ORCPT + 15 others); Wed, 27 Nov 2019 15:46:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:58988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729923AbfK0Uqr (ORCPT ); Wed, 27 Nov 2019 15:46:47 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 26D95217C3; Wed, 27 Nov 2019 20:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887606; bh=gLtelvidJmu/jlsBQOJ2hGDX/2Qcy3X0HMoFKf8YEr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vw5ThjjIZCkm4o24DgdUgBQWi2a7PfmX3E2thgwKxwRiT5v1Ey8OYdqGt71fp6a1e Lt7drgQd93rs0IAXQWXxd+WETg0RWeeX9U9cfBW7uadlWCsRpXfztUjTO2ryrMBfJE ZN92voH/zILAcr+ukG9LwTn+n7rtrKWP9XuKUfNQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joel Stanley , Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 024/211] powerpc/boot: Disable vector instructions Date: Wed, 27 Nov 2019 21:29:17 +0100 Message-Id: <20191127203053.361932149@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Joel Stanley [ Upstream commit e8e132e6885962582784b6fa16a80d07ea739c0f ] This will avoid auto-vectorisation when building with higher optimisation levels. We don't know if the machine can support VSX and even if it's present it's probably not going to be enabled at this point in boot. These flag were both added prior to GCC 4.6 which is the minimum compiler version supported by upstream, thanks to Segher for the details. Signed-off-by: Joel Stanley Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index e2a5a932c24a8..5807c9d8e56d5 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -24,8 +24,8 @@ compress-$(CONFIG_KERNEL_GZIP) := CONFIG_KERNEL_GZIP compress-$(CONFIG_KERNEL_XZ) := CONFIG_KERNEL_XZ BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ - -fno-strict-aliasing -Os -msoft-float -pipe \ - -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \ + -fno-strict-aliasing -Os -msoft-float -mno-altivec -mno-vsx \ + -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \ -D$(compress-y) BOOTCC := $(CC)