Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp186142rbe; Wed, 28 Feb 2024 17:05:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWElwWD0Ffz0AZ2U+p/xjRJTMvOTrEW0r5tLjU2s/4qBEH2e/TvQEM/NkNHq8fRLj/MhOKmgH8MWwIxqzRKADu3kwmLDMe04AWdxBRvFw== X-Google-Smtp-Source: AGHT+IFTmb369OKSc5XzwaAc55OgGmAsK2xmXv6iq55rQ8cedUV0R5By2pSjJp1YvwZ2CncOx5qq X-Received: by 2002:ac8:5c47:0:b0:42e:3fa6:28a6 with SMTP id j7-20020ac85c47000000b0042e3fa628a6mr782001qtj.3.1709168741158; Wed, 28 Feb 2024 17:05:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709168741; cv=pass; d=google.com; s=arc-20160816; b=kmIKtSWQov5dpOCXgkLNdrljUcwi2FI516coRGzJzV52ndQgQOhq3K88nESjDVovvi KJ22zZRO9N9oxOJMdhjwIEkappI4+WWXKbKPUO2C4xQ3tQ5USGPexu8FxNuLLeNK3k4t FB9lWpRI/JNpAjIcDlqxYK2oIzT0FMovJtqoMIr6ULlbwh+A7DV5BhYqCA56cAsXWpKV D0vIjCXlpH/T8C6v8EC+SESEa2hH+4oz3o+Il7sOEFRw+G6fBHDkDEBA5iTHjKuEoiwj esTuvAN5mrlmLkSuWHBtKtPlXEAabAWXK7WQy+Zw0N+QYawHfBVVw8KkJwQNsf1vXO70 bMgg== 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=SchlyZ4UU3SdoafkJQBbnMQVK65WVY/e6Ayv+xuGpWo=; fh=2UJ1ru1CfPmwTFXv+fS+OCzBZpHoTquuD5sZ29e5B6U=; b=re8Ipo78lsL8usCd2wDEoz3LWpYwzXnK2OiD1qwUs5Z8Y7C+wY+8POS+TCKmpVDXzb Nl3PgtS632V9mXu1spUqJ64TQ1Szr6hZodmscv3HRD8KtCKzZnonzLR7sESLm/feKDMS 19I+XDJrpQYuBWKpGWzIf4Fb/JAtLSawTlKoIYM4HsnKHgxNr3ZRC0Eky5oD94tpIQmh Sy5XFu8bRgB3nwRTkwanjtpHs5FWeznR75028QbculmSVvS9D9tnHhDMYZDJVzaJr8T6 5YRyryLO5I8WwE85Le9rHmCTFLzWBiNGhj9UaZlkKlX3C6bf67P+BDn3tT5y3iXdHbc3 8kEQ==; 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="IoK//gjw"; 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-85968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85968-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 bb9-20020a05622a1b0900b0042e67816152si415233qtb.87.2024.02.28.17.05.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85968-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="IoK//gjw"; 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-85968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85968-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 DC2FB1C2343A for ; Thu, 29 Feb 2024 01:05:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E4A2446B4; Thu, 29 Feb 2024 01:01:47 +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="IoK//gjw" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 28CEA249ED for ; Thu, 29 Feb 2024 01:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168506; cv=none; b=DIR5GIwImWHUOyeJTJdIqEOTJrXAjczBDa5u3XHFmMh7KiKgZcYmOdaWZtGaMYQaK3LUb9bSXwpQE+ebPOClfX+d2ZMhM6NKZZextPhImpjJ6EMXzHqDMayuLm/mAv6GbyH1ugJ8sjcQiCKgPxpB1BHQjLOcLcfBiBaVbvIfpAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168506; c=relaxed/simple; bh=sofJnMZcl8hQjOX/gFTKlCCw6YYdT3jB7PUh6wxX4R8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PM1mZeRAaveSWLOPiEshWMWAya3vFsI3FH91Sa73IunK4EqmrZ7c5FUPsjPT09AvaqJxZGlAVPZrvBRNwaCaL/dkD+cVVfKeYfZe6JAMVjFCJv/mxijM55+UvgsIkVJKcZxoT8YkpWNy99MyFtt3xExzyBIxYfXmNR6WdJCp8ck= 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=IoK//gjw; arc=none smtp.client-ip=209.85.214.169 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-f169.google.com with SMTP id d9443c01a7336-1dc96f64c10so4033545ad.1 for ; Wed, 28 Feb 2024 17:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709168503; x=1709773303; 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=SchlyZ4UU3SdoafkJQBbnMQVK65WVY/e6Ayv+xuGpWo=; b=IoK//gjwUiOYb+Esw9RAZOx+xHR2i6F6M60HewrN4Y9wqUNIhItSeuomVlSMv5njr8 xBCwfmj2MeMNjMwygSlWTcdPIQKwCw1pFBr/9hBIXS//Z9+k26vwEJiaDROnd9m8Mc1j xlQFM26aUOhs7Sm3c/vkTOtcx0WdxGQNgPzThhz7FnuUuc1/JecUSKYyKewVkEbZLW7C Y35p6IisI2y1GX4tMTLqktTCSqi9N7vhA6QO0QZsMFV+lqof5qFeLPhU5UtDwvTQGOG7 ySg+bAxooi4via9On91x6aHO0EbY8CeLdpdMWgSKyygpNL1GiOynS8AvFtpcJSfFmbWy ITTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709168503; x=1709773303; 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=SchlyZ4UU3SdoafkJQBbnMQVK65WVY/e6Ayv+xuGpWo=; b=SORPgw1znNb9fA/ynTO0+CmhtmvV/WgoozASxR8DWSZe3U64xKkbBg2s4/jyPowXox X5Ibzj3ljCdccmzW3W9mH40LuXidBPcjRQKVQ3f61P75HSzQeI9HtErtmqJeVlRQa6G1 BOTN92nOlOrq432h/TcazMZWrc5w4h6jYSJk/jlfZtvg1LxlKM90xFg0UCGQ8GKzzLhG UfxiMgFMAcCdaQ/DwVbvJlLf9CgUqE0UtcqWHafSo+xc5wUOlEHO520bcmzZRxMyRiWO 4j3Jh4opFpV4D5hOfe+Y11HdVaSCzG/bFhBp7hXHDyhBLtdoHBdkKHeAVyUb/b/bxn3d pGmg== X-Gm-Message-State: AOJu0YzBvydZk0+d4T/r//sVVz5dXyqQmtu3jAHkxJcQwRvmPSyQFy3y SY0iF9znMaboUgcVggUZUdPLaF5fq0pu3BjnBLpmZUzCTJmqCMKWVY0f4RsHeybPjolZ5Vh2jQ2 h X-Received: by 2002:a17:902:f54f:b0:1dc:cb84:d8d5 with SMTP id h15-20020a170902f54f00b001dccb84d8d5mr788795plf.50.1709168503594; Wed, 28 Feb 2024 17:01:43 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm78043plx.144.2024.02.28.17.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:01:43 -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 , Icenowy Zheng , 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 , Will Deacon Subject: [PATCH v4 01/15] RISC-V: Fix the typo in Scountovf CSR name Date: Wed, 28 Feb 2024 17:01:16 -0800 Message-Id: <20240229010130.1380926-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240229010130.1380926-1-atishp@rivosinc.com> References: <20240229010130.1380926-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 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) \ -- 2.34.1