Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5346946rwl; Tue, 11 Apr 2023 04:16:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZO5mcJ0wBf/+t0mNiXwK7I/257GhMBiAojjxZPSm1hrJv9VvpQ6YSNmF+x7ucuN4NFPUhK X-Received: by 2002:aa7:d154:0:b0:504:8410:c7b6 with SMTP id r20-20020aa7d154000000b005048410c7b6mr2153424edo.10.1681211776841; Tue, 11 Apr 2023 04:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681211776; cv=none; d=google.com; s=arc-20160816; b=xkPP652igkcNofzJaq8XNZOAWDjHIUMsejB/o5gD0wGGQMVLnto+G8G0Jxu5tS7jjc vQ1O6HtcteI5boL5DAgR0r0P6wIH5/X7xQThsgRG0d8krjwf/W0MZ4kzdPR7MKshBB0c g+H/KU8NdqDJRMczUzBWKPV3/SLAI3n9XYSg0i9ZpRE596mVEzLJNa3Pk0rQePqOIKIP lGV+8Hf2G7R3K48xIEg3FdTWWI4W4tUyIDnqnXryADswXJOqCtTFaGoSkjiZx2aPFSXB eIumZTxBeJXQvGIlKuD8is6IZrReHUvgTsnl0nIxtw7vhoXvAPFAG9J2m8RlZ+R4MEUG BQNQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=oJIJyJ+bdZ/ciPnkRGoLTZBvw3GeSSYm0yUguon+n48=; b=S59Dk8GEg7fiTK1jTLR4tWG5eWCsf1mZeFVRJ16Joo8DlAGHV/9cS8EgvxnL067ed2 6jy1tAOnrh5B6V/efRdMtGqYkMXr9RZeMVQhDV+UaTfjt++IdLBmPN/g0zJIC9NUZ1qb Lfub5KnNdcA6IfVb00veuWBkBBCDP72nUUwGAAjXBGRR3rzy+yK8ailEolXvfIfkkGzA cG3IYFO70g0gYzuWajGXx3zvDOGPZYs8b76y3ICz1BdJMOLdSzD4njscWn93Sn2X0E5V +KGApU03kDj5W6dA9YlAfpo66/9fo+VwIdYg9pozbp7KVVgopPcfKhUiyOBj5NuMFnrD hybg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=rP8N37sp; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="NwS/I9Qq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo21-20020a0564020b3500b005049d98dd97si3302781edb.453.2023.04.11.04.15.51; Tue, 11 Apr 2023 04:16:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=rP8N37sp; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="NwS/I9Qq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjDKLMp (ORCPT + 99 others); Tue, 11 Apr 2023 07:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjDKLMn (ORCPT ); Tue, 11 Apr 2023 07:12:43 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB6DBA; Tue, 11 Apr 2023 04:12:42 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9A6DF5C012C; Tue, 11 Apr 2023 07:12:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 11 Apr 2023 07:12:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1681211561; x= 1681297961; bh=oJIJyJ+bdZ/ciPnkRGoLTZBvw3GeSSYm0yUguon+n48=; b=r P8N37sp3ONYDrApZTo/1vdfzz1VF7mm5C9DoQ9//NvsgEHH4LrRHApkRdtvfOJSl hMvMmM+Xlijtwa1uba6DbCaM/bew6c4LiKPVO7/rdijTZUa0t99rznlq3MmF/WVA lUOBoNr8By/DoBjYbpn5SGNUFBkQaLAf7c7d23xJiUBuqiSg/Iw4tuNY9EU3u5By fjLyhi2B7821acDLKIMrgRuEieN8lgZh0kw3L37txY0dW4+dNkxfsopPoW+qhy0K AmSBxDf1R2T4WrSy8QqMIwBYJp9eVsLkuGEdkRx5YY727YCOIkYrEOdFQ3crrclM 5nLJn7g/FxJOPNGK6EyFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681211561; x= 1681297961; bh=oJIJyJ+bdZ/ciPnkRGoLTZBvw3GeSSYm0yUguon+n48=; b=N wS/I9QqISbjgHQot2XCb2Z2fxg/3HEYh8KmQxzRCAeE/WQmePD9kkl2p7f5twAS5 grzBx2CXxkQLSg7slnVCkoqFoujpEMsk3Iw5jsBhqya0IM0iRPpYgvkv+A/Hoc9T I+2O/RjENjwS7veElxutuPkHBkjH/aJnugaqBgLGCBeWsHOXqavLLNouHRhkYPDS QqPT8dW5UHgaDeDdEQ+JnmJNApd86LAy5BVWWIZwKGXe+kPBxpW8emJKse+MkfC2 34PvYJLySQYYR5d6ihhLgp8uohP8TZxJAxrpB7YQxzYg7BkUjXMBIX9SOrkTZRy8 C3gqY1Jj/9s6AHP6IWq/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekgedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghn ghesfhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepfeeludefheegvdeuvd dvgeekgfdvtdettdelieeihfegtedugeekhfdvhfejfedtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhi hgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Apr 2023 07:12:40 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, and@gmx.com, Jiaxun Yang Subject: [PATCH 2/8] MIPS: Set ISA level for MSA control reg helpers Date: Tue, 11 Apr 2023 12:12:19 +0100 Message-Id: <20230411111225.55725-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20230411111225.55725-1-jiaxun.yang@flygoat.com> References: <20230411111225.55725-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MSA instructions requires at least Release 2 to be available. Setting ISA level here to make GAS happy when building kernel for earlier CPUs. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/msa.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include/asm/msa.h b/arch/mips/include/asm/msa.h index a9ca57e3f780..e13e538a7889 100644 --- a/arch/mips/include/asm/msa.h +++ b/arch/mips/include/asm/msa.h @@ -175,10 +175,12 @@ static inline void init_msa_upper(void) #define _ASM_UNSET_CTCMSA ".purgem ctcmsa\n\t" #else /* CONFIG_AS_HAS_MSA */ #define _ASM_SET_CFCMSA \ + ".set\t"MIPS_ISA_LEVEL"\n\t" \ ".set\tfp=64\n\t" \ ".set\tmsa\n\t" #define _ASM_UNSET_CFCMSA #define _ASM_SET_CTCMSA \ + ".set\t"MIPS_ISA_LEVEL"\n\t" \ ".set\tfp=64\n\t" \ ".set\tmsa\n\t" #define _ASM_UNSET_CTCMSA -- 2.39.2 (Apple Git-143)