Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657394pxv; Thu, 15 Jul 2021 12:40:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL8DMHa/p7QDFgIU53ML4c3kOizhOBPxlYK63A9YFw7w0aVTSnXAQKUt+3dk1+1b8INq6L X-Received: by 2002:a05:6402:697:: with SMTP id f23mr9262280edy.44.1626378020221; Thu, 15 Jul 2021 12:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378020; cv=none; d=google.com; s=arc-20160816; b=hDFvhN1g+IXuP4ZqBwB3q6COvdILzZ2NWAXeaOb/B3lZMSOPgh2ItYk4lup7oQ5lS/ RsLxLhc3noz/TVGmF+tk61pOc9Qggs4pyJlSBxiaY/TmtJWW244kqbfxAr/sELl1audc SOBHpYgAo5y/uyU1YAU6P52hS/iv9K1Lkq5DqMPXOXeZIXMYSSxmCiFr92w8LqqMDqSF laNg6b2DgT44toZE+ta4U+vHe2TkfnGRE4BSGAf2oPHl/jOp+cAujDsoQcEb3K7bR4Yf 7y24MclTdJoIyxG+hcRA7sxsSp7pENkCPfZlmCzBzSPtJ6dW59SdpFebf+njFaZxrAMV KmAg== 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=TOldpq+RMgI6T/xZ+SENkRF8sKED9uocbmOdDfrhOhjTXlAZZHDVzLmUkNCDOYU8Sm 6uurawSvreWaj/KSS3AbHjYRifB0JqW01KSaroDcCQ/2daIwzA0gELBb/1fc/67sIvaa jnPNbxOE5GRhAtgrfAooMrv7lcTjxLuxoJ7sHNibkLVICaZZkDz2ov100C5H9d+bvhcj VBWNpktlUTM5pet478yB8APFDoUD3lYJOKMq9ErWpHnJQta1MxufoChNCyOGu4NnfkZl DaMxErLRRzfqQqYhjQLyGOZ459EV0/hUTWVZrTK8Hnd2b/0SRaTe1QuTBftHIMpOOmt5 fw4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fWlgV4Vb; 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 y17si8404935edv.241.2021.07.15.12.39.56; Thu, 15 Jul 2021 12:40:20 -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=fWlgV4Vb; 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 S1344954AbhGOTkk (ORCPT + 99 others); Thu, 15 Jul 2021 15:40:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:51154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244290AbhGOTOl (ORCPT ); Thu, 15 Jul 2021 15:14:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7BE8B613F6; Thu, 15 Jul 2021 19:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376211; bh=gHjxUE6q5q2kLdGweCLT5/Xb1aBBzr5wP0DdDKZxUEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fWlgV4Vb8CyvMWkm+fW2EMRzOw+cBDJGlXojZHMzzk+ycsMBM/ryxuWZgiRZiEVKL 6tWnyBL1gjmA6SaUAilEaJBCyj/TR1lHPG7k8U4RLSzBLO0+ptYObGVxyWv6XUFUSk ifLp+BkTrEjJ6+Yg2CcbP7xOVl0RirRH7NZkhaUY= 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.13 175/266] MIPS: set mips32r5 for virt extensions Date: Thu, 15 Jul 2021 20:38:50 +0200 Message-Id: <20210715182642.918387199@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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