From patchwork Wed Nov 27 20:28:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 180330 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6642311ilf; Wed, 27 Nov 2019 12:56:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzutucUUKFw19qD+kFC/UQfc9UK/5vZL7pgBhMxH3ecGtWY1uyUn+4OQYusVnxmEWcs7mar X-Received: by 2002:aa7:d7d7:: with SMTP id e23mr33269609eds.236.1574888184148; Wed, 27 Nov 2019 12:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888184; cv=none; d=google.com; s=arc-20160816; b=CcUDRWEOGkQVzwQlyNVB8+osccV84zXkd88drwlFUqV4vF4dHRlbbKSCmNgLMYbFsu PD3XcQah2pdPWJWeygCsq1s13aJf0CEZ3jq47MtB8OYlQnQnsLKkXAtGnOuAI8UTEs/m OmVCCYqrxjlvMQH9rW/h+iPjs5kcUBQkDCAQTcN8BY4me4RKVSZO8/LTqja4RbIu7hTj qf18JMM4I702yS5SSctvY8P6e1UijPoOTqiXsNNoA13k8u2B8oir/R8cXZw0d986jH3c VKCIe0S6S6i3dkMcECzd8hoJTp3DTYotEVk09uHZ9CkqeBE/V+6fB2q9YbTupG6YMXIf gGww== 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=aOtdjKN4HHSnn3c2PxH1aowndSgdR9hOaDyxg/nBEE0=; b=iTMOolSYJ4Shyh0vikQUhxaIc3mb4q1XW+h51CGyiOei1p+KcRVUq9SyJFxPwrWR/a 7OQX3FZGCY6VA8k3ysCZaxkmiiRE4xEDt0QVJaO2+l6vp652Ar7Rnzxx8yzhrdojEYq7 pfZl0sxuQ4GaOPRCWjgJtIEflRZ1UT/UO/JvHcwOhoWyO0WMp8KHi2uqx2/NeZWjSOFa C+QBEE+c35XbHJBnAzXh3vrx1nPWSRaLFn4MR8n6XdinxzUqm54Fkkng50psY0R/peeL QXE2Nj/+oeOha302LPD0oAYBZXvY2EYc/+4P89LU1/guuW8uIsSTkhKzNS4X0uaFwnvp aHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A4Hzr4hV; 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 g22si12815285edw.338.2019.11.27.12.56.23; Wed, 27 Nov 2019 12:56:24 -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=A4Hzr4hV; 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 S1730277AbfK0U4T (ORCPT + 15 others); Wed, 27 Nov 2019 15:56:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:47060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729650AbfK0U4P (ORCPT ); Wed, 27 Nov 2019 15:56:15 -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 5DFDE2084D; Wed, 27 Nov 2019 20:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888174; bh=wtjYU+nHjHQOYZA/U7nBjkeTi8Gils3V5XygPliyQmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A4Hzr4hVt7pmCSDIFWHlCmYO23nFWaWbWbQULrVdr4ldDH84y3Wsj+d40G7FtqNwG D2hmVIifi+LFj+ZtVxPeSB5ZBLXvb6bM607J6K9qdvW7aYkvhM4qVFq3Bg/GFZG5vQ 3TjSM3ZuUDtoGbScbSmxkJtkGACBejr+QN1iEHQI= 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.19 033/306] powerpc/boot: Disable vector instructions Date: Wed, 27 Nov 2019 21:28:03 +0100 Message-Id: <20191127203117.194632825@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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 25e3184f11f78..7d5ddf53750ce 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -32,8 +32,8 @@ else endif 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) ifdef CONFIG_PPC64_BOOT_WRAPPER