Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6022124ybc; Wed, 27 Nov 2019 13:33:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyXrf36Ya6MMrPpmY3dBS7yjkaAwTMpmBXthvJJbqSNKxZI2iBeiQfCCT3C1O0/Ab24VZGy X-Received: by 2002:a17:906:8595:: with SMTP id v21mr26339048ejx.28.1574890409945; Wed, 27 Nov 2019 13:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890409; cv=none; d=google.com; s=arc-20160816; b=M8fg2My5qw8lWkj/XYp7+jasbyNDY8vXGMJ/jdKQMWzWzzSXa0/Sx3dLIyyZlSulgW qlFYly+pIu4mlSZeIHexyupUiyiMxTCHHXp2PGnMexyv0gJEvKWqOR+1xyeYR6Zt/fUw 5nut9BtcUZKdCWI+600C4OIVR4yhRgeYa7ZTyD+lsr/Ws49xrb33sacM21QcsLoz+JVi TlBt2bgwdb7HBCDK7zPcg2yJLb+bUP3SDvsfOmjKcgGdQzNksYBbFE4s0dCN1K69smMs k7svFRmSw4sroBjkVnWdDz7xCYTAGDggI3AwmM8EWwTWHs0TNFRY9F3dd+9+pLeLyLy0 UhMg== 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=visrtjSjzUJgj+EqDmFh+J2av2uPEiPg5K80YYbykC3r6ht9K0w9mHfSPOy4QYqPuo SU+bZ+E59XjQhbR0C73ntyZWcVHIOKL5BK8YSMJjPFbYbW1aVqkiu5eTtfgWI0BXeFv5 2nLhVUYzbrn1B1ivvRkt5HVUUhSEOcZp2KV6NCXOmYa5BHZdGgsHuzGp06vvipTAnLWj jrDNORX6p/SUzgGaD4aEKQ2Nj9rqxnZPG8wHUPn6KDVOJLBE6tffV6ebMCVEUH5HR+kS SXh1kllTLozWWmRP1hE8cslpaS4nr0nthiBLHVdVL+0fdZyPYe/40HG+QKGKFWZE+JBA blww== 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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ay20si1610119edb.62.2019.11.27.13.33.06; Wed, 27 Nov 2019 13:33:29 -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=A4Hzr4hV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730746AbfK0U4V (ORCPT + 99 others); Wed, 27 Nov 2019 15:56:21 -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 Content-Type: text/plain; charset=UTF-8 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