Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp735584lqb; Wed, 17 Apr 2024 09:14:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsraP7OzD8UADJLyrz8VIwrd6hhCVJMTuf1k+4QeDmYF3LPsj5MSKyFVqWnUc1SZXUngZGfO8I+Cb/FCHZ5egKJAmPVsh6Y2k5aYCY/A== X-Google-Smtp-Source: AGHT+IGC7SULkr/FWMO23Qc9Em7pmtZEpRA7K0RvCjsEr3IoghG1nR3w+kPTzcDtAS1Tx2913a/R X-Received: by 2002:a05:6a20:da9c:b0:1a3:bfce:ec9e with SMTP id iy28-20020a056a20da9c00b001a3bfceec9emr113155pzb.18.1713370486750; Wed, 17 Apr 2024 09:14:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713370486; cv=pass; d=google.com; s=arc-20160816; b=xycwqF7G3c3l8z2UdwbTlxZCR+l5E57+YJnMZGjavQT0cld0fsmaoHTXxz4fs4U8Ee tCrlTQ8ZW1SBamqg8owE+zKfI3lqB9JhG6h+MgSTEk3I5ePQUGMrEFtWKApYFvV1kcxS SL4nnroegmZXml0QHdYwVXyhb2Uns6l4TdNlHEllopNuaLuZHmjzYtBfaTzkWs9w1MOd TKLIBmy6AKzmvJ0wycRYptS0aOrFj3O+LEsPY77B/XEp6klKCONdEUy7xRzfPrjDo4B8 Ru14XwgcvWGcLPpwpjpCZT3I6pw2OPlSzEPWyWorpaCrVImi60n34Ycoh6jaMIHDYcAt etYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iRYbiQou/rb2JBJh6bYQ7xgFjJzs8YYLm+gWkETOzbQ=; fh=Rms5IsT4FMOpVj84mQz3+OD+22/MEyMBYiCZnyCue9g=; b=FOYN5mSD3E/lTm5LJOVFvUhADBvQclWIzGs4otOjVD1shSV5WwYXGRcmjgnW/E2oWH Jvlc2+KNK4k0Z2zbm17ByuviqRPpLLcBtgGrgSGBw3x1nAybMYEMiL68Er/Gk8wTyOKG gYPOJUsx5+gkbpTQldiP2eKUMJKOuwtTxw331QUoEjLr3vXrSKkGYu6XOcO1Y3mCUheV wNFWgVKcnjQO65tTHs2NFsMsgbXmNq3ushgVfe9qsooAUxQkKTQ1a8mM8BLAFqX0ZYt/ pKqxiVk5a1dBkL0fJRVw+jMeZl3CQuQwHRmFaIpbDz/kmZ6w3SAJv9rhyHubmhvDHRpV rP7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="X8956/kW"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fm7-20020a056a002f8700b006e6b2b2b0f8si11556401pfb.354.2024.04.17.09.14.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 09:14:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148853-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b="X8956/kW"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 1808BB24B9E for ; Wed, 17 Apr 2024 15:52:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 018BA1487DE; Wed, 17 Apr 2024 15:51:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X8956/kW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 287A11482E0; Wed, 17 Apr 2024 15:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369109; cv=none; b=NpfTrVVyLSDIeaXtNAR2LA6BD1Amw4ClrWO9koOBAWj9MXBYdm8WQlSZCOWRVwraq4dyW5T4sX7Skozr3lYO32drrS90ZB1FFdUqvFJE2bDHquOl+8VAfWBat9dTOlPm/eBmGndCYHmuEkZ+g3jlJeHSczzjtio6EdnOd23Hp7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369109; c=relaxed/simple; bh=WLarpyYIWWkkchcEU9ZfUR3cQ8pEaw4tJ/8AER+TFKk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=us/NL64U7tti9TK2hA/YwhExcItP0Q9IziJNWWq7UNlR5NPE3wvmXznqSFYnCBEsCVAejLvrWTDfCPemc3BBwLQekp0lzZQ2kxrrTU/sajvyFGlXspjm9cxbSjSFMwlQzzLiZVyav28fDaJ/mfIjc36Yt9p9yyFv4TseIgHKpvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X8956/kW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AF1FC072AA; Wed, 17 Apr 2024 15:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713369108; bh=WLarpyYIWWkkchcEU9ZfUR3cQ8pEaw4tJ/8AER+TFKk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X8956/kWgEy3matkA3uhP5tLIBv/of2FydJ4VmB+tierc5whIG7Oqb4ZHSb3jiu8j Ag7bo6Fumapa1dMDJdWiZpoUmdF/Le46cewurhe3QgMnGsxbOF23lDEYecDp7wNxQe ptZfPNxcR6yBm7Aq7oyCK/tLT62TUupFkYgPaiYW1bDe/FnFAk/sRE7Cafe0mkhrYb 7LEkgwmhQsO41Y3o8zyCQJDDhZVKG5GkSyWk5d+VL5oqUgdQqjKYQOhqYDu0h+P0Vk nbqazQrKW+CB+/eBjA554zLLXTHe4ZLVHVeRk8JmVxcZ31NTEq08LxCHOB7WWEkuQH MM6fhU3TGfqEQ== Date: Wed, 17 Apr 2024 12:51:45 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: Ilkka Koskinen , Will Deacon , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, John Garry , Mike Leach , Leo Yan , Namhyung Kim , Ian Rogers Subject: Re: [PATCH] perf vendor events arm64: AmpereOne/AmpereOneX: Mark L1D_CACHE_INVAL impacted by errata Message-ID: References: <20240408214022.541839-1-ilkka@os.amperecomputing.com> <3df74a0a-6778-43c4-a8c2-70d71c324f6a@arm.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=us-ascii Content-Disposition: inline In-Reply-To: <3df74a0a-6778-43c4-a8c2-70d71c324f6a@arm.com> On Tue, Apr 09, 2024 at 02:33:18PM +0100, James Clark wrote: > On 08/04/2024 22:40, Ilkka Koskinen wrote: > > L1D_CACHE_INVAL overcounts in certain situations. See AC03_CPU_41 and > > AC04_CPU_1 for more details. Mark the event impacted by the errata. > > > > Signed-off-by: Ilkka Koskinen > > --- > > tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json | 4 +++- > > tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json | 4 +++- > > 2 files changed, 6 insertions(+), 2 deletions(-) > > > > diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json > > index 7a2b7b200f14..ac75f12e27bf 100644 > > --- a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json > > +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json > > @@ -9,7 +9,9 @@ > > "ArchStdEvent": "L1D_CACHE_REFILL_RD" > > }, > > { > > - "ArchStdEvent": "L1D_CACHE_INVAL" > > + "ArchStdEvent": "L1D_CACHE_INVAL", > > + "Errata": "Errata AC03_CPU_41", > > + "BriefDescription": "L1D cache invalidate. Impacted by errata -" > > }, > > { > > "ArchStdEvent": "L1D_TLB_REFILL_RD" > > diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json b/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json > > index c50d8e930b05..f4bfe7083a6b 100644 > > --- a/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json > > +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json > > @@ -9,7 +9,9 @@ > > "ArchStdEvent": "L1D_CACHE_REFILL_RD" > > }, > > { > > - "ArchStdEvent": "L1D_CACHE_INVAL" > > + "ArchStdEvent": "L1D_CACHE_INVAL", > > + "Errata": "Errata AC04_CPU_1", > > + "BriefDescription": "L1D cache invalidate. Impacted by errata -" > > }, > > { > > "ArchStdEvent": "L1D_TLB_REFILL_RD" > Reviewed-by: James Clark Thanks, applied to perf-tools-next, - Arnaldo