Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1772660rwb; Thu, 29 Sep 2022 01:56:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wrRrPOdbFxWuUwlpU+OUxeJLreALyxxZ9trbO523mwDEfaYdD4rXV/QW+j3WwD6NeU6RP X-Received: by 2002:a17:902:ce8f:b0:176:e0b3:cf14 with SMTP id f15-20020a170902ce8f00b00176e0b3cf14mr2383199plg.153.1664441782470; Thu, 29 Sep 2022 01:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664441782; cv=none; d=google.com; s=arc-20160816; b=XE4crwJEfMgeCCATGYYX3YyIdf3VUnzQekDPhc9J0nACG9esn02aj62JiPO1X3+PY8 qKLtT3zld+4WC2SJHjgJwrKftEmDeiByxG7KaiLG4U6F8gEqaPrV2DUULooauovobG/k 5VYNcAThJzZK0RbTm3W5TYAZn1PsbBuHht/Sjzg2a812bngWikdZwn0wal+6eTqWqOjs TSQB5xMCie5FA6SJMo5A9o1qlVduCeQQiFbj73Pv8GAzAJu/7l5fcc2ULN/KGM9lXix+ moddOylXYNaLA1Q0odBZ8ne46TzKeaFYa3kw2eipxVZTxei7BvYSQBbo4qRztrz4vmLw K61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qDg/gEL0eEgdgnXc1yiVDSk0qrMKJSwSQvTJw5ocBP8=; b=GU0KFnv69D01lTmRC5UBJp3to8r/vHCeIxnVkNGOL9T8ZURDfqqn3r1Jt/zTlCyxen Co5Y0JxYMxtTIwhh0E45vp+CnnkiaSPcQG+dbq9cKOy0JcnjQj6Gqn3R6pf0+qyCqoLQ eCVnWhFj0F3LaO3b0VFcxP7pnQV6Uh8RS2e5IuUBYIRhkIM/owZQE+COTH7vCv/qeiin 1oWOdXNMSjYy+QVzPW/E46XW6YHdbaPofsT3IxhfFv5tLkq7dObslncQn84XhmMBqGFE pK0qKSU1NcL2PmW3DdUaaicfqNb2gT2xmsB2U/1cYjVdmL8C/fTei9/nSccTXcGbyDw+ YIAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EiRV/+ei"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 205-20020a6219d6000000b005460624688esi5059136pfz.148.2022.09.29.01.56.10; Thu, 29 Sep 2022 01:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EiRV/+ei"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234931AbiI2IND (ORCPT + 99 others); Thu, 29 Sep 2022 04:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234998AbiI2INA (ORCPT ); Thu, 29 Sep 2022 04:13:00 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA59413BCC1; Thu, 29 Sep 2022 01:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664439178; x=1695975178; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=IQ7z/I+zLeVa5Aa6mLZ8ZxCc1tq6PQJIg4/ITcyKHNc=; b=EiRV/+ei1DIliOEr1P5AbqFsdQpPMQNZUOPgGKHXGBwgKz9MWsaNI++T TeQvSMg9RbRWAl5kQwpNorx7YftO301b/SUHYsLldUh5y82zI5msAIniq RDYe4bpg4Idmr2vB8gKi6X8hiomWo7e3tpVMSJQqHUjVBmIwFqIMCcS75 3XRBUbT+HG8lhQeAwtoP1jPMj7IJ1JfCfBeUaUhmgFz9yvtzW1ilYENXm H8/9c7mc+xB0k/yeQ2hCbHTSso2buA2Iu7uddoGOjCMDQg2V2kloeVS+W a+e0klaL6QybS7oHi3eWfra5G9oTdRObuhg9SDqHUbfV0m+s0t/Wi3uSo A==; X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="299428164" X-IronPort-AV: E=Sophos;i="5.93,354,1654585200"; d="scan'208";a="299428164" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2022 01:12:58 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="726296616" X-IronPort-AV: E=Sophos;i="5.93,354,1654585200"; d="scan'208";a="726296616" Received: from xingzhen-mobl.ccr.corp.intel.com (HELO [10.238.4.231]) ([10.238.4.231]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2022 01:12:53 -0700 Message-ID: Date: Thu, 29 Sep 2022 16:12:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v1 05/22] perf vendor events: Update Intel alderlake To: Ian Rogers , Arnaldo Carvalho de Melo Cc: Kan Liang , Andi Kleen , perry.taylor@intel.com, caleb.biggers@intel.com, kshipra.bopardikar@intel.com, samantha.alt@intel.com, ahmad.yasin@intel.com, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , James Clark , Kajol Jain , Thomas Richter , Miaoqian Lin , Florian Fischer , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian References: <20220928072204.1613330-1-irogers@google.com> <20220928072204.1613330-6-irogers@google.com> <44f59d7c-ced7-2d74-edbc-f354047339fe@linux.intel.com> Content-Language: en-US From: Xing Zhengjun In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/29/2022 10:23 AM, Ian Rogers wrote: > On Wed, Sep 28, 2022 at 7:08 AM Arnaldo Carvalho de Melo > wrote: >> >> Em Wed, Sep 28, 2022 at 04:22:53PM +0800, Xing Zhengjun escreveu: >>> On 9/28/2022 3:21 PM, Ian Rogers wrote: >>>> diff --git a/tools/perf/pmu-events/arch/x86/mapfile.csv b/tools/perf/pmu-events/arch/x86/mapfile.csv >>>> index 7f2d777fd97f..594c6e96f0ce 100644 >>>> --- a/tools/perf/pmu-events/arch/x86/mapfile.csv >>>> +++ b/tools/perf/pmu-events/arch/x86/mapfile.csv >>>> @@ -1,5 +1,5 @@ >>>> Family-model,Version,Filename,EventType >>>> -GenuineIntel-6-9[7A],v1.13,alderlake,core >>>> +GenuineIntel-6-(97|9A|B7|BA|BF),v1.15,alderlake,core >>> >>> The commit description should mention this change "Add more CPUID support >>> for ADL" >> >> I added this note, with that can I have your Reviewed-by or Acked-by? >> >> - Arnaldo > > I think I should send a v2. I can add this then. Other things for v2 are: > - this week there will likely be an update to [1] which is implicitly > integrated here. > - the topdown metrics are all percentages but are currently values > zero to 1. It is straightforward to add a ScaleUnit of 100% to them > all. > - eyeballing topdown event metrics like: > > { > "BriefDescription": "This category represents fraction of slots > utilized by useful work i.e. issued uops that eventually get retired", > "MetricExpr": "topdown\\-retiring / (topdown\\-fe\\-bound + > topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound)", > "MetricGroup": "TopdownL1;tma_L1_group", > "MetricName": "tma_retiring", > ... > it looks like the group will fail due to the missing slots event. This > can be fixed with: > "MetricExpr": "topdown\\-retiring / (topdown\\-fe\\-bound + > topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0 > * TOPDOWN.SLOTS", > > Thanks, > Ian I just test all the events for SPR/ADL, no error find. But there are a lots of metrics fail due to slots missed. |0929_005708.420|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_branch_mispredicts" -a sleep 0.1 failed. Return code is 255| |0929_005709.221|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_backend_bound" -a sleep 0.1 failed. Return code is 255| |0929_005709.544|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_memory_bound" -a sleep 0.1 failed. Return code is 255| |0929_005723.757|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_core_bound" -a sleep 0.1 failed. Return code is 255| |0929_005724.531|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_ports_utilization" -a sleep 0.1 failed. Return code is 255| |0929_005731.541|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_retiring" -a sleep 0.1 failed. Return code is 255| |0929_005731.860|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_light_operations" -a sleep 0.1 failed. Return code is 255| |0929_005732.811|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_x87_use" -a sleep 0.1 failed. Return code is 255| |0929_005741.026|ERROR| common.sh:123:do_cmd() - perf stat -M "tma_heavy_operations" -a sleep 0.1 failed. Return code is 255| |0929_005746.165|ERROR| common.sh:123:do_cmd() - perf stat -M "Memory_Latency" -a sleep 0.1 failed. Return code is 255| # perf stat -v -M "tma_branch_mispredicts" -a sleep 1 Using CPUID GenuineIntel-6-8F-3 metric expr topdown\-br\-mispredict / (topdown\-fe\-bound + topdown\-bad\-spec + topdown\-retiring + topdown\-be\-bound) for tma_branch_mispredicts found event topdown-retiring found event topdown-fe-bound found event topdown-be-bound found event topdown-br-mispredict found event topdown-bad-spec Parsing metric events '{topdown-retiring/metric-id=topdown!1retiring/,topdown-fe-bound/metric-id=topdown!1fe!1bound/,topdown-be-bound/metric-id=topdown!1be!1bound/,topdown-br-mispredict/metric-id=topdown!1br!1mispredict/,topdown-bad-spec/metric-id=topdown!1bad!1spec/}:W' topdown-retiring -> cpu/event=0,umask=0x80/ topdown-fe-bound -> cpu/event=0,umask=0x82/ topdown-be-bound -> cpu/event=0,umask=0x83/ topdown-br-mispredict -> cpu/event=0,umask=0x85/ topdown-bad-spec -> cpu/event=0,umask=0x81/ Control descriptor is not initialized Warning: topdown-retiring event is not supported by the kernel. Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (topdown-retiring). /bin/dmesg | grep -i perf may provide additional information. > > [1] https://github.com/intel/perfmon-metrics > >>>> GenuineIntel-6-(1C|26|27|35|36),v4,bonnell,core >>>> GenuineIntel-6-(3D|47),v26,broadwell,core >>>> GenuineIntel-6-56,v23,broadwellde,core >>> >>> -- >>> Zhengjun Xing >> >> -- >> >> - Arnaldo -- Zhengjun Xing