Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp190455lqe; Thu, 4 Apr 2024 04:03:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlmqGjaAx4FZ4BUxi35D4We+b6aWQ6mDXsEmP4GSFtYR4HuKMfD4JmWQpOsMNrX3LcT+jJ0RPyin+c5wWzZtYpmb/5Jyt9ruP8ZvMYeg== X-Google-Smtp-Source: AGHT+IH5ezSkhk7UooOAMnxl42NTumvDGCqfQhjWByOUbunhuSc9WZzDuQIyygPHl3VnC4uTrQHb X-Received: by 2002:a17:902:ca05:b0:1e2:3e7f:3b08 with SMTP id w5-20020a170902ca0500b001e23e7f3b08mr1614371pld.38.1712228584732; Thu, 04 Apr 2024 04:03:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712228584; cv=pass; d=google.com; s=arc-20160816; b=CvYNJ+aJ1/NIJjK3bel7w1Zf04bKd6YcXGEaBFqnb/qIazz+YBe4LmXsRBitXUlchm t/eOBv9n6K4Zd98n7AFtmQ7vZQH14XAOuC054dxOk4CV/V1Qmak7gXkCif35++K5yHLE N68qKb+i2iHVmA/k2JtWmskjikr+PvFaUXo+361fvRGYUZ2zNFvyrLZ2HGHygafK+koL NMDHSWEFpAk0qPOx5yPJxuvOuoGo40xuWW9hFCoB6wNWgGHh8BwnGZxOWapASFenFCI2 jOOh+qN7YMYF75qesTJ/2l7ZB2/HE88wfsO6Po8wGN0or/AkFzQX8J8hiAlYBMHh5D/I nhyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EFHFiM3SNW59iwbZR58YbB15YVKnaSxrhFOdislttik=; fh=q4G1CkHo+2Oq1ZAn9PGAqA9MYbnmlt1G3gly5zl1yeg=; b=qwJIjD+ffajeH34bhXNvhNmnJhu7FUhtu0b6HxKwxhsaHZTMTwUqVc0/N2dsyhuPlY 4eeaQJBIlXNFdHEVOy5fsajYQTxrWsPoUBYtvPUQjiGopStul76OiuS2boPjeTzAmpJF tRlvHNLWX2LpaM2s/lA1/Lrddu+jzjUG+apik5/C3zfxRC4oPWRG9U91MsmXWE3TEg2E QqZ6uNS3N66fpSA5Ev5iH11NYyJXGZOeMQmdGXOn5H95nM1P5cbC9yIVncJ+K63sJ0ww xvRsRGCS12Si4Zrx5yCJqaaZLRb46H+wLFVeI5NHOm7FScdFFmKvJoHMNVb1NpNuGTkA IGVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=ls25L0vf; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-131267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131267-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l2-20020a170902f68200b001e2a7f5099csi1484607plg.275.2024.04.04.04.03.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 04:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=ls25L0vf; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-131267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131267-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E7F29B223C0 for ; Thu, 4 Apr 2024 10:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBA7780C1F; Thu, 4 Apr 2024 10:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="ls25L0vf" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 0463C80049 for ; Thu, 4 Apr 2024 10:56:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712228201; cv=none; b=fOlCuFGPhZwpeCmxGm7clQ+Eh6sjXadPqGVr+4QnOwKAOJ4SDrbx7oT4XjeiVCcYgZm2SqhRGgiEeCtdEYhsU2u4vlF/5Gc9qWovw42wkCgtvMPtyp3kIzhWKx2NW56fT/IEng2z3t7OQVM0/bCsF4hwzjda+TgJn2POIr0drgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712228201; c=relaxed/simple; bh=ILJL7HVZXiFmQJJigk5doa9mj2osaYbOmdnt4D25RYk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t5clm5lf7hLQN40cbpKngl5qUxS2l7aTGvfDDjjAvYWcPZcVYGgNoPvbspC2+WmksHLeTJh8RK81Viy6ypvfGZeT3otL6Xv+DuFghuXW9ApQHbBEwhh2wjuX5vrJT1eqkJ339QaOWFjnQSP0tWTaj7B8Mx9mwLiWOP+cFoY9/sE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=ls25L0vf; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33ff53528ceso577422f8f.0 for ; Thu, 04 Apr 2024 03:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1712228198; x=1712832998; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=EFHFiM3SNW59iwbZR58YbB15YVKnaSxrhFOdislttik=; b=ls25L0vf8AIRxamXmlvbryDGvwgL6FELj8Kc/p9WXITVooxCUcq3h6CSkdjN13lBXI RsEHJkOqC7ueTL37LjjW7vf6VuIgcPZbxodGleL8KM83g/OVLGkTmrM+7wWidbF65W1X aOd/rQwYOXsTkjwn0k7fB1l5iidi3SpHGwTjuBmuMpXexC3MJEzgCtxJtJIzlHUqQA8X hfGDEQKJDSlAY1rl6X0Wlx9FNEuYvCnHB9H3CtgZ6Yb4Ze79ZWynrhpV8ZB2s0epx3Fb 0OLauckwBZZQ23IGiCUtzY6mN2mZ6QyeYtqEYs0c5EvFkCMb1cep6+q6Ofu3gpTCpnFd Vw7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712228198; x=1712832998; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EFHFiM3SNW59iwbZR58YbB15YVKnaSxrhFOdislttik=; b=RUYfUfiqchNyQISR6Bt3pWjGFD6M350TfSPs7Kg0W3FM3fo2O0O38VmOhm+dSNVFe/ l4kOG7IQ/Aam7HqTICZWvFafGm2aFURi3WxRWDHPX3pXjjuqo590EE6c0r/IyS6fgR8t 3uWkFYnUsstVk/b9ah1fY+Vi8bpLxXdgifm2w3zuR4/1RkRtQ6z+gLFN2y57D7pc1uD4 kb5xvhlspIH+7Hz5s33M7hgNa/A5sq3CtoQnHRiL55Be0BjBp9iJH1rqjKZJVbo78wWG dIx1wV197TP1OqChG/qrjHTU+7czKdkKThytS8kG6Qd1aYVrQtfDfc0KA5LbHt0pEVmn nuZQ== X-Gm-Message-State: AOJu0YxWd56sNlte2urxZ2LUOgUvRZod2qFgNOXbFGV3SLIOPWb7HG3F oRohbdsJiO2kf5fnQoWiYjkpCNACs4Yg/UZDwHGwLrfs0gl5Z5rryh1WgHZUSqE= X-Received: by 2002:a05:6000:1805:b0:343:7158:aace with SMTP id m5-20020a056000180500b003437158aacemr1379890wrh.17.1712228198219; Thu, 04 Apr 2024 03:56:38 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id f10-20020a0560001b0a00b00341dbb4a3a7sm19705617wrz.86.2024.04.04.03.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:56:37 -0700 (PDT) Date: Thu, 4 Apr 2024 12:56:36 +0200 From: Andrew Jones To: Atish Patra Cc: linux-kernel@vger.kernel.org, =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Conor Dooley , Anup Patel , Ajay Kaher , Alexandre Ghiti , Alexey Makhalov , 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: Re: [PATCH v5 01/22] RISC-V: Fix the typo in Scountovf CSR name Message-ID: <20240404-9c750d13d89168feb5ff34de@orel> References: <20240403080452.1007601-1-atishp@rivosinc.com> <20240403080452.1007601-2-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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240403080452.1007601-2-atishp@rivosinc.com> On Wed, Apr 03, 2024 at 01:04:30AM -0700, Atish Patra wrote: > 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 > Reviewed-by: Andrew Jones