Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp832510imi; Thu, 21 Jul 2022 11:52:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ujR5/xZ7zAWNHb/NVF06k3lAYExkSc8X+qhXRRNin05YLeCzdNeApuZahOEEpl5x7Aldj6 X-Received: by 2002:a17:907:6d99:b0:72f:4633:65 with SMTP id sb25-20020a1709076d9900b0072f46330065mr16929861ejc.320.1658429533501; Thu, 21 Jul 2022 11:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658429533; cv=none; d=google.com; s=arc-20160816; b=G/Gm3lp+uSpLHcq3JKIGw51AGveP8+h+5wpsVrfJWKdhHpbWS1o6ke9CEHAp1SvkYQ TyZZoveUjBehc13P71ZlpPs7UW98H9zSmXMRVhmmGWsID+Zb8BHCmavv6vxGXBfVJCcp yyPs1V458mc6gfPe4CfOD8YwRqM/V30QWUsIVFbxmDMXsxf2zlfCuXrqgJinbqsOQqsA xIyIkVyRYXKUchqUBkmkHlD672zL0rRi7GNQB31N9xypMgs7Wwu+ciSzCfmd21yfKOvF /plJelibWEy75m4J1VtobWGcF1dsp0eno3iBGUW+FDTbA7W0vK/d2oLwAgfXqO7qFhwF tNyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z3XlA8t9TDZtl4uJYv9cJwWL/SPmBlhXJhsAi+NFr/o=; b=xgdu9hGiH/RtEVoO8+afRRbmh3lMiqFJTNTiFxfiSFPtajCywle2dOwgvHFFun5qTo h+e36gTx95aSUmS4fYQh9NaCafgrcVKjaY1JLcb9+uznyN4qW2s1wRCCzgwctUTiu5LU PDL0Ogz9fGZlIC5Hbb42t1ohYUihB4VRSkiqI+3bY14UwVjCRLqT1k9jJcPV5Tsi8KwP 8AfrmGU+U7Th9JV2wQWdKAJknxmk47y+6flWuKp6CCAk2uQH1MpufK7VGxz1QpyRdx3k Ygld+NexbQeaMeDdlmtQhMRq5YQFgtTs/jagXBMCTppvr8cJ2vk78e2KLO/RcG7rZGY1 98hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=GtaROVH6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn9-20020a17090794c900b00711f20051f2si3411721ejc.697.2022.07.21.11.51.48; Thu, 21 Jul 2022 11:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=GtaROVH6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229462AbiGUSMb (ORCPT + 99 others); Thu, 21 Jul 2022 14:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiGUSMZ (ORCPT ); Thu, 21 Jul 2022 14:12:25 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFEC63DF0B for ; Thu, 21 Jul 2022 11:12:24 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id q5so2540132plr.11 for ; Thu, 21 Jul 2022 11:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z3XlA8t9TDZtl4uJYv9cJwWL/SPmBlhXJhsAi+NFr/o=; b=GtaROVH6xLNFe7Zt86i4dGHacmXliXAJ+jJ5NtiNtpXOdKGq5Wi/W1tWudXPPjPhn1 m0WFChGHEZMBukYbZ0DoyDoddePkAohw06EUPzmYlwXgyflgQhLTz9TrabJUWdOUdxcW W79guXjajscHP2hNeVNzaGsNRDHU7Sl4Rb4VTOx2toedbRxGUqxFJ6k78dj+rRdWJZqK 1mFREVmwu4rxsebqhPXl+4Djtv52pG55bPaACi70S/EfuIEaQGytAnpq9FB+gpozzpTu dPyyrXSrZTSR4lKIpiHSm4j1S2Ts66ARlqhSCx4XdtyCnn55BoUwMKnYcXb+rx7LSRuk JvAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z3XlA8t9TDZtl4uJYv9cJwWL/SPmBlhXJhsAi+NFr/o=; b=lq8wxZL5SuPQX1XznRrujLABJdz5O2Fm5y7wlbHBrLggBzV8OsfTi9LLPi3X1BaWO5 0JafkRfw/X2pdd2T4EJq/1BQ27aCLGVkypJrBRFPWSB+oz6ai5DFjbkXvwE/leCLAhui zv8shQRBMXXlJiDkVyb85lj+5B25WpEePTdbufZxRRNNSMCVJBPw1Gn2M90TmsBLZOWZ 6hB1VVechxLWKXCzKETwjzNWDTWZJDfJvjGmIx6GxiwWvS8nd1yGEMzeBSbJxDrPrO6R Y0XZpBLifvGMy/YH9aY0AlamLe2r8kjMuABEl9JHYq0Kkg9POhU+lLx8VXrD2egoxZWh Q94Q== X-Gm-Message-State: AJIora+GzBiKYIT8OVE4umQvHhN/ovstzqdwsmJxuTkF1LHUQB/mSMHQ L/uUA53jgVhjVULfsBhLsKJmOYtTfzN2Xg== X-Received: by 2002:a17:902:e841:b0:16c:3053:c7e6 with SMTP id t1-20020a170902e84100b0016c3053c7e6mr44852245plg.163.1658427144286; Thu, 21 Jul 2022 11:12:24 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id b12-20020a1709027e0c00b0016d3a354cffsm617358plm.89.2022.07.21.11.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 11:12:24 -0700 (PDT) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Anup Patel , Albert Ou , Atish Patra , Daniel Lezcano , Guo Ren , Heiko Stuebner , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Paolo Bonzini , Paul Walmsley , Thomas Gleixner , Tsukasa OI , Wei Fu Subject: [PATCH v6 1/4] RISC-V: Add SSTC extension CSR details Date: Thu, 21 Jul 2022 11:12:09 -0700 Message-Id: <20220721181212.3705138-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220721181212.3705138-1-atishp@rivosinc.com> References: <20220721181212.3705138-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch just introduces the required CSR fields related to the SSTC extension. Reviewed-by: Anup Patel Signed-off-by: Atish Patra --- arch/riscv/include/asm/csr.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h index 17516afc389a..0e571f6483d9 100644 --- a/arch/riscv/include/asm/csr.h +++ b/arch/riscv/include/asm/csr.h @@ -247,6 +247,9 @@ #define CSR_SIP 0x144 #define CSR_SATP 0x180 +#define CSR_STIMECMP 0x14D +#define CSR_STIMECMPH 0x15D + #define CSR_VSSTATUS 0x200 #define CSR_VSIE 0x204 #define CSR_VSTVEC 0x205 @@ -256,6 +259,8 @@ #define CSR_VSTVAL 0x243 #define CSR_VSIP 0x244 #define CSR_VSATP 0x280 +#define CSR_VSTIMECMP 0x24D +#define CSR_VSTIMECMPH 0x25D #define CSR_HSTATUS 0x600 #define CSR_HEDELEG 0x602 -- 2.25.1