Message ID | 20240420-dev-charlie-support_thead_vector_6_9-v3-11-67cff4271d1d@rivosinc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 1FED0C04FFE for <linux-arm-kernel@archiver.kernel.org>; Sun, 21 Apr 2024 02:17:01 +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=UV4W8+j1Dr2fwzjxCpvwu1kJw2FrVtQR/ZqSj4gxPak=; b=I6OjQ0hi3J04Sr oVVFbPvOYeP+mZqjdjnTQjvYuYRj/DJmFly7MAM4e8aaR+r27LUXAyy96cJy1EG4WpUATxoafEMjG xBiRl5zJa+HOKMyCmnBEG+yomASduGfmnAY6hThw26lSqzq8nvKxKuhUnIGOMtHgDdjxv99j6wncl U5MTY9q3akTUAQzFhvzjnh5jGA7S4WUSB1/UNjMC4j81GEeh43IrIajhdj6258Qmul+AFgeCr7xK8 CJj9/+3n2dAR2y5kfCAwZWuXXmaePL5YYsw1I6EWt4+Zug1KM8hTOBIa9f2jZwSnFCtPt5dOuUhz5 J963THN+/rPT4YJK9OZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryMl4-00000009esD-2HZO; Sun, 21 Apr 2024 02:16:46 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryLdm-00000009VzS-1IQ5 for linux-arm-kernel@lists.infradead.org; Sun, 21 Apr 2024 01:05:16 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5cfd95130c6so2063308a12.1 for <linux-arm-kernel@lists.infradead.org>; 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=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=i2nk2JCBk+l9WgkXKFxu/w/itsXmN0i69JJANxOESAA=; b=vSKoTheNCiz/2Bm8q0mlvS44OMy3+dTEO7sQWdK+snGKVuWwIbVRfwarGrHN826yIt U92SzuKMA1Bh+wFT5MfyO4RxEKWo/d27kGWv8jSayGC5XxF0HsT9DHOSQK+5B0fg5dyy ALBwO8WO0a/pjAAw82o2XyA74PeRUXYvPJgD95hUTglcUUWyGT3AneN5F/ksRx04egJi fwI1RSePG24Gm14Ft5dam5Ml5Fy6agMhfi8E+5GSXHBFE1MVzWllCtqln4bXNaL35L86 noBEcLTKH6rChSlNewT1riL+dO68x31YOZeQ1j0YmjF6FocJMxYGYGml3tJe4Dzg7zad XgHw== 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=q/qPCMgn5QxnUDVOfTOL8axoGtDEW/ADPF+NCAk6U9zwbrYIIcEtNB4Bxc9bUouH/M sQremGC6vQbAPQ0PrFSXw8JMKp1Ic3EBje7rKo+tjn4VfOLdVWP1/mQWy2WILB/tRmUE nKcyQaW3ootRDeLI0G4tlbU2EiS30+QTZHEPGDQeFLa/4aWMnC4gfDS1bXoAxvDBlHFy SFOBCgKyQR1pw53e85+ie5txxRcE6eNUBUlPUH+KFs6f4MgoXmOzRDvqCArhDexW6gIr 5X8f4B67vDCwm8/VryzT/roctLV5qHB/KgIjeoKrYVTdzW9ezl9ElI+7v7oqXHplTdTT lbhA== X-Forwarded-Encrypted: i=1; AJvYcCWXF5Qc68hfARk8/cYim2gRNtsCnlgCsH7sylkqNQ418EnswL8a1vA1rClY7w08VIwDqclg7jCteIPg5ToM8ng/WnC6WRJ4bB3XMRnTbTmIbFyehOg= X-Gm-Message-State: AOJu0YwmdbgW4iWKz9GwANrw07fAFUoqu7DgeBhXDEwaGlCLLh6qP0L3 pZsJpRwik6a/Ma9dKZwQm0gmNZc29QRF5hIkZUAi4KYEGsQQLuGkh0S8A6cskWr3XHEoqOiIwOu 8 X-Google-Smtp-Source: AGHT+IHHK0CmFEjUYa4B6mPQ0N1eaa44TysOKXGCa/Ivklg6CG4klOmrEKVYQ7lcoTnquYAd4o9XZg== 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 <charlie@rivosinc.com> Date: Sat, 20 Apr 2024 18:04:43 -0700 Subject: [PATCH v3 11/17] riscv: csr: Add CSR encodings for VCSR_VXRM/VCSR_VXSAT MIME-Version: 1.0 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 <conor@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Guo Ren <guoren@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Conor Dooley <conor.dooley@microchip.com>, Evan Green <evan@rivosinc.com>, =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <cleger@rivosinc.com>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <shuah@kernel.org> Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt <palmer@rivosinc.com>, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Charlie Jenkins <charlie@rivosinc.com>, Heiko Stuebner <heiko@sntech.de> 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240420_180510_515786_71FC9F5F X-CRM114-Status: UNSURE ( 9.89 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
riscv: Support vendor extensions and xtheadvector
|
expand
|
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
The VXRM vector csr for xtheadvector has an encoding of 0xa and VXSAT has an encoding of 0x9. Co-developed-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> --- arch/riscv/include/asm/csr.h | 2 ++ 1 file changed, 2 insertions(+)