Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3329988imu; Sun, 11 Nov 2018 12:30:59 -0800 (PST) X-Google-Smtp-Source: AJdET5frc4f99Knfd5I/XZ56lYYV9d1M/TTc+h31xrn0np4INh9snCvpOhJ06+XFsE2Hh0GZo5DJ X-Received: by 2002:a63:101:: with SMTP id 1mr11259715pgb.152.1541968259104; Sun, 11 Nov 2018 12:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968259; cv=none; d=google.com; s=arc-20160816; b=i/lXGg2y6wubf4GHq+miwBhMT6uWh1y01X7Kf64Zt/hmaXFEOVdbI7UdhdvUfkQ9eY xWDxXmiaO+t4luZu2xp5L3NXUQOzjLUU6wZ0NqXcDnxETk401A5uYMeqN/moyECP6Af8 QouZZ+Ee/9lFm2vPYqQuN2wybVngq/AIyApmTp5W8WYYUYcyPC3uwcg8TCzXiakhE9oj qNsSh4O1BnSoeiCpXygOcdTTVGHFBYrlwNZ6tFiH+EdDm3IcPb0jTLlhX/Cp+eTQENCZ K3IJ0QeIvNX8lff1QVRpj/Nc464szSymTC/DFPy32sPssMM03zTbzHVEO11a8rMUaUIW APRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=CKtfYme/TdLofmQYGEHJgUKrCRnwvJDc3k/bEhQxVIs=; b=gBmwYffm/ND9CuasKhEY6PpxdtXdzK+nDDh4GQYzoUqmhzoFgEPlIFX6dlwl8nA1tB ApKv73IEFD+PVs0a2M/sNtXFA8RP/JOQ3dO+4rRRChxj0w1JGCE8LrOShYBRvNbYZWq9 bs8Px87rpxUiAKQD5waqAMv7lNajSwuzKbWqElOdeBVa0xwANk7mnyqTuFOM6l1qYjaC 8UZppecResa3+ImToVjdDTYsPJ4hylyQPcUNoug9IVT8TOmWot8k+1kgpGSaUtJHEe84 MNlglSN90nS25HCgRCHXL64SOfaMP1swF9z/acg9JN1zuZi3oZFyetLeOZRVlBmquGLf lFgw== ARC-Authentication-Results: i=1; mx.google.com; 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 i63si14151627pge.515.2018.11.11.12.30.43; Sun, 11 Nov 2018 12:30:59 -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; 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 S1730468AbeKLFsV (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:21 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50366 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730404AbeKLFsT (ORCPT ); Mon, 12 Nov 2018 00:48:19 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsf-0000l9-Em; Sun, 11 Nov 2018 19:58:49 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsa-0001sT-EU; Sun, 11 Nov 2018 19:58:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Ralf Baechle" , "Markos Chandras" , "Paul Burton" , linux-mips@linux-mips.org, "James Hogan" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 348/366] MIPS: asmmacro: Ensure 64-bit FP registers are used with MSA In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Markos Chandras commit 2bd7bc254ab1f45269db6dd7957d63b713817408 upstream. This silences warnings like the following one when building with the latest binutils: arch/mips/kernel/genex.S: Assembler messages: arch/mips/kernel/genex.S:438: Warning: the `msa' extension requires 64-bit FPRs [ralf@linux-mips.org: Markos says binutils 2.25 and some 2.24 snapshots are affected.] Signed-off-by: Markos Chandras Reviewed-by: James Hogan Cc: Paul Burton Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9745/ Signed-off-by: Ralf Baechle Signed-off-by: Ben Hutchings --- arch/mips/include/asm/asmmacro.h | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/arch/mips/include/asm/asmmacro.h +++ b/arch/mips/include/asm/asmmacro.h @@ -209,9 +209,13 @@ .endm #ifdef TOOLCHAIN_SUPPORTS_MSA +/* preprocessor replaces the fp in ".set fp=64" with $30 otherwise */ +#undef fp + .macro _cfcmsa rd, cs .set push .set mips32r2 + .set fp=64 .set msa cfcmsa \rd, $\cs .set pop @@ -220,6 +224,7 @@ .macro _ctcmsa cd, rs .set push .set mips32r2 + .set fp=64 .set msa ctcmsa $\cd, \rs .set pop @@ -228,6 +233,7 @@ .macro ld_d wd, off, base .set push .set mips32r2 + .set fp=64 .set msa ld.d $w\wd, \off(\base) .set pop @@ -236,6 +242,7 @@ .macro st_d wd, off, base .set push .set mips32r2 + .set fp=64 .set msa st.d $w\wd, \off(\base) .set pop @@ -244,6 +251,7 @@ .macro copy_u_w ws, n .set push .set mips32r2 + .set fp=64 .set msa copy_u.w $1, $w\ws[\n] .set pop @@ -252,6 +260,7 @@ .macro copy_u_d ws, n .set push .set mips64r2 + .set fp=64 .set msa copy_u.d $1, $w\ws[\n] .set pop @@ -260,6 +269,7 @@ .macro insert_w wd, n .set push .set mips32r2 + .set fp=64 .set msa insert.w $w\wd[\n], $1 .set pop @@ -268,6 +278,7 @@ .macro insert_d wd, n .set push .set mips64r2 + .set fp=64 .set msa insert.d $w\wd[\n], $1 .set pop