From patchwork Thu Feb 29 01:01:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Atish Patra X-Patchwork-Id: 208143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp110167dyb; Wed, 28 Feb 2024 17:16:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVtImSDp5lM6w/JZzAnpFORdmTkKv+ECYzAo/4EXHuBlAdh+y7ItdSjilSNXMOorJhTRx5ESbxIaRI6LnflQrLiXfZ6hg== X-Google-Smtp-Source: AGHT+IGaPIWG2D071Bj0BOa6QSUh1onvnSo9+0vIS+2ZWsMJoOEZk2XmG2KyJ5FsedbNswBGcBAY X-Received: by 2002:a17:90a:5417:b0:299:398e:5cee with SMTP id z23-20020a17090a541700b00299398e5ceemr863970pjh.13.1709169388258; Wed, 28 Feb 2024 17:16:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709169388; cv=pass; d=google.com; s=arc-20160816; b=XWO8C7EmXI7VDaltPYZg7nXHg33aIX1s2j/GWEs8TWBz63wBsNGrzWpkvvW12n3fMV RSCKpwaUjchtORlhJ1ANomrPQeKUbOcX/mx/TQd1AGT1r31S6X+Cy2ehGnRjmWoebsob jnidQKPNBPml0IZV60efu5t46xm6NUs2/B7/Ai5HXSxClWuv+jb6xX4NGeUAgDcK4wPy j8/LF3i8PA3FxI6xZFQNv8GobZ/NFcFl6zpLyTfQobbWaHTEht/bgSMpHEf6tncfS0pd uCyZpeyRvw2vHrhyJWmCxXJdjubcIkmY9zbq7LElL4yGezGbS48LU1rEu/1WVDeIMd9e 9hrg== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85968-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g8-20020a17090a708800b0029af7d746edsi389767pjk.46.2024.02.28.17.16.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:16:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85968-ouuuleilei=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="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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85968-ouuuleilei=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 BB149B24077 for ; Thu, 29 Feb 2024 01:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC9DC45957; Thu, 29 Feb 2024 01:01: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="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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792194000392230762 X-GMAIL-MSGID: 1792194000392230762 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 Reviewed-by: Clément Léger --- 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) \