Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp962416lqt; Fri, 19 Apr 2024 16:48:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqS5NyS0B7gGpqgUqOHZqQdtCunTHfO8ul8xkkGI9vLwZjtyTjb5B3Vis/w+IVysDU3hp6l6ay7ld+YwuF41EH+QfRGTegrTDhX6yxRw== X-Google-Smtp-Source: AGHT+IHzJJit6/7axdpjCKKjSMZFCJfQzxD8Dr0gIDtvmYZUIscSW9/SxAaz4bvtbALEVHAGE8N1 X-Received: by 2002:a17:906:f8c4:b0:a46:8daa:436f with SMTP id lh4-20020a170906f8c400b00a468daa436fmr2280883ejb.69.1713570493395; Fri, 19 Apr 2024 16:48:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713570493; cv=pass; d=google.com; s=arc-20160816; b=ioR43GWdbIJ/r9oottjuuXwP75UkLTMl6eK+wHj9UmOuvLq0SlyLJiGTMAYiYnXNez A/fnKvRM6AsiUmz1FRJ5FA/rmMedK4VIZN44GnMkSPNhcV3mAx7FEjZ7OktxZrJnucUr O6scXKYcz9TvufSt/dwRKrGAjj7yoUjwXTWkRHwpgKk0Q0z0x0+E57FJ+j4FiusZvlcv 5h/PYj8m4wq6qyXFa7ACkKh2/JboqhIk0FHAarF0DMH90JXnJV/ZNdMH6SSBDCIPherO jXfFTBx0ZJDMH6lVX94hTpqGoQhseo9vpL5YN5FKC9n0wEs57koIfyfkOR2hIFTmVgr3 p7pA== ARC-Message-Signature: i=2; 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=T1oS0ksNazYXtVOBgFTjTYlhVVLdg1h0owq7BrHVbdc=; fh=g/H+ymCW0gV9BNGwO+LFib9EC7Txpo1SqXQX8xrW1ig=; b=VkGXTLUXFz+pWDTH2nnVd+C3jW5Q0AAv4sTMH2yWWf3rrkzwsLIhwhGzN+YaSthbD4 XDRfQaNh6yqznF4LpoUJjPxJ2HeDOzivQSQS7BSz1xrz/orysxn4vxABXfkG/YnAT49R YeQqlp8CNIDSdfG9zsUyuZqjPQ3EKQHv6n7IWaZ/xZGglzsghTtX9VNm0j1q47mZRWo7 qwEKd2ZKYdC5XKfZlyZJ0Pu4KtbPhaD0qnkhkCWHVtEjEZimedY6LRY/Uo9B/3W1hHzA Ae5jKRPh+Fd8r/ZwJ9pv4NneL1jhsMYne7VqAl/tYOvfDci7hfoi2sPnig2umOXYtKJu tFmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=KTw0WX+0; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-152024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152024-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sh12-20020a1709076e8c00b00a526ae70bcdsi2794053ejc.738.2024.04.19.16.48.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 16:48:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=KTw0WX+0; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-152024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152024-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1B4DA1F21B8A for ; Fri, 19 Apr 2024 23:48:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFD7A13E3FA; Fri, 19 Apr 2024 23:47:49 +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="KTw0WX+0" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 CFB8A13D8A2 for ; Fri, 19 Apr 2024 23:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713570469; cv=none; b=k0y6tXWDKsQjOXhIiAE3k/nD/Hc9PQw721FP47E1Eu4IlWs01RI0DjBOCBspk2HHlIBcA2FnJaTaB3ChSX/6wVBZRTaFuwuGaaOYuflx6MqZmQTZFoCNlQHg4J1B4pyB6QSXjZF+AIRyydbfz+3Xj9uL0+9XRc+fdphlH1d0Yo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713570469; c=relaxed/simple; bh=CuOqtFD3uDjWgSKj5f6SchwsQQ87ZPABcb+EozPDHPU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=fD8btIzSrslNxV62zXXBJ9drg42uvkr2WJnCqQVPjIIpuTZE7QkEb3batwUtfupwb58MdPqgs2yFgCmEcSCsBTSxjG3d3hrWjjOTUPeLHr8HFupR0jyetoBJ/WUOXijUC+5L5A4UUx10GVDkFy5fVBbsIOlB8atAHprQ17rpFbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=KTw0WX+0; arc=none smtp.client-ip=209.85.210.180 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-pf1-f180.google.com with SMTP id d2e1a72fcca58-6ed01c63657so2383219b3a.2 for ; Fri, 19 Apr 2024 16:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713570466; x=1714175266; 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=T1oS0ksNazYXtVOBgFTjTYlhVVLdg1h0owq7BrHVbdc=; b=KTw0WX+0VHeZWm/Yu1P+MpTSE4ZetoAr72TleH3PF3GFV5pOGPC4tVDtfvnR1KrsV4 BPPz+U5714OJ7tq17iK4t19S9lkSTqufBRjbl8uPjPYkQcA5cRRb+uWqMdo6quN7jabS VibQ85hrgFjIct8zX8fvIkzueZYcyVwG/8w2SkLcWCGb+fcPx5HKTKCFqkcx8i3jmcNm UZ1jHyCKteLCcIfkB2ZAH/dxv3+g0g/oU8ZJvykb020Lp+kU9fSmv24M4RspVEDnAL3g rzNmKHt5JhAXM8npJPp9452ZzVibC9ucVjMuO8BDVwM+bauCmfmv+kQxdn05dvqXtfkv vIag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713570466; x=1714175266; 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=T1oS0ksNazYXtVOBgFTjTYlhVVLdg1h0owq7BrHVbdc=; b=pHLrTq2n0yRHSkH/INGUV7STNxQ+bWb+Ld69eXWLewrZkhTJOAo4R/4cZ6kdOd2djm BqSBkGZEcgls631Pv9z0u/vAPKYrZFXQ0rA89AgCx9stNnK6pPTc6aFaDHZ74J0q4tqS 1jIrXIQ/stnpxJhoAxCKfEyX2fghJDhwyoFTb+l5oHilLRHQYNwm33q6XqTgkzwK1vmC QQYi5dD71SW0uZhI1aBd6K8Ym5S2l1IZzG2jhV3Fkm8BiwsqSz1EfRT7Yz2DI5BGyDBI AaK3nBROrB0/McxMM3zLUsKxQeyqA/nMqhGgskYiGfb67dYoYd/pC0ds4YgzO6I7+WtF VETw== X-Gm-Message-State: AOJu0YytciXSpkC2CvXFZMvzoa34fDZ/KjbV8wigHv09kTjzqx6FQVv6 Kaz3qeqEmr+ui4FXv9J4bLgPJr/MwYlO2CPKNFsKotGYGxYc4G52/HjIyGZtwbaqXnehIAqXEnV m X-Received: by 2002:a05:6a20:100b:b0:1a9:5e1f:8485 with SMTP id gs11-20020a056a20100b00b001a95e1f8485mr3527584pzc.31.1713570466351; Fri, 19 Apr 2024 16:47:46 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id w17-20020a170902d11100b001e42f215f33sm3924017plw.85.2024.04.19.16.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 16:47:45 -0700 (PDT) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Conor Dooley , Anup Patel , Andrew Jones , Ajay Kaher , Albert Ou , Alexandre Ghiti , samuel.holland@sifive.com, Juergen Gross , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paolo Bonzini , Paul Walmsley , Shuah Khan , virtualization@lists.linux.dev, Will Deacon , x86@kernel.org Subject: [PATCH v8 01/24] RISC-V: Fix the typo in Scountovf CSR name Date: Sat, 20 Apr 2024 08:17:17 -0700 Message-Id: <20240420151741.962500-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240420151741.962500-1-atishp@rivosinc.com> References: <20240420151741.962500-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-Type: text/plain; charset=UTF-8 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: Clément Léger Reviewed-by: Conor Dooley Reviewed-by: Anup Patel Reviewed-by: Andrew Jones Signed-off-by: Atish Patra --- arch/riscv/include/asm/csr.h | 2 +- drivers/perf/riscv_pmu_sbi.c | 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 2468c55933cd..9d1b07932794 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/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c index 8cbe6e5f9c39..3e44d2fb8bf8 100644 --- a/drivers/perf/riscv_pmu_sbi.c +++ b/drivers/perf/riscv_pmu_sbi.c @@ -27,7 +27,7 @@ #define ALT_SBI_PMU_OVERFLOW(__ovl) \ asm volatile(ALTERNATIVE_2( \ - "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