Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp807352imi; Fri, 22 Jul 2022 09:54:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vRfGr9H50sXLjUcLupRktnHk+/y80oamBkf1JB8aMtAzf77l+MIHl6J+GmHWbMqxzrJ18L X-Received: by 2002:a63:b44a:0:b0:40b:8ebd:524 with SMTP id n10-20020a63b44a000000b0040b8ebd0524mr563662pgu.207.1658508841594; Fri, 22 Jul 2022 09:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658508841; cv=none; d=google.com; s=arc-20160816; b=bSq9bj0YS3s6JVw+BvbdlQDjVH7ycqhyq2wtyXXBFtD6iob7pBC2UQF7jAezDIrt40 0cqz4R/6vrhB8mGocZDu2QkY01IIzujoktGFs9C7+VMeUr5OkxG2s5qEGqOaZCEHaLAf yIn0IAN6gryN6gQ4AJ3drPDdoeCs18e5VC7kRbaWOAAktIK/90JfJ/vktpiWCPkPckqL HUeqzJkwP6fWNOejs2tuEnZo474LgZRiAsJHdBGotK6QDQlJEoGw2Ox2hoqLEWH64dpX Vs5xwGddpdgUJgoNgGhUGLSeL/00cnUIYH41GsuKOL08F435KXIKl9tkg0PRu73nxwl3 VfIA== 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=T69uoEak9/lUZPKZGLnvuX+6XExWMqxA9fhddrmwQmikudb5qGHZ0ixSSi6y1QrhSn 3gGqMJeOBMOt9haIflZx1dkKVqE3Fm3jA0+iO8NRBAlg4oJ+1hSyQGaVVFZ5ErR0Iz4k p/unWV8mIDcoWiiqr0bCPlwqgQmCOg9g0Ih3Lx0ExBJkOREiwoARYRAhYiCdeARhK5Vc kFsp6HJTMHfUwx0PCSSc+jnlE/nD+fH6PnHE8W2or0e5l6VYNWMV5aM3qm3cFSXmZ2vs onEitQ57raHOvKn80v9/sCtGoSOZj0gLSlAyCwq6juvDBx2A6FurE//10L/nTkaiUS02 FacA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=7tomhJF3; 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 126-20020a630484000000b00419ae71dafasi5532474pge.444.2022.07.22.09.53.45; Fri, 22 Jul 2022 09:54:01 -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=7tomhJF3; 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 S235943AbiGVQvE (ORCPT + 99 others); Fri, 22 Jul 2022 12:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235870AbiGVQu5 (ORCPT ); Fri, 22 Jul 2022 12:50:57 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E2C92A260 for ; Fri, 22 Jul 2022 09:50:56 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id bh13so4884058pgb.4 for ; Fri, 22 Jul 2022 09:50:56 -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=7tomhJF3u9LLXyYKG/mq8DM+QQ5eXZlTmLQ/bRtzbuFTsoGyHBxFMuvLF9qFtb26F0 7nLXbAx65p0+2AImCE2S5PQ8m6o5oHJbnmu7aaNWTr9cmaTfyX/W8lpenujNRCaLf7Dx pZ1WFMUz4YOgIr5bZZrSJir6FzhWmkFhsJ85EqoL+hdVXHW/QxnfSaFeDh09LlnVytZi jCUXfBfbQ8tEWhDDuY9lEVL0Pbx0LjXwtUjFT++6Ejxse9NuUgPOiP/1ts68BBDr58U8 5oUiDb67b1rZgKGa+zUEfvOfPfGea9NSwkjUv3c1t7fUFb6Ja+kV3bW2HBmJNIJUhAJ6 aong== 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=H4imSP0FBdNEDs323CfFDw7QgZJq2iEmwz42HSZE1a2/cyBt7d2w3Lv278qvgCkfy5 KbKUueuHS7CZmR9MByTqHUSfKLnBTRPDiON8V/yd/HRnYJIc7+yFAAPDhDqAaiNgPAaD zSs2fZDQirrjlK86IMpu2qcS6eesSU3xwLtAisX2QG+dnMfq8FVHwiTeuDEioq5iM9oj CsQ1EJBC4mOqRmcQWOF93P/Onf8XOjacZR7nYe/aXtHCYTLEzmEEV0pSwFXrXS17xo6r uBv+RrxSPtuLffrufC5Pg8Xgad97FUf6FugcdZa/vnV7cGBqISql7M+w3UMEfPf+4TED nj8A== X-Gm-Message-State: AJIora+t8ITP+uv6tfHdXGIE6hxk0dz0G8lTt+rBKj0DRbKC/K+patCU UTIjwE7TWOBkw/b7oN6ziFbp7+wHI9o94A== X-Received: by 2002:a62:4e85:0:b0:52b:3245:ba20 with SMTP id c127-20020a624e85000000b0052b3245ba20mr767732pfb.5.1658508655499; Fri, 22 Jul 2022 09:50:55 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id s7-20020a170902ea0700b0016a3f9e4865sm4028476plg.148.2022.07.22.09.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 09:50:55 -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 , Rob Herring , Thomas Gleixner , Tsukasa OI , Wei Fu Subject: [PATCH v7 1/4] RISC-V: Add SSTC extension CSR details Date: Fri, 22 Jul 2022 09:50:44 -0700 Message-Id: <20220722165047.519994-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220722165047.519994-1-atishp@rivosinc.com> References: <20220722165047.519994-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