Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1984214lqe; Tue, 9 Apr 2024 06:37:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUt6C71OKqDWeeEIo1+uw40lY/g4a5OkLvogll03116NlBuR77c1F4yaV4NYzIPTXYSmgFuTktJbECP2TShogG/S9uZRKJEHz2QlAVXJA== X-Google-Smtp-Source: AGHT+IFGcsvMDSEG6ebiv4AFHT7u1DPaXaGUztep45G439uH67Gdxn6JC20YmJMB8fn6Mzv0tjhL X-Received: by 2002:a50:a45d:0:b0:56d:f5ff:83ab with SMTP id v29-20020a50a45d000000b0056df5ff83abmr8219332edb.39.1712669845570; Tue, 09 Apr 2024 06:37:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712669845; cv=pass; d=google.com; s=arc-20160816; b=nbA1KrlS6VrNqKMQQd1J4hoxdGOm0qT0smCEGdxk7zX2HaiyLGSHpJWR6WvAc+XLJS ct2mheKuPM6BZ0XCT2SJ34YWXiQ7Z1bUzYjTBzcUFdhsqyerv1h8j+4vw3DGTQS1K7Vx xKDLtVjhqb/JZqj5zXG9kfRj/r8DGXWqPoh0y9xwmwowmbQ2VaUy5gYP/PZ+l0KlNJOi o5piM4L/HTsCErTAuW4iQe/xMsP2ZltSUYFDQshu8M1MLKhQvm6LxsubNCkxNoy1nu5w h6Zj9/l7eP2PzcmHdjnrVefWKQeDwiDHLBwL9GSMH/4SINIOCM/UeJxuDhN6efhK1Hrr /wcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=av8QECdG1EEB6h0WZYiwrTGv0Vud+GmQ342gugzNPAY=; fh=Oz+uuuFfYcnQLRykSUubqMr4BYIzh3IdmOIUt7oyrAU=; b=nLge9mnAK3WR8LXGIkKTbQ9/KWYBJpHsX4ogMhI2sS+sUv5Abww8T+5XKAntE3eIP0 EXXWo0oVS4O84hoOBYamjxinVoMauJi72wIdAI+yF63BCAfyIs7lUejYhpF0lEMre1vj 2ESOfCUops0pHp7PCM4WHlEydra4/COctnuhHreNl2ewj4CVuv+BQvxuUa2RS1x3l9N3 5iNkNXizgm8V0AlJLxQg+WLKCSqj4zthCryF6RTA4A8iVEwL9g7LyY7S+OjNbqhl9ygC FCqSPsxX/jIairF05HHOIND+jweHI4Ssu2Flyvb1Mpul39BjoK9dFZVDzdfAZv/E+F17 u1Lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-136966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v4-20020a509544000000b0056c364eec14si4584466eda.653.2024.04.09.06.37.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:37:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-136966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4EE931F23F2E for ; Tue, 9 Apr 2024 13:37:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F4EC130E3B; Tue, 9 Apr 2024 13:33:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4306C130E2D; Tue, 9 Apr 2024 13:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712669606; cv=none; b=Wpe2jkL/t+cpz/5iBW9dvljuLuxv8MwG5mDokY4sxykaFuHKCwQE5CK/lAuwEYGofiw63cZAwyLMwY+PHR/0fnUsyJJzwyg9gl2Q9eReAmDJVafSnphrEKin4W1l9fffDE1E/PFzHWHxq9dnLaNh2qXyRMcvIbZMUdTOBXZIdck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712669606; c=relaxed/simple; bh=u4FR5Y+UEiIgK8eplC+h87f4MqY4iTWX06FqasbSRuI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s/zY7ejd/cE4Fodulanb2z4WtCOUCu+zd9LyrzSTDm1B6L3dBmrKUtPxhZlssiumIh+cvcwssn1+wUl5WDb7qlU6hleS6SRN4nf3WGhqeYt6SLHyH73MYaB9w0wsPg+8w7ZWRkBixtKbUawOFkjOPqgIMlWc1KhF+7dluygHNpw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9C409139F; Tue, 9 Apr 2024 06:33:53 -0700 (PDT) Received: from [192.168.1.100] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1A97F3F766; Tue, 9 Apr 2024 06:33:19 -0700 (PDT) Message-ID: <3df74a0a-6778-43c4-a8c2-70d71c324f6a@arm.com> Date: Tue, 9 Apr 2024 14:33:18 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] perf vendor events arm64: AmpereOne/AmpereOneX: Mark L1D_CACHE_INVAL impacted by errata To: Ilkka Koskinen Cc: 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 , Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers References: <20240408214022.541839-1-ilkka@os.amperecomputing.com> Content-Language: en-US From: James Clark In-Reply-To: <20240408214022.541839-1-ilkka@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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