Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2554634lqz; Wed, 3 Apr 2024 01:08:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxAm46Af8nyippCnhc4urSnHzZz8oMzqRBV3exWcjG4TciCi526jw5XYotOAAUv0nRIRzS5ToBpvrEWrSXhrBuRWkdRygWo8oX+51UNA== X-Google-Smtp-Source: AGHT+IEF3MAEbCXc9Gk/Ly4h/Ez2ZseNsLT0ThD/LdEjcwFX+76tLpwQmfQxKblIxXz1syBGwGly X-Received: by 2002:a17:902:c406:b0:1e2:1e1a:bffc with SMTP id k6-20020a170902c40600b001e21e1abffcmr21214578plk.2.1712131708210; Wed, 03 Apr 2024 01:08:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712131708; cv=pass; d=google.com; s=arc-20160816; b=XaAZDRuWAB47kU5MWr7wRZYekj4p+zkmH2NIZuTREaAjektcmKnHRtH9PkGv+Hr24A 6/rGSXLL9M6wcPmAwPjNvic+3NYKBMI6/5ExoxYNvMBsdqFJRm6kElqEfdcp3mZCna3R vsheTtGIjoBu6c8lX4/FSJ7pC+u/Y9QbpF8rMFf0YoqWNLNEHviGpkvHxpp3hqKstx6F EIEyJul1lbRSKSSk9sulJBcfQLtd7yKwxkhYtq3ssA6Te4nlf/BRBZAEKAY0wGa5HWlL 3E2RTUqCCiFFrvhEOo1ZW/BZIpE3iLPvICGhyvACPn2azM3VGDA2TpblNnuXclViGE6W EtDQ== 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=wk9dPs2pdPMy/ouYyBMSDOPD1OQUOIvovvehkpc98kM=; fh=z+KhYDY7cGtdJOxZnMf8wQO0UGxPzY6dKgHcitMejZY=; b=usbrF3dDfzkWy6gQd3oxwDkrwmyIFc8ZlU+cmmvr5Ch8lrDULi05u3kXP/t0wB5knh ppN4sO3YWut1zMQgZ4L2l3SyEde2Kispb72ARNLAU3CbGNgKxYQLaIfmHt8MeiiPh8xu J59fJIwBYzwVCUnsumbPOTehPUeU07bP/2T+07mX5Qs5Rp4dXhX5WOoXg1xdukAxm3qv +zZo8NvIh7+g0Ev0mhwyitE25dXxS+6WF2FDqMIe7CX8VpnSlGt9PipdWNqxA4HKSEpP k/eMzFriuv02LJC/M2cWayUkEWGPpqXXvB65PVtTBZOFwA544rt7yQ6DCrx+5UnTCp7O YBVg==; 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="Jh5qO/+J"; 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-129241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129241-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lk3-20020a17090308c300b001dd013a3cc2si12928660plb.199.2024.04.03.01.08.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="Jh5qO/+J"; 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-129241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129241-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 122B52898D7 for ; Wed, 3 Apr 2024 08:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A93AC6EB44; Wed, 3 Apr 2024 08:05:17 +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="Jh5qO/+J" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 660956CDDF for ; Wed, 3 Apr 2024 08:05:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131516; cv=none; b=h0iQuGsoBMLBtcx7u/r9a7RaeYwhKpEgrhpPL1mxGS0TgGimtdTJZfRO8m7FFnh+I77QWhWts0atXOt7sSg4Kg45NKxttxCsKZ7/NQ9PG95fwuL1WNl4NKsDn4UVU7WmKSWKaRcH8iNzBmpg26JpwCnilRrz4laXPognr/SJ3lM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131516; c=relaxed/simple; bh=QPSBE9QZ9I3ka5tiVYaLmRJclnGfjz8CpXpruGJQvzE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=UbEPKDl9ucKoDMV5o9dpuKVAaid0RHhYw0BCbksKxEDc1pOHjiEDQrh0X3EhYgL6aT/ZtnTSWV17psy4CJw1csF3acwMwCD4yYghZYryTctw5pfqEXWUUNRxxbiVki2s9lPncDwEDtwB4PDITidJjRPSN/O2+en+XDDoBtlA4CU= 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=Jh5qO/+J; arc=none smtp.client-ip=209.85.214.172 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-pl1-f172.google.com with SMTP id d9443c01a7336-1e034607879so48828415ad.0 for ; Wed, 03 Apr 2024 01:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712131514; x=1712736314; 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=wk9dPs2pdPMy/ouYyBMSDOPD1OQUOIvovvehkpc98kM=; b=Jh5qO/+Jj8wcgB/ufwV8mJL6YrXrofnTLzFgpsa198jYW5k5XiCnnki3noQara2nHb WQF1f77pG5O1RY/JA+lZX4FwJ1w8kw/JGKEF0bakvmaZ8dml+I4Xsnp9NohJ6a+VTH2B o3kGPlqwG64nEH5r8P1OckbN3reFARfNvvdd+PJPYyCCiEfMWY6977kvtQQZVJpotM2c v8Ed4pDzJxrfwfrW1skSjD39oUIDU75+iWOAoH1Sb2eB2G6MBl+yMMALvj3XOLelGyIq 5oYhbCaGMuIp8kfy7MuENeERQRMWoWOlmJ56aRckrkECIz8ShRgnF2/oCfe/QfKPqe7n Hk9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712131514; x=1712736314; 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=wk9dPs2pdPMy/ouYyBMSDOPD1OQUOIvovvehkpc98kM=; b=kEqKN+Wz5J/X0ztF0caZc0PKOm61K97/nl4b+eBYR3F2trW8P/rxOXjTsXWiKSw0C7 I80Ibp6sagW3BB8HMSSK+uIGXa1slOV/hRtQ2+UsTgv4SJ63Bp+GFgZ/n5PBfN2JWBUo MyVUm0YjQmPOV3c355RBO84Wd1Fipu46yiGCt3fyBC4xl6GspGiJG5fAryi0Dck/vCtF iMPM/ZA+WpMbyqtbuhJQxTknIR6Pi+CG85bJB72ikXyNpbwSbl/Tag2wVME1o5TV12T3 Ll7NgI6Erj4dNYCZ+i+I+GyyPjpNRVR4r0zLIt/lnUVN2D8uchv++lCN7iy6ZMDEthJt qy3A== X-Gm-Message-State: AOJu0YxAee41f5/H7ZGWdxvD7pa86acbTqTm5k246Nr0BPpf7Tln6x1x KCw+nCtzju1InQsXspeh+nsi3P6EbigxcupCYpN9L6fZDY6InXHJd98IkUL66UHkZJ+tFeCg+S9 u X-Received: by 2002:a17:903:292:b0:1e2:6240:72e7 with SMTP id j18-20020a170903029200b001e2624072e7mr5865569plr.53.1712131513754; Wed, 03 Apr 2024 01:05:13 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id c12-20020a170902d48c00b001e0b5d49fc7sm12557229plg.161.2024.04.03.01.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:05:13 -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 , Ajay Kaher , Alexandre Ghiti , Alexey Makhalov , Andrew Jones , 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, VMware PV-Drivers Reviewers , Will Deacon , x86@kernel.org Subject: [PATCH v5 01/22] RISC-V: Fix the typo in Scountovf CSR name Date: Wed, 3 Apr 2024 01:04:30 -0700 Message-Id: <20240403080452.1007601-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403080452.1007601-1-atishp@rivosinc.com> References: <20240403080452.1007601-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 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