Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp777393ybc; Sat, 16 Nov 2019 08:30:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyNeNE1czBbbX7F3gGeZLjYDuS2YCTJ/qEY5KrHoTTy0tRelG9fvxYj7THqEc1aXuA+4cDd X-Received: by 2002:a17:906:12d3:: with SMTP id l19mr10509127ejb.165.1573921840355; Sat, 16 Nov 2019 08:30:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921840; cv=none; d=google.com; s=arc-20160816; b=VmAYvICZTZYM3tIg19snmTXkzIymKOeDHIf8zTAT0F65aA4LCa0b4FAooQB+7V2QEC fshnUyALJkCDYtqb7On8duTSsNE1Q5i3xiw4LUyDVYLCaxAvqCle4JIFEj75sq+KoR2l ZdeXEZjTh4vpK0VoKeeYPjtGXnqcKvT/3CbBN0SvrzNa5Yqd3bqm6R4FsGZuuxNtxCSN rNQK2U4ZmyIxHcWaXeGR/i/ZHJYOoqj96RwSDZB+5tDAOIQUPKutttkI8/hc1I0N/pDP 66KBLb2rM8Igx19SCVCxILyTgjHEs49N/MYK7KWwPAvS3QXHFip4J+7NzLUKeENjizr6 Dw4Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aOtdjKN4HHSnn3c2PxH1aowndSgdR9hOaDyxg/nBEE0=; b=Y69rgGjM4sMop279+8GyZaD+KwUkjxDSr2OtFdpW2AKXzLzYswElvWpvpRu+KTzzp0 OpfCtcIav5ikNgGt7Bh4ffb/RXgiSu5dAojKPfwN09qkmNrYomwxz41RkQzWcFNYP+IM Lf7cL1KpuRS9SFHzn0/Zpzu3AFi2IWwYEqDyYIb5EoRGTyl1iv77GkLBtbEOIaAR+giX zHlZQ+i/aMxTndTHXn+zsKKaGp1M5gkAOvoXSVHl8wLVWvMQtjUepcJ5xoLqRIHhUbqv r8mWSYM4826zKxDKHH7pFK3JB8qv74cvJuaWm02gr7pXLladFE7ygI0hrNY6ZGkgYrxy plrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Cb/ebQ3/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si7564323ejh.313.2019.11.16.08.30.15; Sat, 16 Nov 2019 08:30:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="Cb/ebQ3/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727879AbfKPPl2 (ORCPT + 99 others); Sat, 16 Nov 2019 10:41:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:44456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727856AbfKPPlY (ORCPT ); Sat, 16 Nov 2019 10:41:24 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2926020730; Sat, 16 Nov 2019 15:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918884; bh=wtjYU+nHjHQOYZA/U7nBjkeTi8Gils3V5XygPliyQmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cb/ebQ3/iq8YDPq0YyQJ2O13Qa9Z9BCZJmzux4/sdWYA2aP6/ZXPVZ1akdAfewA3R gL1OwiIJ4Xe6lrgkL9Tx8LbjAK8XN00Xl82HTIAwV1gPhwiPRaeBRUhwFXtGcAmdWl MmP5+EqnlDO+7pBxZRDzvKxJJ/UUJivjIiFGOEWk= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Joel Stanley , Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 4.19 012/237] powerpc/boot: Disable vector instructions Date: Sat, 16 Nov 2019 10:37:27 -0500 Message-Id: <20191116154113.7417-12-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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 -- 2.20.1