Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1477097lqt; Sat, 20 Apr 2024 18:07:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3r4DKE0eRzLVZKbkEe5spw86RDwYiW/ZYSvqrjyLJi/kdVIgs+lq7lcpXtiXh1u5jTLC6RCpLCPf7p+huL1aI1xHdY953wCOwhAJwYg== X-Google-Smtp-Source: AGHT+IFpFPs5OKTuZHhjegwoKxnww5nyoYGzgjL+/fDgNLpzXnGSnZfZWLCvqYv8JjeCHp+/2xpA X-Received: by 2002:a05:6a21:2d8e:b0:1ac:4272:5f88 with SMTP id ty14-20020a056a212d8e00b001ac42725f88mr6597902pzb.17.1713661662467; Sat, 20 Apr 2024 18:07:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713661662; cv=pass; d=google.com; s=arc-20160816; b=HgX9mI5sY6B8detlo63sck+fHZA4ozLmHfUOXhnxMjxDZtqplhyBDrIfJSO+LBZSFE XNoWhXnE1cj1zBInT9+AmZTPlvqidz45Q/a03m2H+GhJ4cHAT8fgMOd954IEE1wfCKy7 3TIHvOnm6b3iG8sytrck73T1BDv1UuZv8nm8yD07gpc6vkA7HDlOIe2EWYwxcL+igO+p ns3nl3QIMpO4GltXwo0WzMjePviLNjERprePEdOsVVqDnREihrOgxNLOPZVkg5YePELE oMzC1h2sDhs+YoQHkFcvhodYg7FqVc07+CMYwusviAccujw6gm39Wyh3xbL1ULk2+nFJ AFBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=i2nk2JCBk+l9WgkXKFxu/w/itsXmN0i69JJANxOESAA=; fh=LJNhBYL3ZOBYoPa3kgUxzDcPVGmANebZgUC24Q/yaTY=; b=QZuGluhYBtoj+i6vw+51+bxSVaMwVKtUjporW4OVlKk1onLQb5780Ohs1z/UDf0mSg JSp9fQ/U64v7TLTvAdOC8Sq5jrtrG3ceNxdpUSgjz90RUoRk8mqIXvu3SlKfG8qe/ruc zcz1cCQpfA+V9PYSvJtAgE6JLbZiMGbqGbWTLw9601/54DfCUv18/xuxhLYlL7KGMf3e Hz46v9YzEvvu++KPmXiMFCS5L0Usivj/iYc5CceynPSeRRLJgxxfIr2QuDTHS7dQu0zN MgaWEhhv5aX1aozg1H8GzBLzZ2nfQzEH3QKD5pdydg3chrorJkpNQduBP0Ep5leXPCNF 2PWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=YrgpFBIu; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-152414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152414-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f13-20020a170902684d00b001e8dd83996esi3079153pln.180.2024.04.20.18.07.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 18:07:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=YrgpFBIu; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-152414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152414-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 16EA3281039 for ; Sun, 21 Apr 2024 01:07:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 478741CD22; Sun, 21 Apr 2024 01:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="YrgpFBIu" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 354631BC35 for ; Sun, 21 Apr 2024 01:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713661509; cv=none; b=lPqtqgD48Vaf2zSAbzw/rvXtENO1Gj++ZF74LhAM0RgL3g90dulfEU6IAGKtJdJD4nvgy54qc0llFq/laIoRPq7W97jfd+fEZ8F+3FVcuhA8gePVE3QeWA9rBznsnJM0FLGhNxA2FtWt8MX+nCkP+Pdew2x9jhEpyjckXMa6J7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713661509; c=relaxed/simple; bh=hSZDQKNr3tkZT93AWiF+tJx7RzaJfBNyv2pzte748aU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TvOCXs63GROZFpJVZdcP0alI301bfALGm03ga+1V+f6kM+BSc6aiXTbLYpWboFyXA/3GfUBb+3WiPvt6B6e7MrwuOtvnnac3UX0R8S+/+K775yYbSpT7V2gDc5fd++hzfpQLUGXV2sPYvD38Lrz0CVDriDlxw0VolSGSFD8gBQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=YrgpFBIu; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5f415fd71f8so2502579a12.3 for ; Sat, 20 Apr 2024 18:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713661507; x=1714266307; darn=vger.kernel.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=i2nk2JCBk+l9WgkXKFxu/w/itsXmN0i69JJANxOESAA=; b=YrgpFBIuTk3VoLmuZ6zEHHzItuxE0rJ/hh9nJXs4E8wZKOcc214t12PBmwvmBDbOK2 +x0zQW5aKty7DCJVYVBZqTCy+GuiZzZ7eTzuTQBLcWuzwoh1INkOSchF8AI9jSrMMbau 4FvFUt9vAj2+EGIDZwvFO2X+BxyS0So4Mga7o6rEXMi0jG4rlty9cpvLXOEuwUmATyf3 EW7SeddzdZIo5tw897dhgkhq2Uxni8qwwoN70/Lp5HObnCBqKcdF8n35askQKixyGzUG CQ6EQ4GzxosmoCfwuIvDGTyd0jou7+oOAzf+yNwZu7+52OWALvMB0ZQl+iQ+6cbbaVDn WCZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713661507; x=1714266307; 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=i2nk2JCBk+l9WgkXKFxu/w/itsXmN0i69JJANxOESAA=; b=w1egvzSVYG4oJQGkHz5t1BwYm1YZgKnBFP1WWarfOiFExDqjXUt94k8j5YbAQf8XnR E81rgki3hRPRbyobFflwIlalRpIpNLW0Z5kWR9Lwi/cB8IpQ9GKjkuMCNIII6jFr4H4k 5oo6uMpAgJq0A2R3oX5nnqMdkkZeJZyTWTfmSLhJSu2Yuuix5mMMbX0z0S1OXMmH91K9 i+TV5YgZFWzp6Fzr98lwvkRQmE7AEvKKWB77yUq/QCgA4bBr4g6KzHUYicpZapKzZG2P Digw602iMFpYQcMQyv/Lxz+QmG9y+dHtZCilvMIlt+jWxaMYHrFkDa70UG7G0Q4fjjuA VYiQ== X-Forwarded-Encrypted: i=1; AJvYcCUm3TVEoiKgeiD+mgUQI4O+k619vUcTU40WHfubtviY+OoeC3SMUKkjRStMn9Iwvu4l2g316UuDvVRaXhSHh92ouWCA6dAtNzLrvuoH X-Gm-Message-State: AOJu0Yyt02aVHVuQZx7zZKD3WWpMFbJayPZ2hqkudFQiIn1FQEtXMZQe NiprfVNhe1FVTKDBiP1Loc6L7xmWFtoz+PmGgE69SyfgpCyIW7U0CY1zT2evSkM= X-Received: by 2002:a05:6a00:3d05:b0:6e6:9552:cf33 with SMTP id lo5-20020a056a003d0500b006e69552cf33mr7165613pfb.31.1713661507603; Sat, 20 Apr 2024 18:05:07 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d6-20020a63d646000000b005dc8702f0a9sm5249627pgj.1.2024.04.20.18.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 18:05:06 -0700 (PDT) From: Charlie Jenkins Date: Sat, 20 Apr 2024 18:04:43 -0700 Subject: [PATCH v3 11/17] riscv: csr: Add CSR encodings for VCSR_VXRM/VCSR_VXSAT Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240420-dev-charlie-support_thead_vector_6_9-v3-11-67cff4271d1d@rivosinc.com> References: <20240420-dev-charlie-support_thead_vector_6_9-v3-0-67cff4271d1d@rivosinc.com> In-Reply-To: <20240420-dev-charlie-support_thead_vector_6_9-v3-0-67cff4271d1d@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?q?Cl=C3=A9ment_L=C3=A9ger?= , 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 , Heiko Stuebner X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713661481; l=706; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=hSZDQKNr3tkZT93AWiF+tJx7RzaJfBNyv2pzte748aU=; b=EaRHq+U6nQY6UMNHfwQt7VXjyHg2fLwFPXP1BAl3sVEmRMdMMwXIiKvRomtQPJzmqtJqOUvg2 jdINbQQjXWJAPYzqwG9jFhZUzK57PzwK7Icxv/QOIMHdsf9Ai2sSDqo X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= The VXRM vector csr for xtheadvector has an encoding of 0xa and VXSAT has an encoding of 0x9. Co-developed-by: Heiko Stuebner 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 -- 2.44.0