Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp285563pxk; Wed, 2 Sep 2020 22:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwopgNDTbWWdLwfs13rtkX9MiYjqru0IbfQif5YjLC1yDrcIuQj5yFiZVb674I/tLzHdaw3 X-Received: by 2002:aa7:d785:: with SMTP id s5mr1366586edq.154.1599111725495; Wed, 02 Sep 2020 22:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599111725; cv=none; d=google.com; s=arc-20160816; b=UjFnY4F1MHFtrAmZrzKVBSG7O92cxcpvuDdjSvVvdYx8BIBE/W5Pd/1aKfM57TKrgq I+slrB6fcVDJHJL1XeDB9I3WzsG9eexxnZ9pSln4uvsHJxz6+d7lMWYYrJCh4o6/kgVZ zqfIOMOtpFJlTyF9y73WezAJb30+Ma8r/QFARR77MbSuaa0VExtzcKkfCLAxteZfCiU1 tXcVwQ8f2APUxQab/gldUMRPGlyaRutBAt+CxKB0TPtiKYaBz/cIlEY76LJ7nwXcPD6e ngxBVnY1uCg1sufMDVZtkv6PNJGwXkdcuhoiqSLM+cHKBxS1xMC7S5FHdSNPa1CSwn0o exGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gY3MI41vEU1NMjzHm+Y/kv/+1eo4t7vouQCNTLaH8tw=; b=yktZ4S42Cc3rcZQcHHeTQCr2DPn2SB0/hIM3x7WrpJ83CWIE7wGZbFdGyvHbPa7wAf SkVAe69hnXeq6kpqOgNq4yEDcZ1weJi1wAZIBdMWRO5QkxpeWIqBMQoBwXQsoxPvydX6 DUxQ/axN9lljbEz4zkH2BmxAygzrz+g4rUObpBVwB+HBzUJdjfkTNBsI43RcGkzPiu1i LwWLswBVF/d1cqzDqcn5EqQ3FsjOcPqY/XDQduOlXZEqwUg1dmOst+FcX8Hpx/xbsywy kIg6H3hx85NV7LZTmuxzREq3+USLsb0MklT1QcHp3X0r/F7Z6maSc0bi28g5vYXfGJy2 s8pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P9O9ojK9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si1238868ejo.160.2020.09.02.22.41.42; Wed, 02 Sep 2020 22:42:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P9O9ojK9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725986AbgICFkw (ORCPT + 99 others); Thu, 3 Sep 2020 01:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgICFku (ORCPT ); Thu, 3 Sep 2020 01:40:50 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1916DC061244 for ; Wed, 2 Sep 2020 22:40:48 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id j2so1711233wrx.7 for ; Wed, 02 Sep 2020 22:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gY3MI41vEU1NMjzHm+Y/kv/+1eo4t7vouQCNTLaH8tw=; b=P9O9ojK9SN4DainuCnqGEkkLw7c5IFDodPBOdOgzK+Qxwb3dd2JbPa5pie0pU6EWGY 6aqd8Tvnb0DaCmCfOHc0j+eVU3LQWj9I/WdXj/xiz+oB8SZ0pDSsikXx6claCGG1F6OH NMtN9sCXIml8rgVj6vW6eAF2d8ai35zOWun29dkU8xvq6zxmmxC0CPFuDCWUeEbTelCh WKqTIZXomFbb623MncUfm6CSk4h6Si/AR9JjpHIo49Vg2Z87BnnPzb7FTG0fHKpzOly5 uKMab0vlcNvYC06NKzcx0k9UGMSdi8tOeNttQCEb1tamPTt8s2da+L6xBV01VzpnBBP7 +6Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gY3MI41vEU1NMjzHm+Y/kv/+1eo4t7vouQCNTLaH8tw=; b=I8vE7CLcb5qQVGcVZ90PdGpaI+5n7uL5LGRdkDML+qgP56dllc/1ufpW0ulpwqULpU UPxo0NPy+tw7d40l1leLOffbxNA+QG8l6EpwwckFOZSFu7iX6JhrPgUn19M/DNARmaNm 1b807d1pGVyHg9hvFbVNilaA0mgyPsYqTlQNRs3f4Amozye4++aOu3kvY+yLil/t+WyS iioAuvxGqkM5PE1UbNkLbN4ar0OjtfbutckbSrUcFwhd3gmEQxAH8A1Yempv8PCByJW/ GJq9eGo30hZj2Y8VrSb9ENoVf5HhHwVgvLHOd9njeF+FBB0vKRyFqY9gOGxKw7kRj5kg s4aA== X-Gm-Message-State: AOAM530d1H/aYIRAWfuLe34jRHbTXc97/mhiIZRs4cyGQbO+KiQhbpT1 MjFo6RXN/sSnka1DfOBvIuq3H8cvoBU75cXR6sAkng== X-Received: by 2002:adf:fb01:: with SMTP id c1mr369410wrr.119.1599111647233; Wed, 02 Sep 2020 22:40:47 -0700 (PDT) MIME-Version: 1.0 References: <20200901220944.277505-1-kim.phillips@amd.com> In-Reply-To: <20200901220944.277505-1-kim.phillips@amd.com> From: Ian Rogers Date: Wed, 2 Sep 2020 22:40:35 -0700 Message-ID: Subject: Re: [PATCH 1/4] perf vendor events amd: Add L2 Prefetch events for zen1 To: Kim Phillips Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Vijay Thakkar , Andi Kleen , John Garry , Kan Liang , Yunfeng Ye , Jin Yao , =?UTF-8?Q?Martin_Li=C5=A1ka?= , Borislav Petkov , Jon Grimm , Martin Jambor , Michael Petlan , William Cohen , Stephane Eranian , linux-perf-users , LKML , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 1, 2020 at 3:10 PM Kim Phillips wrote: > > Later revisions of PPRs that post-date the original Family 17h events > submission patch add these events. > > Specifically, they were not in this 2017 revision of the F17h PPR: > > Processor Programming Reference (PPR) for AMD Family 17h Model 01h, Revis= ion B1 Processors Rev 1.14 - April 15, 2017 > > But e.g., are included in this 2019 version of the PPR: > > Processor Programming Reference (PPR) for AMD Family 17h Model 18h, Revis= ion B1 Processors Rev. 3.14 - Sep 26, 2019 > > Signed-off-by: Kim Phillips Reviewed-by: Ian Rogers Sanity checked manual and ran tests. Thanks, Ian > Fixes: 98c07a8f74f8 ("perf vendor events amd: perf PMU events for AMD Fam= ily 17h") > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D206537 > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Vijay Thakkar > Cc: Andi Kleen > Cc: John Garry > Cc: Kan Liang > Cc: Yunfeng Ye > Cc: Jin Yao > Cc: "Martin Li=C5=A1ka" > Cc: Borislav Petkov > Cc: Jon Grimm > Cc: Martin Jambor > Cc: Michael Petlan > Cc: William Cohen > Cc: Stephane Eranian > Cc: Ian Rogers > Cc: linux-perf-users@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: stable@vger.kernel.org > --- > .../pmu-events/arch/x86/amdzen1/cache.json | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/tools/perf/pmu-events/arch/x86/amdzen1/cache.json b/tools/pe= rf/pmu-events/arch/x86/amdzen1/cache.json > index 404d4c569c01..695ed3ffa3a6 100644 > --- a/tools/perf/pmu-events/arch/x86/amdzen1/cache.json > +++ b/tools/perf/pmu-events/arch/x86/amdzen1/cache.json > @@ -249,6 +249,24 @@ > "BriefDescription": "Cycles with fill pending from L2. Total cycles = spent with one or more fill requests in flight from L2.", > "UMask": "0x1" > }, > + { > + "EventName": "l2_pf_hit_l2", > + "EventCode": "0x70", > + "BriefDescription": "L2 prefetch hit in L2.", > + "UMask": "0xff" > + }, > + { > + "EventName": "l2_pf_miss_l2_hit_l3", > + "EventCode": "0x71", > + "BriefDescription": "L2 prefetcher hits in L3. Counts all L2 prefetc= hes accepted by the L2 pipeline which miss the L2 cache and hit the L3.", > + "UMask": "0xff" > + }, > + { > + "EventName": "l2_pf_miss_l2_l3", > + "EventCode": "0x72", > + "BriefDescription": "L2 prefetcher misses in L3. All L2 prefetches a= ccepted by the L2 pipeline which miss the L2 and the L3 caches.", > + "UMask": "0xff" > + }, > { > "EventName": "l3_request_g1.caching_l3_cache_accesses", > "EventCode": "0x01", > -- > 2.27.0 >