Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5812464imw; Wed, 20 Jul 2022 13:05:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vwtWJ9zKHvcSX8i3ilBMmMtENxVuyGnLp7qkHbBVduvqGQRx4mEojFru08znsER+uRx+2V X-Received: by 2002:a17:90a:7ac4:b0:1ef:a606:4974 with SMTP id b4-20020a17090a7ac400b001efa6064974mr7321435pjl.51.1658347523781; Wed, 20 Jul 2022 13:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658347523; cv=none; d=google.com; s=arc-20160816; b=IPAXGqdNUQtw/Lm47ycbT85nOrSI7fAB1g3ZjpMSVrBO/JmSJ/ktcUeqKmvBYfuunx 7tIeZIUrLq08c8Xw0n0NloVoad0/vvCyRbBRk+Gt20J4YJXBO0Jecv4ZRaHgeKNwGrY/ 9Oz4+0bf1mcZYNXZtEvSxfPmJZaRoIrRsVX3EGVciXddIJrft/XEPGuLHKZrck8Tqefh KzRtMNo+kRouPmT4tbhdD9w32PFmxGoo+k6BkTpDC9K1Kdzgn7ut1JVyCmtql7PSJTRh P47TjqxqI8b54e3MTgeAksbCCMWkAqaxAZlUD+Ei6n03pMdTDky1nctsy+gPSfcadQAO CVSA== 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=TCIHA3Lx/EKPEvkkLlDBCMh8Uk8H5MTDRukeZUX6T/xswn3l19rmB1a6lmTsTrURzR MUVlQStSROAgYo6+YOPhaSUfuXiGtxmq05H+M6HQbTVpQDU6aPAemK4njzAekdoZKyrM zRYoue/xqReZ7jNHOfh+CLALapQ0WWZs3mtNRSlzzzovkvfN95iqrWzpPVvB5qxa3fPl yqV1bYY103GAh78R3J2VVKFKL96fomiuAiGCXfU/tB5kwMCiWF+eTNPAM1t3TncusIXK pvyl20fzcZoDxn+u25Vp5dc0is7jeLwxBEJVXa2yHpenV7xyRYTJ6IH1vByehi+Wv79M YFJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="iGs/G8Fk"; 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 kb17-20020a17090ae7d100b001ef9de17d2fsi3870155pjb.44.2022.07.20.13.05.08; Wed, 20 Jul 2022 13:05:23 -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="iGs/G8Fk"; 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 S232055AbiGTTXz (ORCPT + 99 others); Wed, 20 Jul 2022 15:23:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbiGTTXy (ORCPT ); Wed, 20 Jul 2022 15:23:54 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79D98528A3 for ; Wed, 20 Jul 2022 12:23:53 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id s18-20020a17090aa11200b001f1e9e2438cso3027030pjp.2 for ; Wed, 20 Jul 2022 12:23:53 -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=iGs/G8Fk8ICWu/8fkztpMX5VcYaKBChHqfCs1g5Yp+fv5KwxH+DRPv+4Cn9Le5g9hq 5g2I2tD2ixzrPbpgPQSJSEcBaa1BeEyrnJ+uyosHqPFaWgXDfL2YVrSv3v/NtEukLPuW RCVHM/eSjFmbUh1z9d2RCywE+GRiF6jYxX2Dv0ppyXm4qaCZ498dXsnvvt428KcKUzlg bnmpjbxCLgFb851k+iBmTb02jv5bwsI8tB1hKW24E867I8ebe4Sm1ETvxpJ01mDEQIJG R0Sbj2sgj5wCd2H6wstT6sWfqMUoXQ3UZlOVdFy3okYNSStxgxE4GEN5XOeIfpk4LsTD /M2Q== 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=EuXwSMZ1fJRHqfRkfz3UGPfOmUwaWjA10mB2Ppk9rTy1iLZSYpM79jY7z+U2uRI+kS jcy17shCl4LH0Ov1MUZZxRS9H9sleRz6874beWlTvjDOO6/megySxazIm3+QqoYjLNcE IRvAytZmbxF55jbiipZ0VAU31N/F2/jYDDbfoEt4TWjxe6MMLacbx8MyqsDD2Tab/iBA VHnwINb3HN+oJsB6vvBQ5TlMiYsA+EHppGOF74CnjxEEiE496KzzIlGOxn9kIFy8mwUR rDQzXLknG8AuZPDH8nm8tyPkMlU9QD95hV02bwQ9tucEBc8O5lmlzb6Qs4LFSj93V4NU +x7A== X-Gm-Message-State: AJIora+INZHldv27Q/IZV24Tjo1yP92Dz6TU6pXy4rFUQXBY/9OhhDYk MT5skn4eXfLKwSZ+kBSzQduOvQpfnEmFKg== X-Received: by 2002:a17:902:d2d1:b0:16c:223e:a3db with SMTP id n17-20020a170902d2d100b0016c223ea3dbmr40728628plc.37.1658345032791; Wed, 20 Jul 2022 12:23:52 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id y23-20020a17090264d700b0016d2e772550sm219902pli.175.2022.07.20.12.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 12:23:52 -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, Liu Shaohua , Niklas Cassel , Palmer Dabbelt , Paolo Bonzini , Paul Walmsley , Philipp Tomsich , Thomas Gleixner , Tsukasa OI , Wei Fu Subject: [PATCH v5 1/4] RISC-V: Add SSTC extension CSR details Date: Wed, 20 Jul 2022 12:23:39 -0700 Message-Id: <20220720192342.3428144-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220720192342.3428144-1-atishp@rivosinc.com> References: <20220720192342.3428144-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=unavailable 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