Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp709395pxv; Thu, 15 Jul 2021 14:06:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnNJhsshLtYQ+VaXRpYL3Rv6ztpLu6F3bm4fXQMSGn0BdF64913rd1auNFdAzDsOBo+UU2 X-Received: by 2002:a05:6402:30af:: with SMTP id df15mr9812309edb.19.1626383179594; Thu, 15 Jul 2021 14:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383179; cv=none; d=google.com; s=arc-20160816; b=aA28zD5dw3fjX3fwlCh7L0qXLZrub7v4ccFEkOC/J2Kpl6C6kSAjxMDVZfJbX1JvYo +lNQrd1ltF9WzgI+r9aLHJPDEx5QDphxcEWKZCuPRwS1yTNCHYXcAp3CH6s/iGXwRkcB LpTjf7dZX/bMNxkxUT6BGR85MaYosPXsFuL59dxqsjFx2+hdOM4Rgz3cT3Rtz9hPBioA jL+t71Lu4DEvEqvH2OU2ixyXEcY9VdkK7pRN53lvMVkM3/oC2AIZ76pdKbQWJOBLzWsT sUvyxpCbJZYZjO0mIKMpiVhl64RJjrWG4nk2B3Wi2o+2ScbV5gH6vqAunFHPyA2U8kwx 0OyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pJv5n/xs84eq4+wD5qtgAGv4UNmSoGT098yLryF+cH4=; b=FCxe2hH+17ngIOe1YIHmhE/RREa+Qt4uhRiHsFfzsszdpLjiUPfkIzUu3bDSMPtR2q TPVDkwPlRQMWtphFWdPDdcCb6w3XNF/I925S0AdUNg+t6tGScGsqKtimjCkx9DQ+EryN gvpY67VXpcj8XCjwflcw0O8N1MtCRCkxHJuEX4Eyi0iifEDUZ6v3giAHTnJ3l0VIgEpZ RAJN/VBxhY8+jydlKaOr6qGpY6mwYie5wtbiabpzc+zvvBJsGlb7d5AQSAtBvg5k1tZ7 54V8NqHmL/TnSyi/AEJDmP7Jb2at3Z/yddnhsmkEcbBzlCalkLg9iPVklzd0EVsGg+q8 4JQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L51Josaa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si8717807eds.196.2021.07.15.14.05.54; Thu, 15 Jul 2021 14:06:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L51Josaa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243148AbhGOTRT (ORCPT + 99 others); Thu, 15 Jul 2021 15:17:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:38832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243371AbhGOTEU (ORCPT ); Thu, 15 Jul 2021 15:04:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6BAFA61402; Thu, 15 Jul 2021 18:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375595; bh=gHjxUE6q5q2kLdGweCLT5/Xb1aBBzr5wP0DdDKZxUEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L51JosaaAplxxQbZ0F44V47yGY2yyrBsPWnJxbeaRtJYZqglJv3AtnGqum5giaQTo EF23Yn0SvDt9vY3t7CtBtaxmKHph/BRrKLvqpzhNdgRzO835+kwiELXCBqNO5m8zU0 NObg4f2PAkylgK5fng97StxHV0zeLGUlDrDLvFcU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Golovin , Nick Desaulniers , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.12 152/242] MIPS: set mips32r5 for virt extensions Date: Thu, 15 Jul 2021 20:38:34 +0200 Message-Id: <20210715182620.017148023@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Desaulniers [ Upstream commit c994a3ec7ecc8bd2a837b2061e8a76eb8efc082b ] Clang's integrated assembler only accepts these instructions when the cpu is set to mips32r5. With this change, we can assemble malta_defconfig with Clang via `make LLVM_IAS=1`. Link: https://github.com/ClangBuiltLinux/linux/issues/763 Reported-by: Dmitry Golovin Signed-off-by: Nick Desaulniers Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/include/asm/mipsregs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index 9c8099a6ffed..acdf8c69220b 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h @@ -2077,7 +2077,7 @@ _ASM_MACRO_0(tlbginvf, _ASM_INSN_IF_MIPS(0x4200000c) ({ int __res; \ __asm__ __volatile__( \ ".set\tpush\n\t" \ - ".set\tmips32r2\n\t" \ + ".set\tmips32r5\n\t" \ _ASM_SET_VIRT \ "mfgc0\t%0, " #source ", %1\n\t" \ ".set\tpop" \ @@ -2090,7 +2090,7 @@ _ASM_MACRO_0(tlbginvf, _ASM_INSN_IF_MIPS(0x4200000c) ({ unsigned long long __res; \ __asm__ __volatile__( \ ".set\tpush\n\t" \ - ".set\tmips64r2\n\t" \ + ".set\tmips64r5\n\t" \ _ASM_SET_VIRT \ "dmfgc0\t%0, " #source ", %1\n\t" \ ".set\tpop" \ @@ -2103,7 +2103,7 @@ _ASM_MACRO_0(tlbginvf, _ASM_INSN_IF_MIPS(0x4200000c) do { \ __asm__ __volatile__( \ ".set\tpush\n\t" \ - ".set\tmips32r2\n\t" \ + ".set\tmips32r5\n\t" \ _ASM_SET_VIRT \ "mtgc0\t%z0, " #register ", %1\n\t" \ ".set\tpop" \ @@ -2115,7 +2115,7 @@ do { \ do { \ __asm__ __volatile__( \ ".set\tpush\n\t" \ - ".set\tmips64r2\n\t" \ + ".set\tmips64r5\n\t" \ _ASM_SET_VIRT \ "dmtgc0\t%z0, " #register ", %1\n\t" \ ".set\tpop" \ -- 2.30.2