From patchwork Fri Apr 12 04:11:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13626799 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CE32C4345F for ; Fri, 12 Apr 2024 04:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JUd2ChmIrkqRYDZd8c2rtFvBs39PRlIiaUoTNaJ7W84=; b=IuYNta6E/PRVUs +/Npoxz0LgvZnFaUnWcm03Wo2YL+AfX72bSaNBKvhFKvOLusSyVzq8V8s9ofv5ZiqbsGF06km1dhX Y0yPRkcpjVqnF14y1TKf19EASocV1RPtv+bEnVJavzVfq+O14yHadmij9vegheIlkpip3m2wp6q4q zsnetHEES4LufnloadYg20gt2WeuhO01pteBznmmcxfbNMUaulKD7KJf/qQf8PurGbZywboel4sV2 Kl2Nq3yVOzuQMdYVgHhKIe2IGXNeUq6AT+2J8ES38ZfeH3LTNF47aXzcXtxlFpjA32MW+glPEPYFX UN6tgmcgkO6IZoGvP+yA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv8Hz-0000000FBcu-1eQb; Fri, 12 Apr 2024 04:13:23 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv8Gb-0000000FAM9-1ef2 for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2024 04:12:03 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6ed2dc03df6so476151b3a.1 for ; Thu, 11 Apr 2024 21:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712895113; x=1713499913; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=GOUeprLdHOU8cEpU799KylD0peVHBTaWNcK25xy1sNk=; b=Iq8n5OUsKmLQOMpS6WrEK5uJK8HS+uunK62lEjtEul2Bja5u0hyEs93vTsdkG3h2N7 mDvhyEuSVKOv3NtZRjT/KmPpgZXM3yjk1Mxoq3QrtMAV5s3uFlKBqadsn4upFae3IVA8 pqcRCfhTFPvDziRhHdGbcE0pQsZf3Vhp0BYUZnqpGv/wjx36dl9RrHcY/XrSufTJ0QM0 d5U963fIZvUG+ozoy4u6pPjmPjukgOB0tNF5WRazlavGqdPDLsgFJ2/1P1bHDLxyp7cz Vb9qdSjawTIBX8mrTkf35/M05uljTfdvmaJD4N4J0Tti3pPCAUc8kKQYJk8D64ai1KGE czLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712895113; x=1713499913; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GOUeprLdHOU8cEpU799KylD0peVHBTaWNcK25xy1sNk=; b=dX6sulFBOE+GJ8l9HvWAG0SmqDI6MnfkbbhfC2Y3f24et57c+abkxYiyLoW9IYqP2r yhUUmhiFea9Ugxqy4XupmGeKrIu5t6j/dVVLIfzRGgNGxWl3Usk6ZCq6xqtKjgA8WnTC 5Q1CM0dfHsIkbbXosxTa0GgPZ/1Uj+Z/EfME/Fg7Ipv6nbBsyFGBPGK7nOr861zpd03E VnWOubXLk25n/FqLdIg3blKzlpL6NPMcgdwJQ5UUsOUxz/n+IkXq83fdvmuGD3caj+TX /qKLYRVHeLeVUZHWk+IwvhPcMnulPENhaa+116iVKDqCr1YKG6T4LkrQUtpcBkRmDw2W 9bLw== X-Forwarded-Encrypted: i=1; AJvYcCWavDDimOHVCpYJ8DOlm0AGnJbC38+4FBlbLXfE1f+rGs7IhJhOsVicuVbI6L3evX8co06sh9DWd64slPfhpB7D84AXA8bdmTagcJutIc5WTa2AzoM= X-Gm-Message-State: AOJu0Yz/S1zWNQm0+BvCSBnNXQdFIZzuvZYaQVyoJAgbTcXyd1CqFjQK jG3ABg70xtaPxiNou+Ac5emJ8oXt/ue00a1aXxZTxc5wQmDd3xFxLy7GQvCzfLs= X-Google-Smtp-Source: AGHT+IED3p/jhyvepbWDfXS+NkSfJRWurygM2oLU3V1hXND944PsU0f6q05HekJLfNfek/WJfI9eig== X-Received: by 2002:a05:6a00:2da1:b0:6ed:de30:9e43 with SMTP id fb33-20020a056a002da100b006edde309e43mr1816601pfb.32.1712895112997; Thu, 11 Apr 2024 21:11:52 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id ka13-20020a056a00938d00b006e57247f4e5sm1949712pfb.8.2024.04.11.21.11.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:11:52 -0700 (PDT) From: Charlie Jenkins Date: Thu, 11 Apr 2024 21:11:17 -0700 Subject: [PATCH 11/19] riscv: csr: Add CSR encodings for VCSR_VXRM/VCSR_VXSAT MIME-Version: 1.0 Message-Id: <20240411-dev-charlie-support_thead_vector_6_9-v1-11-4af9815ec746@rivosinc.com> References: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@rivosinc.com> In-Reply-To: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@rivosinc.com> To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Evan Green , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Jonathan Corbet , Shuah Khan Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Charlie Jenkins X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712895091; l=655; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=GIHSCNvBGq9/NXbY8oLLRsk2prCOn2ba2+sGa13S19M=; b=mAvaWamAnbq08BHcEl80jizwRpsYisWXatxTk+5hgXDH4/1Sk+ipO6fgeViKIstip0OZAfrpK PyaZbv+RsurBGMnGF6brQSfUNL2lUdCG9CjDA0Su9bm8BYxy6igksdv X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_211158_029413_B870CAF5 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The VXRM vector csr for xtheadvector has an encoding of 0xa and VXSAT has an encoding of 0x9. Signed-off-by: Charlie Jenkins --- arch/riscv/include/asm/csr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h index 13bc99c995d1..e5a35efd56e0 100644 --- a/arch/riscv/include/asm/csr.h +++ b/arch/riscv/include/asm/csr.h @@ -219,6 +219,8 @@ #define VCSR_VXRM_MASK 3 #define VCSR_VXRM_SHIFT 1 #define VCSR_VXSAT_MASK 1 +#define VCSR_VXSAT 0x9 +#define VCSR_VXRM 0xa /* symbolic CSR names: */ #define CSR_CYCLE 0xc00