Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4792571rdb; Fri, 29 Dec 2023 13:50:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcRPJ1ZC3YGmNkWJ8xu0vVhWJUoi31P5pvHsDF1g/sxWaTCbV9wSif3Y62PPD/6UpI+Qf0 X-Received: by 2002:a05:620a:60f3:b0:77d:dc8f:8b2d with SMTP id dy51-20020a05620a60f300b0077ddc8f8b2dmr17502938qkb.8.1703886630441; Fri, 29 Dec 2023 13:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703886630; cv=none; d=google.com; s=arc-20160816; b=W5a7HCiVoe6MRBGJuZ78sM9dExMNar3XiVJdG7z3D3IEeh9hK6QCxjche0uD6nu+tK B0OEdRtM4021HkSx7TSjgrtXR/eke2q5wMNJrsQIf+Dt3Kmvk/QFwhh8D8IPTeZfd+Jl A684mom/Ggct0hTIEJQxCzgDDW/pEH4O7gyRHSW4zLR0bLOiPgJedqO7HaIcc3HWMUK8 EZ8sM8WrMdhbrxQ1L4Xlgkjv3UR96PDYsvUXvUTSynETS2cW1Hn0MIuTyxV/PpXswAFi VCyrwQ5SZgk1AU5Ep0IWrpNAKEVeOMhz/K2KFCY1ZAp4bot1gPV4ahav94o5kXS5ZYPF zYJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EzYVT3U62jOpimrVBwbFtsr3YzUGPIXyIVj0onyqTs4=; fh=qhaAmyzb9gibVuzCW6xibBVG7JzVIPMK6bpDbf4wst8=; b=aexn2LvLxqTe7dCMPsDLzoU5DhaYin5HwJG+hbIrz0YsWDlsdzIdN5p+bRUPHlXLsm bQoIh3uElfrneEUC2EvEd2EIUk0ERMF3Igk3Y/BXSIh3mJHnyMFmalRE7dpK2iuWyYK4 UZnKWHsiqqJklPLVe1jRog4psrDihQgJgkKx4ElrHCCjiCn+4O5ThdCKUZU7qpbghqxk Tr6WCn4K6/MH5Dojr4gS97JK6V82g0ifKDhObhyLUSXW3a3jqkeXcouYPr+p6hJX03lc aOYWvXw2iIdWkX3knyAkFd//w/rK1TUX1RYe8Zb2+no7kBIEA7hxIL8H+bE6Mynr5NyF 54Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=TrgNKAWJ; spf=pass (google.com: domain of linux-kernel+bounces-13248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13248-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z27-20020a05620a261b00b007811b134c42si22646616qko.197.2023.12.29.13.50.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:50:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=TrgNKAWJ; spf=pass (google.com: domain of linux-kernel+bounces-13248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13248-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 362A01C21A66 for ; Fri, 29 Dec 2023 21:50:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D381714F6D; Fri, 29 Dec 2023 21:50:04 +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="TrgNKAWJ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (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 A4D3F14A90 for ; Fri, 29 Dec 2023 21:50:02 +0000 (UTC) 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-ot1-f41.google.com with SMTP id 46e09a7af769-6db9f489cddso3171421a34.1 for ; Fri, 29 Dec 2023 13:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1703886601; x=1704491401; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EzYVT3U62jOpimrVBwbFtsr3YzUGPIXyIVj0onyqTs4=; b=TrgNKAWJGHw/Wzak7PxJFPG39pUIWmu8QUQlOeVjJr3tXRKheNpLr+0s12h7Njit4y aTo3eDEEq2YMWqyy19UU262rUB08KED62lukkFGy1nVrBTBebH5l0s4fowycFRIhsqKX eM8EvaveZOFRjgJM4md7d+4lfhdLbxwrSjh8WIpJQBk0uY/U0810eT0KVOw0MsFOOYeD oUOq9Ls26UlIqTidTGFs0yxfBiSb163/4r+pT2tCJF4qMDh8MzNoEWtHUVjffLfM7m/9 ubEPqTAkXhupdniNVFx3fRAyyb2bicy7mkUwnqu+qWUxy/+m7AnOnnuRepzuOygXdtGy pG5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703886601; x=1704491401; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EzYVT3U62jOpimrVBwbFtsr3YzUGPIXyIVj0onyqTs4=; b=iEkxBOSrSbZwKZeQ71e/iTv0TPmx449jCmLLNLThGQzdf7kaHoAdkuiCY9ECVAzEb1 z8fj82m8nxXUwwnwgilgs0m2I1VH7R7cu8+CmtD/p4C1aJP9CzrYocaEh4PXa36RR3FY Rx0ec/VbdT7pC6lkTmkUeyJTSCrP6VCOzDacIDepQqYW9SdjCH2XuBZE+zQQLRRq3wgg AnsSbQIyHdZTwcJUVSVnXah/NOTD4QrriywpP6KPbiRqRjQzoN7oG0S7wad/5iJEyGhN Gk3D7lltfMeANt9ykvZZO0ABpeSljOr6eODD3u5e7+h9bHZmkitVsv0yZT4ZAUyFprPK RXFQ== X-Gm-Message-State: AOJu0YweSyhGwx7SYTIm38G5dfLhB7xPBLWjj4lJa/SKVXKGbCS2hG+E ozdbkgpRLjGxDCdVGRSLCJ+W1w6z1qNcMwZVlVNatR8Q2Kg= X-Received: by 2002:a05:6830:3b0a:b0:6dc:1846:fd with SMTP id dk10-20020a0568303b0a00b006dc184600fdmr883138otb.16.1703886600858; Fri, 29 Dec 2023 13:50:00 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id r126-20020a4a4e84000000b00594e32e4364sm1034751ooa.24.2023.12.29.13.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:50:00 -0800 (PST) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Conor Dooley , Anup Patel , Albert Ou , Alexandre Ghiti , Andrew Jones , Atish Patra , Guo Ren , Heiko Stuebner , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paul Walmsley , Will Deacon Subject: [v2 01/10] RISC-V: Fix the typo in Scountovf CSR name Date: Fri, 29 Dec 2023 13:49:41 -0800 Message-Id: <20231229214950.4061381-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229214950.4061381-1-atishp@rivosinc.com> References: <20231229214950.4061381-1-atishp@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The counter overflow CSR name is "scountovf" not "sscountovf". Fix the csr name. Fixes: 4905ec2fb7e6 ("RISC-V: Add sscofpmf extension support") Reviewed-by: Conor Dooley Reviewed-by: Anup Patel Signed-off-by: Atish Patra --- arch/riscv/include/asm/csr.h | 2 +- arch/riscv/include/asm/errata_list.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h index 306a19a5509c..88cdc8a3e654 100644 --- a/arch/riscv/include/asm/csr.h +++ b/arch/riscv/include/asm/csr.h @@ -281,7 +281,7 @@ #define CSR_HPMCOUNTER30H 0xc9e #define CSR_HPMCOUNTER31H 0xc9f -#define CSR_SSCOUNTOVF 0xda0 +#define CSR_SCOUNTOVF 0xda0 #define CSR_SSTATUS 0x100 #define CSR_SIE 0x104 diff --git a/arch/riscv/include/asm/errata_list.h b/arch/riscv/include/asm/errata_list.h index 83ed25e43553..7026fba12eeb 100644 --- a/arch/riscv/include/asm/errata_list.h +++ b/arch/riscv/include/asm/errata_list.h @@ -152,7 +152,7 @@ asm volatile(ALTERNATIVE_2( \ #define ALT_SBI_PMU_OVERFLOW(__ovl) \ asm volatile(ALTERNATIVE( \ - "csrr %0, " __stringify(CSR_SSCOUNTOVF), \ + "csrr %0, " __stringify(CSR_SCOUNTOVF), \ "csrr %0, " __stringify(THEAD_C9XX_CSR_SCOUNTEROF), \ THEAD_VENDOR_ID, ERRATA_THEAD_PMU, \ CONFIG_ERRATA_THEAD_PMU) \ -- 2.34.1