Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1422874lqp; Mon, 15 Apr 2024 06:19:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3F7+SNKKJGeT9YWoK7TwC9SmExQOoD0LHbAPpKlYdTccHVkbdohloJsZMR4mGKaiqU8hLXZW35cGvBhL6gauP0VX4AWIP+mTiIN9h/A== X-Google-Smtp-Source: AGHT+IH4L5xPDAh3pqf/fNyorNVj9gQU+2KoWeYkgvwvBymBzinE6oayebxByrK9jc+1MuKfHjUx X-Received: by 2002:a05:6122:1194:b0:4dc:d7ab:355a with SMTP id x20-20020a056122119400b004dcd7ab355amr221492vkn.14.1713187180300; Mon, 15 Apr 2024 06:19:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713187180; cv=pass; d=google.com; s=arc-20160816; b=xJLgSqh9K4f5SBVIvukoMY3M7dHIAMEib8Jn2qh/MxTdH1+fPY5oxRD9upYlVPaG3l /71r258t3s0jzOGEOBcrUi5EHfkENk8Q75vf5Jvh8UfAhQ1BstJZ28RPfbPui+2PSSpW 1mck/3x/K5c4q92Tff2SfyVDVrsgobuWy0/IzWBZlV+Z7fagbZxi72JdgMTYATqRQreA GWwA2UWRWbpywwLSNMQTx4Fovk5cKgWi/1rpgAxnuO7uFYLi2Qn8r0lS20sXcD5Z5byb 9XEmSrWs3ZsHk6w/weRP0Oks06Z/staMXx7moeeKtdM0uOSR1WK4jMyQsXau6Mint4cG flQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JAzNe/Dr2zrsI9zQzFBtyYItApxCRsnWpljg+FQj6uo=; fh=A07PVLQmxMrjw434lhrdsEuZ/iFajWYGWncFpPNHnms=; b=p4NyF5z5jpaZfAwEj3Is/rqVs3xB/VJCWhjyndlQ9WNPfCAWVSl4ctFyCvvZsrBXhD ebOPZBk738+rg0RvuaOtmBUR2S0/X1jLJYgc8e0I8P6Cyj9bt0ex36z6dUx3CDFFxWFE INkorGZ9kdezr/oGtj07wQk3IbrleSU7PHV/UKqA/M2i5y7BQbh2pw0acdjQPu/C5RUS 6H21NJx/MD/dqehtHM/pulJEIRqo3JoJvrv3qZIJIXCfJ7iTi5X95TkDE93KksgJ+0e+ zWTX0GosrDGXMalUMzXATIPqlGw3jGpzON03fYODcaIvvWE2hAwb7LEdjnbCNo5Irfat oU/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=jdyoAfd1; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-145214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145214-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id en2-20020a056122280200b004d410bfb605si1355749vkb.115.2024.04.15.06.19.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 06:19:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=jdyoAfd1; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-145214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145214-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 F09421C21BD3 for ; Mon, 15 Apr 2024 13:19:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C97511272BB; Mon, 15 Apr 2024 13:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="jdyoAfd1" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 58278757FA for ; Mon, 15 Apr 2024 13:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713186111; cv=none; b=o6iKfJ2SFbW1Vr3mchlQPjyEp9xc5XuDSsMsqdp3oVu/P8/GFbazwkj1EEGECtYYBOTS0yu6a/sGt5EWMcGcmyia8pxPqvA+2eETmc8gCwhv/w5Xtq7PzEnVDKZx7ig1a5GWMx5cxJ4scIJ6u7c4oYr5EZEQw2G0P3YC6czZqwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713186111; c=relaxed/simple; bh=htFP120gjn5bGGk+lM2AXxOpa6zNGkVhobl+AAmgTfU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X0+vbwxF2uHKkL0hiVSn/7lPtbhMSe41mk5BIHO//TG8NzPby5qRNImFX37vB0gytQ+kAcDKKKCfXXOH0La5/Xe4obmrOO3JpJJiQ23TMpzuet96+0X5VXmUsd4IXWa8Rpxi1lgmj9J1CqxKIv2M7k0aelX6HnxG3XHGf0DoLpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=jdyoAfd1; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d094bc2244so36062691fa.1 for ; Mon, 15 Apr 2024 06:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1713186103; x=1713790903; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=JAzNe/Dr2zrsI9zQzFBtyYItApxCRsnWpljg+FQj6uo=; b=jdyoAfd1MxoPLVCGlGc/r3BKMlWWnP8t9Gnw2/NMHZgBTIKPwhkVcYlnI0uNHWZZA7 QIlNenptnQNcuPxpPu9iAnGiTYdbvT8Di73Nlf4ZbfRKUV9pL/chlrHYPdYGnuJBARmA Vmvx6W+P1ks2COOnJsqTf4/DuHbvxYp3EN1hy8wzcrigaWEwtivYnkGIDgDZN49KwiB4 A1mXUceZOyNFlS5/SVDtpb5+4WKBv2K5PzMxmXrCueV0MDHwNaYxpa8P1SRCNt7YB13Q 56uVANo3NioCR6bv5eY/ARsg0fMZ67p8lFUuQfSDXQ3q6gKY2HQocvxIblnirf8CI5zI WzHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713186103; x=1713790903; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JAzNe/Dr2zrsI9zQzFBtyYItApxCRsnWpljg+FQj6uo=; b=ZzozXaMhloUjADRKRwWKyDE9yGw8T1RDM1rIJteIy7KOmznl/kwlXU+bQZ7QoBjZvs 3a88bHp/CA4LtV3yh7Fi8AyzlPxwZM5F5BxvxqhHdumAE1O/glk2erauLO+kG/Ce96fX m2mWEmIhxEkNM4Z9JEYMHayTZBONQqfd9wQSWyEO/0S7PL9ohoI2s88zhtHX0wvYivjZ 3MWNMUS40NLQVj3b467IY7rTl7t/N4d6LOf2SIxPDR+AS63880p4iXxKOeAB+gb/xWHc UsSU4YIwFJVAOxHL8IMLW5Z3X2mXH1rCyF9g13R8nj5aTgiXE+zOaFqL985NLajDfDan abnw== X-Gm-Message-State: AOJu0YzMtMQ+HGWvNcMsLAzh8mM6j4KDZjdwAIqEuZbbdu07UjeHJVgO RrKEeyFbI+iYrlWeoezN2ET6PkV/QFctgEMo+bhnLAjveMK7M3WkaRbFrgvo0EY= X-Received: by 2002:a2e:b4a8:0:b0:2d8:6b0c:d91c with SMTP id q8-20020a2eb4a8000000b002d86b0cd91cmr5501216ljm.47.1713186103351; Mon, 15 Apr 2024 06:01:43 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id r9-20020adff109000000b00341de3abb0esm11994830wro.20.2024.04.15.06.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 06:01:42 -0700 (PDT) Date: Mon, 15 Apr 2024 15:01:42 +0200 From: Andrew Jones To: Atish Patra Cc: linux-kernel@vger.kernel.org, =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Conor Dooley , Anup Patel , Ajay Kaher , Albert Ou , Alexandre Ghiti , Alexey Makhalov , Atish Patra , Broadcom internal kernel review list , Juergen Gross , 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 , virtualization@lists.linux.dev, Will Deacon , x86@kernel.org Subject: Re: [PATCH v6 01/24] RISC-V: Fix the typo in Scountovf CSR name Message-ID: <20240415-b899e62329c901f59db9f146@orel> References: <20240411000752.955910-1-atishp@rivosinc.com> <20240411000752.955910-2-atishp@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240411000752.955910-2-atishp@rivosinc.com> On Wed, Apr 10, 2024 at 05:07:29PM -0700, 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: Cl?ment L?ger > Reviewed-by: Conor Dooley > Reviewed-by: Anup Patel > Signed-off-by: Atish Patra > --- > arch/riscv/include/asm/csr.h | 2 +- > drivers/perf/riscv_pmu_sbi.c | 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 2468c55933cd..9d1b07932794 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/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c > index 8cbe6e5f9c39..3e44d2fb8bf8 100644 > --- a/drivers/perf/riscv_pmu_sbi.c > +++ b/drivers/perf/riscv_pmu_sbi.c > @@ -27,7 +27,7 @@ > > #define ALT_SBI_PMU_OVERFLOW(__ovl) \ > asm volatile(ALTERNATIVE_2( \ > - "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 > Reviewed-by: Andrew Jones