Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp2212lqh; Fri, 3 May 2024 11:23:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjf5nMk3ts3hqhMgPtZm+RVMiqFZwLpiVTlC3wyWH704Nw60esBQj8yDJd/fnFsvsDqg2C1953w0VG1FRviY+YRgUUt70pVg7O9IJ19w== X-Google-Smtp-Source: AGHT+IEay9lzs8vMvxpOK52uA3i61XdXlS5qF3bhXIw8P0s7EiCC0mjFBfL85qKXyelGuUkVoLNv X-Received: by 2002:ac2:4214:0:b0:51e:4729:79cf with SMTP id y20-20020ac24214000000b0051e472979cfmr2285659lfh.58.1714760600393; Fri, 03 May 2024 11:23:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714760600; cv=pass; d=google.com; s=arc-20160816; b=qWkuGxeBZ6cZwGEdg+lRbMWrPYx5vl4l0rYpOGP9R60VVTdhR4l2vd2oMtdcfVYeig l/dYC9txNvhVbDXZ1cLsiKc7evb9TWGYRhKkV9Wlmaiu+yykdQiukIeTWjvHX7r4hh1T L6PRuS2NVIAbhagN1SL6NMBprihpXbyuQB5Eitq34PI2xGT4NboqBvmJ5PvkpOfoImnY oXoOL7xRKZhS6YZ+knzfixkVzMaQKmplxf7HCUa0LlDkyhF3lK5ijkNuwSvBXD2AbN8r Kn9Pi13nVlpkGoBlB/3aaSE8k+bx3y6S3oKCef2bgBBOoFZpfQCHg3OsNQLVTR2q4/2n DVSA== 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=jjgYLiH5kZFqXbd03mdCINFLg1DQN1d7Da/5d7W1gTo=; b=z3Oz1Yq7yX5NTXWnKescytPvOccVVsnCMTh86ev9xsHqx2JiVxUhHt3EEKoywJA6OM qfRVBofA9qBUFUtLy+hQpSSL1zthmtgxJEM500PjxbLOIQS8Wuv1PR6252MjAk+YXsHh 0SJi3m6+X+h6owgHjINAKDPa8Q+zuuZmJnSqY1SCXqHAhd+Tx6L0DJ0CqAr/L1ec1sdx V6EM7c5Tbbj28HsS5CTQgfIyiBv0tlYxRJrEy5VabJ2wXKerMnEAMcugYeH2xaGSM7Fu 39zvOiPhzxYpqWVqQXwSeywWSYjuZLOk3VH5PUiaZQcvQS43fX1lN+8jzbn9svngTnWs uIqQ==; 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=jJHqYC8a; 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-168040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168040-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g7-20020a170906594700b00a5990a68c31si921698ejr.678.2024.05.03.11.23.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=jJHqYC8a; 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-168040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168040-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1FFBF1F21DA3 for ; Fri, 3 May 2024 18:23:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C45115B136; Fri, 3 May 2024 18:19:08 +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="jJHqYC8a" Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 210AC15ADB5 for ; Fri, 3 May 2024 18:19:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714760347; cv=none; b=ZZwHwAgRjNPn9TxME0ZOhA8uV2dkOlNIFY2cPgVtaL6dEYiw4+LiuqpQFNHAW6zzm7X+4XYwmoAfa3UvHaG5EodXWUYlasp7e2oNSexPhv7bO67DfoUx1D0M9OQgXZJrDdPnPieAFGvYmHxoSebmsV3y7NBOpDMCKMdbbgpAqBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714760347; c=relaxed/simple; bh=hSZDQKNr3tkZT93AWiF+tJx7RzaJfBNyv2pzte748aU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GqcDJ5jHkXTrXjzN/zy/iYXy6PgarCsqlxJH8iDisjB83OT7ksEmDPPE6VHg1tPDot/u4WixKJJfulcX3/9MuryIJcrNCCVbXo8ec4+BbLg8EYorSBoUe/UOb56/UGVf/SoRxid3ajlABYV9gs45dxfXIlVBhEZSYxMtt0YBFHA= 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=jJHqYC8a; arc=none smtp.client-ip=209.85.210.177 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-pf1-f177.google.com with SMTP id d2e1a72fcca58-6f4551f2725so10068b3a.1 for ; Fri, 03 May 2024 11:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714760345; x=1715365145; 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=jJHqYC8a8Z/aHHaypGbwngXomZM2eHlfWN5ZY3muD3nWxOm0ziJpnnS2jFoDIKszv4 NLiYGc4gQ72S5559ZdKicICBefVzQcoYs9Iz4ugOK0n7AxahjqSQkLBu30+X4si45Z0p FdsMEetj6W/ooZ4LnHDFsiu6cUEJ0n65Ze6CzcLqvYJmkfcEFQ9rBX0m5EjDd+p7ri2B ZYgnjwPGKj4fP2gDN1O2k5eGVT+8La8FLvr8fbNfiraXnZUN4rkvYTUPD5Q3AvMx43GJ niql8G2aKgba9G3DTvugtf5540vjVcGsTxB1JAtn9j3O5kX3k1ostdROJocC3HH7az1e FL+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714760345; x=1715365145; 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=LkoU2tNsWX/Lo9zqoR1HkCFz2g2k26hrPHKRlY4522RK6ozSh0F1Ix/Yzm8DimM7Y2 xoaFHtg6ICwQlnWDEGs1SmHfYvDR454kGVKAfnTVj4cRfju3/Z0L/sDoCcLnvUXTWefO D+xJc0GowESSa+uQ79qXD4PY9uqpxtTxlEqN3D8mhWuRkGXOHaFe3CiG41kD6XOEFHob FSHUx+b0Gx4iFJqM3Iaa+3/batl/tb3qRFPzVUKFoInWZNvfnbK6UT897tzPsUrIj+Lt QMTpJQ6q9cuXf1HCfvS+OnVSiPfHLezyeC5/EqQ3nXo6nBXAIYXEg3Tybn/5LYgyOxI0 AEyQ== X-Forwarded-Encrypted: i=1; AJvYcCVbHFlxc/66NltvLEZYpo53CKppcoHVxmMyo7vUGPN4S5g/7nrtxEGUmzTZgf2t1W37Nbv9r7HswVHO+ScKA4St+koMXwdKcmC06Kz7 X-Gm-Message-State: AOJu0YxIU2YNVncx9C5NrAB3nQ5rBK2g7Khmu8mjgsTiChzMWHq/ZlTR 5k87hiRGumFYdFTGqTKaIppAKX2affFfcbBkugYF096wWmQJK+HKXZ+163FRU7s= X-Received: by 2002:a05:6a21:4847:b0:1af:41d1:7334 with SMTP id au7-20020a056a21484700b001af41d17334mr3513429pzc.27.1714760345646; Fri, 03 May 2024 11:19:05 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id fu6-20020a056a00610600b006f3f5d3595fsm3355421pfb.80.2024.05.03.11.19.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:19:05 -0700 (PDT) From: Charlie Jenkins Date: Fri, 03 May 2024 11:18:26 -0700 Subject: [PATCH v6 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: <20240503-dev-charlie-support_thead_vector_6_9-v6-11-cb7624e65d82@rivosinc.com> References: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@rivosinc.com> In-Reply-To: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@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=1714760319; l=706; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=hSZDQKNr3tkZT93AWiF+tJx7RzaJfBNyv2pzte748aU=; b=jO0upAGaW4yuaVS+QlmhSO1SYHS4tq4RK3E0NqLTsJFEwtmVkVPPV6aSesGjkRDdJkKI3AOlD MqQ3qvdB+I6CCD8RbUq5POKhniZRS/torEK3drvyLlOJzCwBIrIBFcL 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