Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp151750lqg; Fri, 1 Mar 2024 00:36:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWkU/DhE7jn3mbtlOQP9ZpHTN2gzRHeX5RcZn4cHRqxupZrCZJqCCiE6mWZyynRMrVP3nEdW8vuXF3/nn6CNvy7Q0V+VZmEvrOCVNzCzw== X-Google-Smtp-Source: AGHT+IEWEk4ilszxsUbaVLyh1xRQYrJXHt+PnPAlZnnGumQhUVdszCSd+XWwfnYqDZIHerhUSulq X-Received: by 2002:a17:902:7686:b0:1dc:cf8f:f27f with SMTP id m6-20020a170902768600b001dccf8ff27fmr878845pll.28.1709282174867; Fri, 01 Mar 2024 00:36:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709282174; cv=pass; d=google.com; s=arc-20160816; b=BEbWYJI0Rqh+ac7bKt7IWjW6oHqvi+As/q4LEMUaY+CDqHKr3fDOkz0fmwF7nzP6GG CzBc4L+Lm2reZcPwp3AqGFx7n393IARSKXqFM2q/EsShE2NBu0mET91EorkqljOGji23 GDaePHwzQvKb5cSXrMbKKV+7fDkqunjGFrXwrA6gZxiVZy79MXdtWAxHcieigppr4Mcv K6sumxGykx6fGOczVYT2f8FVzzXKmAbGntmhpG1FQ7if+ctrVP/PKnhg+E87+7EqCJW/ sOdgqydQSEnBgwAotN5BhhnXAT2/EdZYQ5BE/wHHPI5x5SZq7DLbdBqe/dCQhgD+754v p/Fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=f0O2fV0WbAx46xM1Y6qPjUuO/OeNoTHA0KPqbfE4bGA=; fh=p8E46qQU8LMpvBqBl8PxA1rX8NQTQHc0ei0tfuc7Eoo=; b=yAX1/hIyGgSqMfaAbgEqiIynDnbdbA4ou+66XRtbSLi6CiR8g5zaCz6BhdR9u0ZFvC inFqj4NnKGneHHJhePYvgaRe6i9GiLxwyLhO/o0WiikBVzoNHORqXOYTaDB58RuJ4XGU B9/uAwpWeIrGoYozB0oNsMDF3yL4teVmqOyJUSQi+xZGOeDgQ+1Yr+JUHevO0fEZKnGJ RTfBOOQPPFftf5tPD5bbqDCD9pSDFvmc3ndQZMScy5U4HmBePhkmpzoD/FPS49i94l73 lWYIzQKR4MJ0uODA+r6qV4P3hx9f4htRtAvp3wE9EEl+bjqjJQXzKPWdwXGscH/a1TCE L+XQ==; 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=nGoccN7C; 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-88074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88074-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id jj21-20020a170903049500b001db3592bb36si2942175plb.279.2024.03.01.00.36.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:36:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=nGoccN7C; 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-88074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88074-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 0444CB274ED for ; Fri, 1 Mar 2024 08:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADBE769E0F; Fri, 1 Mar 2024 08:26:18 +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="nGoccN7C" Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 CFB5469DE4 for ; Fri, 1 Mar 2024 08:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709281577; cv=none; b=RzviC2g/4M+RPkeDCy4PUYzi5yejzKSDPn3yDpLwLflee49UFePuH9iVIUdJcTQ93hUPOebVmoZCfIFGTiiU+UyjEdry4ehJcu3R1tqnXT7avx2FS0dN0O+HespmkUxEQRCwsSF/2zJkbnbsolv+aj8SbPVNn8m/KjqPEQhjYw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709281577; c=relaxed/simple; bh=rGugC4CtKyBNC9wfpMo8MLd50utveTzcgNmmqGOwzrE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LZ4zHM2CbMFN+jsSpbPS3h8LZfNKpy3o3SNCWm4PXsf6I+JZYkSDrQOTP8/9V2UHhE5z86EzSM2Vr4oaVH9VAzEbWzNHvum6WrQAV+4HJQjZ4S8fNYl7dU/9D77d/srn3GL+kQT5n9ZRCg6nK9lC6yuQVIPRtiwbtKx8t+vhYkw= 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=nGoccN7C; arc=none smtp.client-ip=209.85.210.47 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-f47.google.com with SMTP id 46e09a7af769-6e447c39525so414637a34.0 for ; Fri, 01 Mar 2024 00:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709281574; x=1709886374; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=f0O2fV0WbAx46xM1Y6qPjUuO/OeNoTHA0KPqbfE4bGA=; b=nGoccN7CErqYXvwaklzhOj1brNmcnCXh6XJTx1evZ0OXdE0dfsLfrfIWF4ePNNeWrQ uZGTmeMbk/Ki+Wg6lixyv5BEvX5fztrVHXFWbuixWVd7cSR7ydQXt42AlUFi0hiEt0Le 7D234beEwEK28uNPVwXrw0naedz9oGOOgj6zRdFSTJMMDJX4dtWVZmEbdJcqNiA2IZMS Z77JDQaCtMXe+b+RoCJg6Kp0JevfWqqzjBHudfQ9OZySX9q8XAt9GFbSMbwrcL6ijUkE uOnkBTr5JJgcxtoBiASdYb2494Vqox2awB3QQlRZVM0L3D7tQj0GVAb+W7mff84fFqyu G/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709281574; x=1709886374; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f0O2fV0WbAx46xM1Y6qPjUuO/OeNoTHA0KPqbfE4bGA=; b=sfVfMnmG79LiBSDilo7Q8d78560LL7mWrjN3R/zbL/t5ROaC/mIz8ZxR4I2p7b+zmC dqO4uYJXW/sbm27itoCWLJRVzwNatv+WVQVmZnLlJxgKhee2uCfvTpnmnlxk3mLx+71i taaaM0qKjYG2xdbBCdsX7kMHQ8s56eMSOFKAlnEdholp43QRpB/KCedWC3AJCfuwBiqD OXVgMdXA8oNIXvOWQ6ZzNfxncMJ2tNlf1F7kCXZoapj0/T7hd2jA6Cq+l2w1gU7Q/+wV yVIIzWX3CorsyDNF4zyLWCQ+RbWABclZaijwLzK0U6+qMBHyr991SF7Fh3quhvDphun8 tICQ== X-Forwarded-Encrypted: i=1; AJvYcCW6hAOnd0fHYIpCK/I1KHAF1oE96pROcu3nrpBcrJmV+5ke6xlRPcpzKGBHG/9aWXnrrA0m70+eqEo4jg4ioZxsDAUwXfxfkB0ARcK+ X-Gm-Message-State: AOJu0YwMnwrfNE8NotY1f34acdhLlMbGAek7ypDCYIT+0WHw3rdEsfcC +LkB8mz8luOP3NmyNWQpuCEXW3iv9BscTe5ZWX/hwBngE+1oDA6Gw6Jzh2cc7is= X-Received: by 2002:a05:6820:41:b0:5a0:4216:c5f0 with SMTP id v1-20020a056820004100b005a04216c5f0mr887748oob.0.1709281573977; Fri, 01 Mar 2024 00:26:13 -0800 (PST) Received: from ?IPV6:2a01:e0a:999:a3a0:1070:febd:b4af:e79a? ([2a01:e0a:999:a3a0:1070:febd:b4af:e79a]) by smtp.gmail.com with ESMTPSA id r7-20020aa78b87000000b006e13e202914sm2449292pfd.56.2024.03.01.00.26.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 00:26:13 -0800 (PST) Message-ID: <9c466c89-3788-4473-a657-1f117cd5e5ab@rivosinc.com> Date: Fri, 1 Mar 2024 09:25:56 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 01/15] RISC-V: Fix the typo in Scountovf CSR name To: Atish Patra , linux-kernel@vger.kernel.org Cc: Mark Rutland , linux-kselftest@vger.kernel.org, Albert Ou , Alexandre Ghiti , kvm@vger.kernel.org, Will Deacon , Anup Patel , Paul Walmsley , Conor Dooley , Paolo Bonzini , Guo Ren , kvm-riscv@lists.infradead.org, Atish Patra , Palmer Dabbelt , linux-riscv@lists.infradead.org, Shuah Khan , Andrew Jones References: <20240229010130.1380926-1-atishp@rivosinc.com> <20240229010130.1380926-2-atishp@rivosinc.com> Content-Language: en-US From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= In-Reply-To: <20240229010130.1380926-2-atishp@rivosinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 29/02/2024 02:01, 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: 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 510014051f5d..603e5a3c61f9 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 ea33288f8a25..cd49eb025ddf 100644 > --- a/arch/riscv/include/asm/errata_list.h > +++ b/arch/riscv/include/asm/errata_list.h > @@ -114,7 +114,7 @@ asm volatile(ALTERNATIVE( \ > > #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) \ Reviewed-by: Clément Léger Thanks, Clément