Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp213179lqn; Thu, 11 Apr 2024 21:14:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0V04GbsMT5wSI3bcKQ8avF/A8bPTMUj3+FHl+69t0qWDr0fzFh/+plHioIue8ZaZ/b1AqClYhSwmHM5JvNdPSoWMA9TR0q2XdiTT6Xw== X-Google-Smtp-Source: AGHT+IFm9gnL+mzFn0zFJW8r7JEYGkk7spkta0pANrpvJCgj8a45j7hV6pw9Zb80HykPKaL0cOBE X-Received: by 2002:ad4:4e05:0:b0:699:1ff2:9a09 with SMTP id dl5-20020ad44e05000000b006991ff29a09mr1561615qvb.24.1712895256300; Thu, 11 Apr 2024 21:14:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712895256; cv=pass; d=google.com; s=arc-20160816; b=IispGxCzE1yhY6giTqomDTtHKQX/RV/GYR2FvzAMU+c48tbG+T4KJ/VU3yReH52gS5 R64zy25158mb8HSEVDKGiANVxmTVSA402GSNddLKcDOtpxxJu2kYy7kOUopefJa7AoXm MWLazMuz9olLMWDU86tcT4kkKt6Wfpi2ifFwlLcBC90jhFBPd0Qh/EfcttA5nRWvRFUI AAyGtACTwKzGTDAjehdWfcLqfWXu/nYcNJOhSwWicC0gOLyJS4nlnBQmT5nxJYoZ/6Ls Ou+K6ux7td4vpWTYvKmNfIWuuQuwvpXSbUTv08sqPuuExkTHjhkGyMIy2k5k6R1qo0qL vCEg== 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=GOUeprLdHOU8cEpU799KylD0peVHBTaWNcK25xy1sNk=; fh=aqTTwm4NoTe4Yvswid0w31fwPJXLsWLkfUvUp1FX+io=; b=tBCaNUVcVJV7e+gZegxTq2ZIoSwYfleHMPPEbjJ6t9ttLYmWejyKA9voo2k0O+Fcx5 bnzU/OiZiQ0rzuIJGe1vujY8bwiYr2GaRYIvSfY1U9tBWfNv25g73z1hlEyaug3p8/Lw yOO/SIE/UavhO5zWbtqu3ZorC0p70SnHYMNmDe9pz+wC/0jnl3QL28EtGRjaWhODxdri fgeBFLGQNteqeYgRZSdO7Kc9mQI0UCvEnVp3edhLt4s0FaUwyv0UlWb90n/N+YyGLITj qiG+J0BROid5QZEd1wSYN1HZPNhTGwJW2UKxkJS9LrURc6ybMBg+e8rDp8VHMF4kPhHs tbAw==; 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=z7nIr33n; 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-141899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141899-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u12-20020ad45aac000000b0069b3d00b697si3228086qvg.272.2024.04.11.21.14.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=z7nIr33n; 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-141899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141899-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0BBB81C22F59 for ; Fri, 12 Apr 2024 04:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98E621B968; Fri, 12 Apr 2024 04:11:55 +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="z7nIr33n" Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 8C4F24AEE0 for ; Fri, 12 Apr 2024 04:11:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895114; cv=none; b=CiS9w6aUZ6WEpUnNUFgbbyyPlvcFx+K8pLMKtjSV0NMaHZ8w0qsayDfNgTh9sCHQH5oVubwCUSViVCoxMeCZ7e08tRZH8wtd/kd6PiniT1lftMg1HXeMvDj04IaMh6PJFIMc7ylokNquczJdM51cqTaf7z+fvqZRe8Xqi2ueyNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895114; c=relaxed/simple; bh=GIHSCNvBGq9/NXbY8oLLRsk2prCOn2ba2+sGa13S19M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ElmrIy9jARH1TqEcidqocVTOcHqtl2szp9UBhtkvuJWahAh+MXzc1U34S0QG9VwSG2fQFSsDPcAzmfA9o1vONkcKfvG4qLgPJvWO+08OhQdU1vwXLZZZX6voUvH/KoCMGlD+4fK4Y+fFRaTxmhxzixZc3AogHJN5X30JtuhrIqc= 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=z7nIr33n; arc=none smtp.client-ip=209.85.210.171 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-f171.google.com with SMTP id d2e1a72fcca58-6ecee1f325bso472015b3a.2 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=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=GOUeprLdHOU8cEpU799KylD0peVHBTaWNcK25xy1sNk=; b=z7nIr33nwO/QCOdDq/TceZOyaMeegxR1Mm6ufsmlNFrOvRe5G56sg731uE/wQvrdor rpuMpJZZ6zxZiWoj+tvCEcm85p5X+sp88QTGnSqzlhoTgxPAcwJNhft7Luv+MRNptKpT 5zFLKD1nsAHTvn9lIVpqF+3QjoTJkkSZ3QtWXDgnxmeo1LdIRARxVpkEj6Vp9JnUycuX CrkBjiNGCQmLGHBLr/D7eiYPLvNZaXhEDjVjPVRTlyGv5ysgo91Gv894lwK1E4yoOaiZ YSBrpFRaGTbtHZfw+6KwlMPH1O/SLabMlhv14gsUs0JnbrqCJgV9RrRwsEcG6YzWAF5+ mo1A== 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=Hh86hyNSsleegiVbvvJ7gsVYqNNxTHHjvWbH42/+KbzUykiWGZTj7KYeHdfa7M6vfW +oyUryOscmHNVmtYVn7wWNOaL3TIzspxGntITyD8alv6ckfJ2NBP5xexdjmd/mNptvgB 1HvJJkXMFDjKfGllE26ht5Vu8DmyAW8ztXRd9ZVCgXfnYrZfLkNedoi6xUjqDUAhVGZN Te7+0Dh63l8VcF6g9lZ/BHR0cGU+E8HjVp+fAxsaNpwsXLn+pCdXAmwNqHnvPr3CDYaF ocO87K3NBFuvBFRXEft45XNkuz7OGIoTaHFHXv4MEGg92LuRzCjtsGXa+aaM3PehYC1I PdWQ== X-Forwarded-Encrypted: i=1; AJvYcCV/NXXJIMLHPEDHGJ2BvuAjV0+LsH74UqW+SUSQUpYf7U+i2SqaUD8Vf9UnAPWjoIjNQmTTvf7EtHsn452CiLrk+BOCUOtR9K0tgrbP X-Gm-Message-State: AOJu0YwhfWZG72vKEkHo+SAdg2k2qxBTAWTz2bNM9Ve2Sv+RgGVPLLfM 4lz11sPfbtxcsYvrP1rOM1vIMAcFk5uBUvHiUHHdrZtwFetyzo5k9BPBu5Fwzdc= 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 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: <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?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 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= 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 -- 2.44.0