Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1565059lqm; Thu, 2 May 2024 21:50:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbhJ2XoJFH2sIObX7aIPEYpJ/QruHyvsAFjXJjj0twvb8lq03PFc12G2FYm9ERFcCmmIOUZ8QfajjexKb8IOAMkiMuZaVAbRZ2fuI0vg== X-Google-Smtp-Source: AGHT+IGO09lASwMibkCdh6pWOjOODkBsUHc5E5rXX04WKeROIH4exUs7ocAMkyUOrNaPdXYC4o8I X-Received: by 2002:a50:9fa8:0:b0:572:20cb:475d with SMTP id c37-20020a509fa8000000b0057220cb475dmr1006073edf.7.1714711811648; Thu, 02 May 2024 21:50:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714711811; cv=pass; d=google.com; s=arc-20160816; b=bVPbOL9F2nWoo23kALoSVDB4n8lJSyTKb1/zje2dzMXDrE9geE4NebTaoeCzrSlnOr ZYGKg73UYrtBBvTGOMe48DY1WGFmXC+qluFiznDxJgUfwljlVnKsCkfxyS2AN486WiNa oVy6DWDcuSY4nxFncSMTMZkF7jZYzxnkeqzd1LmpzznWIZyFMEfgs+V80R4U2X7n7YuB H76X1lCNxxMn2iZLL/T3fRWQA1M3b5XSxCovFVrZhcPA14dBSNJl7BGVGAveIZx6QsJm p38goSvwSnAEbIPdzt8YTFvbKKWZEbou5379F6IDwSuUv3eEohR3+8NF9pUT3azXI+MC FhiA== 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=cylq6eUkvswGb5Ko0+RLGGoEH/CVfC0ZarDWGNg4n9c=; b=kjxMLh+MFUmkXkla+9ZoAqMiQmOaBVB15DGfd1O58Db4umIQiYo5S5WTK8DeyTLB1P SCNdgxMWvXkoLOg1USJjd9h8cQfrSfPvsinqgLC9vcY0JkQ7vKA0nf7qnW0EXclsDiKO 0NACQKLE6qoT8NTpi+1s73OnWggEzzGC5lf61v8X3ooj7XBC/nUzLRqmynuOoDMATCMh 39CYOf6b95aB15r1xCsWpjGgLNNNJgz0CkKiirwRIrh1iiFUjrK005KmDE2C65YC3QpG o4U/lkXL0J3+2vCf8IYtBJer4nmw38Xh57ImPyWL9ft+4qO0bdDXvTda2cZCjzivxOk0 iwUQ==; 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=dxDDEAek; 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-167242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167242-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r25-20020aa7c159000000b00572b84f88a5si1137427edp.528.2024.05.02.21.50.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 21:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=dxDDEAek; 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-167242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167242-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 620031F225DA for ; Fri, 3 May 2024 04:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF2D213C3EB; Fri, 3 May 2024 04:47:09 +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="dxDDEAek" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 C727813BC10 for ; Fri, 3 May 2024 04:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714711629; cv=none; b=nlY2nrsO5Bul5GqQo1r7EVRhP0lCzoq5qPzuP412AY6d6EyFVTZm5vC6jLEGnrY7igRqtNqJzIDkbaIjw1KAqNQ4iX79Ww1lxMyKBP9eWZXxSYrAu9kDYw3L2dgEFFnV5tL2RRzYcgy3mECHE/sUBsYfFeoSE/vnmTavOiROcZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714711629; c=relaxed/simple; bh=hSZDQKNr3tkZT93AWiF+tJx7RzaJfBNyv2pzte748aU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qCgw0hE5P6+f4eFiGhpUznid+/osYH/vSU8Zr6xC4jDjb8qf86N/Y1zkl65ONu52PIazv8DYW5I2LGlZIlz/etM3TNunKWAgI8T6Tp5n0LpKS7baUtPeaoEYyFphoE+Uka4PIzJHgl2jMbUWkFCXSXAwKQuHCu5eVVhIilQc1gw= 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=dxDDEAek; arc=none smtp.client-ip=209.85.214.172 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-pl1-f172.google.com with SMTP id d9443c01a7336-1e83a2a4f2cso58924745ad.1 for ; Thu, 02 May 2024 21:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714711627; x=1715316427; 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=dxDDEAektpJAi68fOu7OGfcJgr5pzgWUdrLc0v/0da2JvGNVFRjJZICqwetDDqztt6 7B82HASj2knJsUDS4xs7IgOrq2/yMPRHnbmt5HtxjgFAJ8kJ/9dC507VZcC/JvoNNF/I C/qidGNo99Wi2tcbXYbI4b6mIURU3WiN2Q8XJ4TJvwIeZVr3CqKjbEWZ+l8emreRNIIR HZALnd0z+rMkvBH7mjr1IAFxLdrg3ocCSCVHjwThdkdDEom3XGSq2AuAvcE6lrigAN50 Hv6DF5pv5Im1SOTEWkrMHCJnOK3yG6UZiIx1FZtzQTx5XW6myrpWbzCCuhTwCX68pafb 05mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714711627; x=1715316427; 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=D0NXmDqzo1DAoOFCZsHQVuQaoO+VTkLBESv20paSv6ZlEHg7XCn7BEiM5dMuzqe2dL +zKOf72mFkmbmbJ63Qz6Il/vPl1CIwXEaWN83PGv6v8H/8V3tE4YWy1TpuQKv8SQFla1 BY6ysCXhVzVAffgQ2qBIZeFMhLhQSd40/qOVqVoP2Pd4saH/6kYVp31RnsBPSTrShGHQ xn1qRaBZqWJct5/6iq4I9YonRmVZWlhp3xmvmKQ751T7UV7Zw9VDNFMndANKNM2Kpdxb N5OccKagX8SW8UwRaWcKVGYrQZIYDJDjl5pF0nu4BrGhkf35c6EZhdFWdzwCkN2e1+hG CXfg== X-Forwarded-Encrypted: i=1; AJvYcCU+2pgekSX40NRjq9YkBs7LL7LqGpmu3ojs+XrPc+dU0guvj/1dGFlEoCwI4O3p4c8JB17DHZ+LN5RJPqhCRH3mvGjRzcFzGkxn8YFa X-Gm-Message-State: AOJu0YzdXh0B0RrRdyIgkBVz9VDsf9dzwKtQ5nLnjDK0Z3I7T9srYSID HbcMsZLZe9EgT17jcsywg3bTn90GZ8CZ/C9KDVDFiODfDp+0aW6O9H9+AWxyAkI= X-Received: by 2002:a17:903:191:b0:1eb:73c2:6b4a with SMTP id z17-20020a170903019100b001eb73c26b4amr1926925plg.8.1714711627297; Thu, 02 May 2024 21:47:07 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id e8-20020a17090301c800b001e2bb03893dsm2240411plh.198.2024.05.02.21.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 21:47:06 -0700 (PDT) From: Charlie Jenkins Date: Thu, 02 May 2024 21:46:46 -0700 Subject: [PATCH v5 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: <20240502-dev-charlie-support_thead_vector_6_9-v5-11-d1b5c013a966@rivosinc.com> References: <20240502-dev-charlie-support_thead_vector_6_9-v5-0-d1b5c013a966@rivosinc.com> In-Reply-To: <20240502-dev-charlie-support_thead_vector_6_9-v5-0-d1b5c013a966@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=1714711602; l=706; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=hSZDQKNr3tkZT93AWiF+tJx7RzaJfBNyv2pzte748aU=; b=UFZlFM3RPKRvEq4iil4sCALt5muWs8uugdi45/DJmZsHXC3Ny7LZMEMUZMpO4ymqs1OLTreJo XGaQ1FIh62qCFEPNP6HOy8o4Nghcqt7bK10HySuu2pzzpqXLVPmjp7o 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