Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp22732rdb; Mon, 4 Dec 2023 18:44:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhyJ7H/TRjahfOlr7zoOn09qRdqBbCzC5c2Kll12Z/gVDMYUOWr7NeS0FN7VzHyOM0UkAO X-Received: by 2002:a05:6830:9c8:b0:6d8:585b:410b with SMTP id y8-20020a05683009c800b006d8585b410bmr5102752ott.8.1701744243635; Mon, 04 Dec 2023 18:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701744243; cv=none; d=google.com; s=arc-20160816; b=ad+3JvztV9szvmxWpOZvICl4mJpkJ5Xa2tmXz3YQjcacM706HI0ecY8gRlF5dyuY6T eVBiuh6vf65T4E77DF1WDuX020l10SPeCbQj7b7YuURLyFCt4D3Ez9e2/bQmUVzi9iKJ jOGTyNkGWWt7D/OR39XyKuBHWX23X9S+1l3W9FOU4lncIh9RV7WlHOzwo/jAqf8REEDO /0UC3DOV/+07ir2dbUH6Cljze1m69afPaSdJSnd/kWvXT5vVydT2k+Q2JRrbMuRylegq aTavrbSYdNdEKV3Typa6myoZCMHCS6+f1Qdfi67wxcle7ujDisYHnXQ9/xkrIouFAQC3 c9eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+doFZUOdGHfe3e+JV/h+u6c2KRCECetYvlqoS/1QVjk=; fh=hdWWmqr42gXb2LKR5pVlTakVhLV/lVdx71bRf5NvIOA=; b=HlCbyS1tanrn5uP5T4UpaX1//DIX7Bu99TRhmYLhbgyezK0JPc3qT0qU9iOJCFxOd/ +xfC9016LFDLGTpcPNyt0a1b5bc8TpcC+EYExSXbzzHk059w7ICMDE1aRhx/az0UqHp/ gTj3hKbqQRKHrDx8iCDve+uO5S9zNrPabz8HDY5xxnMaW9lfnRONrdGQkFJet6F/w4BA M4RDDG8250wVoZsMu0d4evNuKjtNJtihjZroQIHW78wStS+4KkAhl7BP7HdmGFPOAQq2 EH5m6XubJDK736hY4eftiX8njuGltTWGAvSztaoo006/dOiXjuRcEsNVV7hqbFPDnZ89 nj+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=2RjRvL92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 29-20020a63185d000000b00563de199314si8967898pgy.896.2023.12.04.18.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 18:44:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=2RjRvL92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 16297802AB2A; Mon, 4 Dec 2023 18:43:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346321AbjLECn1 (ORCPT + 99 others); Mon, 4 Dec 2023 21:43:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346186AbjLECn0 (ORCPT ); Mon, 4 Dec 2023 21:43:26 -0500 Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC237A4 for ; Mon, 4 Dec 2023 18:43:32 -0800 (PST) Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-58cecfb4412so3525958eaf.3 for ; Mon, 04 Dec 2023 18:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1701744211; x=1702349011; 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=+doFZUOdGHfe3e+JV/h+u6c2KRCECetYvlqoS/1QVjk=; b=2RjRvL92eNsj8HtHxT7D/PACS/tbegyGv34eb3m75Tq7agd1G9fB20BKX5JjPW5CVS DAb4/5p40HWJAMhtLajUsKBtxq5kAnZ1i8/2R/fp3GMx3UCfQViIA95TKmPV/GnGUkUd mEcjOi4p3oSSBvTagb+1XE9rOVKy5jhnZFaL/3Pe8KSlXf9P4dISyI5x57vKDOS8Qd8t SGc9mQz1YVsxSodHQm8Pb6977tfWUCKuLH6xMwmhynKtcXR9LlWmi2M9CXkiqEiY0jk9 84WG+9kQ47TgOtwhNPRsqjP5fG29G4tC1YWK8pi9J5c0ru1NofGlJNsdhVH1plQftle5 cukQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701744211; x=1702349011; 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=+doFZUOdGHfe3e+JV/h+u6c2KRCECetYvlqoS/1QVjk=; b=inmg4Ly4t+tI6lOpkGlA0t3MHEiENRuQhzjWQSqQEfZC1sCA3O+ZJrqdUWPXK7I8UR HVlnhRT/oITy+IUSFVXwaqSvb44JcjtuI643R2h12xEsmgpxp6djfkVgrLLs2Tf+hVtI surwnfGAco+5P6GXVvF+bYDcnXNtEt1JMS7WcYuI3Nw8cew7ZaVErSesCu2u4VtbU+6/ b1KMO6WkRvobbbTQuygrSeVcMNla25T5QKlFw2ORnSiJCfkJ4kIk2VbruKhKye3GSdt+ zqQf08E1f2xLXTXyMxhikYATiOCYjApCu9JGJFv+cpY+8duYHyHnNxu9CpwVH/a5ppKW o7lA== X-Gm-Message-State: AOJu0Yy4rV5vvdgkoF1C/Vm7pdEu83IoE/kxhn4jWcp1F6pMW5cjpycM W8Dlx4qm2Wu3QWs654ZpcxrQlKFbGhkhYkutF3Kfew== X-Received: by 2002:a05:6820:2a09:b0:58e:1c48:1ee0 with SMTP id dr9-20020a0568202a0900b0058e1c481ee0mr3283907oob.18.1701744211227; Mon, 04 Dec 2023 18:43:31 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id z17-20020a9d62d1000000b006b9848f8aa7sm2157655otk.45.2023.12.04.18.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 18:43:30 -0800 (PST) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Alexandre Ghiti , Andrew Jones , Anup Patel , Atish Patra , Conor Dooley , Guo Ren , Icenowy Zheng , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paul Walmsley , Will Deacon Subject: [RFC 1/9] RISC-V: Fix the typo in Scountovf CSR name Date: Mon, 4 Dec 2023 18:43:02 -0800 Message-Id: <20231205024310.1593100-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231205024310.1593100-1-atishp@rivosinc.com> References: <20231205024310.1593100-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 18:43:55 -0800 (PST) The counter overflow CSR name is "scountovf" not "sscountovf". Fix the csr name. Fixes: 4905ec2fb7e6 ("RISC-V: Add sscofpmf extension support") 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 306a19a5509c..88cdc8a3e654 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 83ed25e43553..7026fba12eeb 100644 --- a/arch/riscv/include/asm/errata_list.h +++ b/arch/riscv/include/asm/errata_list.h @@ -152,7 +152,7 @@ asm volatile(ALTERNATIVE_2( \ #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