Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5937619rdb; Thu, 14 Dec 2023 04:13:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHfH766pS0EZ+kgSVVjnwe2OI0vVupCyZaftM8faPHCECsMAhDJnQYF5NIOXkWJTlfZ8uE X-Received: by 2002:a17:90a:6d88:b0:286:6cc1:3f17 with SMTP id a8-20020a17090a6d8800b002866cc13f17mr8272232pjk.78.1702556015184; Thu, 14 Dec 2023 04:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702556015; cv=none; d=google.com; s=arc-20160816; b=kfpGvv8tXd8CbaewIdXTUuiH1tjJiZLMDZ8VLyXIzZWX/C4j5Fq0QeBXTCnrdCECGa 8HkX9qAvNRuKxe89Ua8FjBGXxLiLaTJJtpgj3vkAiMo6pxEO5Qcheyq4aV+vSkOSUkGz 47LCUK16CqUK1sDm2ByOH5XRY/r/M38UTC+uCNAq2M5HbsnaX4NG+U64TDKlkRvwy6lA y3JAafa3KdeHiZToSqV2sMZVVFNien+b74jiHn9oIF9NrluxdRp71dNBdfFogSPHMbBc hSYZHI5+fto8knZW73NlBG6Q0z/bfTBLXI7uwOQ1dZcUwwCOX2LOpP7Ke+BwHDs1OywG bfEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RxoH3e1pqfRG5EpbAAgxwCw1oRjLeMfi1qyzwQu8z4E=; fh=oOBf863YCUz5nxlCZQoxyjaLXR9Zm0DTQlRqUgQrhSo=; b=Y/gXo2c4qAZgtnYOMI1AKH7ecVKwsIJPxXUIsiEaGZb4G/Gne+PKEHd49tkMdIx198 dZcA/Eo1d+tpsh7ODkwUiwdACMCmv8hWv7CpsQQip8t9rURnQQQw0rui6UywAl7G4H7a XOM2/TskpSWaTDQm9yjIA55tvvTIAPj7OQhHMDZg08jWcwpZcEivExF/iCZvXP+MJUqZ zBIDKrk29kGML3UzsoKtCZZd7pphO1gyoy+32jtDa5TmwBT8/9T/jyyevSftNzPc3OK1 VEOGH1YFf6DP4uP/tAtpRMh+LwSxOQFTMZ2eXL/LBFJWouFVtI9Tyn/LiPHhsh/2k1wM GBTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=ZPgGIYmc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id pg10-20020a17090b1e0a00b0028014e41ff7si11423334pjb.48.2023.12.14.04.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:13:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=ZPgGIYmc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 596F283EE9DD; Thu, 14 Dec 2023 04:13:32 -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 S1572937AbjLNMNQ (ORCPT + 99 others); Thu, 14 Dec 2023 07:13:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572923AbjLNMNP (ORCPT ); Thu, 14 Dec 2023 07:13:15 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46E87BD for ; Thu, 14 Dec 2023 04:13:21 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-28aeb049942so1542347a91.2 for ; Thu, 14 Dec 2023 04:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1702556001; x=1703160801; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RxoH3e1pqfRG5EpbAAgxwCw1oRjLeMfi1qyzwQu8z4E=; b=ZPgGIYmcWPNimFXItEwd7PxKG6mCBrxpr8rzWObBC5fI9MwAH9tvcN6Yrdao1FOCc9 nYc7iElwrvB07IA2UV1c7TYI3BuSY5mvJrABPAdS5wSA0WbpFdReu5RfQhJrKSiOB238 9WG/bJ+Fn4OiYfPk/fD0m2OKv2kjMmCLQAuEskYsVa0N6vCn8mfh+xtU1m4SIYTA3PZn yogxhp2FCgQWBejmxldXRgLEAhJQTuqP7XNaqUVCyYnCW9n/XF8ncGUjkbrYn6LBQ1me 7BMdwVnL1uOe0YyhJuTdRtWhmVE90wn50ndrMk7QJGCrNIov0+VvH0C02ol/xwwRbpoO GQSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702556001; x=1703160801; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RxoH3e1pqfRG5EpbAAgxwCw1oRjLeMfi1qyzwQu8z4E=; b=bxV3gj3zkTGwE6lB2CEuIrYuvDiVcRp5okMg8/5mZd3JYCNlr8rMGcJp8vH/0peoA4 bGmSK8ruKMWkhFJ7ofCnjteKF++aXkk9XpkVev3N8vAp+1/ihc21vQMTiAuo7T0BOYH/ Z+isy8BbBZy1RrUtbp/js3iu0A4azX6s0iNCh91CVY1LWeXmTpe2ssHUY2dh1lIVfPxa f6ingLERfPv/leiTHuM+WoUl8kvPpOckw/LmoKJ4nRAG1sbML2raOsP8T/UPZ5Hk0hub 690J4/Z2/dn65NSmFpSDu/m+i4yxqXDfYIqiXbjIcI1RQ5wr9ZvXKV/60np10XfRuDRe skTQ== X-Gm-Message-State: AOJu0YyNy0PEZnMv5HoPgTj4Yt0tUfScvRZm6FyEI8HQWEmSWs00s2k7 /173cizGo/0jN/G+XVp4T9WiY2FuM2BoUxi5bSJA1g== X-Received: by 2002:a17:90a:ae0d:b0:286:9b69:a0f6 with SMTP id t13-20020a17090aae0d00b002869b69a0f6mr7104084pjq.39.1702556000638; Thu, 14 Dec 2023 04:13:20 -0800 (PST) MIME-Version: 1.0 References: <20231205024310.1593100-1-atishp@rivosinc.com> <20231205024310.1593100-2-atishp@rivosinc.com> In-Reply-To: <20231205024310.1593100-2-atishp@rivosinc.com> From: Anup Patel Date: Thu, 14 Dec 2023 17:43:09 +0530 Message-ID: Subject: Re: [RFC 1/9] RISC-V: Fix the typo in Scountovf CSR name To: Atish Patra Cc: linux-kernel@vger.kernel.org, Alexandre Ghiti , Andrew Jones , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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]); Thu, 14 Dec 2023 04:13:32 -0800 (PST) On Tue, Dec 5, 2023 at 8:13=E2=80=AFAM Atish Patra wr= ote: > > 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 LGTM. Reviewed-by: Anup Patel Regards, Anup > --- > 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/as= m/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 >