Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp23198rdb; Thu, 5 Oct 2023 15:17:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWSrveWClrDThSmA17D5C3mQBkC8LAaXaKOCqSD52ZhBYJzot11bi8ih4bwZF2sc3ZNd5i X-Received: by 2002:a05:6808:1489:b0:3ad:ffa4:e003 with SMTP id e9-20020a056808148900b003adffa4e003mr7511319oiw.33.1696544230769; Thu, 05 Oct 2023 15:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696544230; cv=none; d=google.com; s=arc-20160816; b=h0QdXhk95scY3pIP8DZfWNi7FxrmtvG/9c1pwIGXCE1glkiH2fE6uUQrRqde295itn SqoujoJDqbaOIOS0Nc76hv4uoO5aIZCKVT71jCte1D2wZohSPBDaiE8xOJvfg1R/XlSK hoNxsvWsZ5eDLJmqCip9+LfaCBUPpGLemIYm20tnszUXGc/tXHpw2yGXivdHf8/4lCWM bPXVB2e9wo+vskL1vIkfVxrt8y5c0J+TzxBt8s+klUpgcwPSza8/2e1/94PTB2CI38HP LpMf7kVqbgCDKv0cyB/xOI0DtLgiccRDlqXYLjlu+VOqJ1y6gkFxKgNNfbyqG3eUlCux +ntQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0bay8cunWQ05UAT3X4nRQGJsULFuIk9d15GtcH157QY=; fh=18S7Tr2iJOH1cLgfNlqGBisDy5E4VxC2w0zGsukZry4=; b=Ue0U+/187XemCkeXoEXgjr29YKR4Jh2hID53siP15Q0Ap1UloDB+ZvXGrN6gYfLlCw XULb6/2iydvhy1lT0dkUY6p70YYb6E9dJMTdnYmlYTxFVHO6npBVqsl5wsU+PHCslqhU UtEQbOlJmExWS3zJfVaA0c3tHpO8Iz9Lpl13ed3MQt97S5ukliLIkRItSqJr9t5AH9R+ sPci1UiSbTgL+yPVNudtY/l49PWmDudiM3/AN3tdIIVRWeVfvY/aNxGFvUfd43AN+phZ rd852M0/GXVluq/3eTnGIlfV3WVgfd4B4GEgKpoGYQM4w/GIESi8ct7yPDO4kLlOhIGb QT9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=T364UsNn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x6-20020a63fe46000000b00573f7e9d75asi2241485pgj.646.2023.10.05.15.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 15:17:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=T364UsNn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5012780CB178; Thu, 5 Oct 2023 15:17:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbjJEWQx (ORCPT + 99 others); Thu, 5 Oct 2023 18:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjJEWQv (ORCPT ); Thu, 5 Oct 2023 18:16:51 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEC9FD9 for ; Thu, 5 Oct 2023 15:16:49 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-405459d9a96so37255e9.0 for ; Thu, 05 Oct 2023 15:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696544208; x=1697149008; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0bay8cunWQ05UAT3X4nRQGJsULFuIk9d15GtcH157QY=; b=T364UsNnb7nVogvMpdNXn/bH76TAXh5Y8/IWxIy7NMo+VuS4zz8GAy8WzqbDO0GhUl XTlahc36FQeAM1/tOQSZCgPEbe5EOSqNKXoiVzq27f4Vz31oEjJ/kIPTyMlTVKYwT7hD FOHT1vxEu3HRlcHQVMyUEKolli1tgD4Yawvdb2qhQ3EbwCuh/F/SmrBT9CS6XujYBLQ5 p+zpSEGdp0Fs0W4s2/s7AoNGoOu0po4fAzhuOehWCSx7TQsAipl/m4C4EIxUTLBqwKpU cdYMj0fMKYCxK9GmJlFEGrGqL3T+kZVVyPpzsC7i+ba4dcIEePgoP2IH7rz4sskmlXgk 4p/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696544208; x=1697149008; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0bay8cunWQ05UAT3X4nRQGJsULFuIk9d15GtcH157QY=; b=P2n7hQzwg3s0KZRmXlEAMlGYwhgrVAylTNviwASg+/tDxanSYSP44+UJHFwbCcWiDJ sSHmsKKXQpYq9gyqDxse4YsaFZ22oB/aitO/DQceU2b/pcuL8sD08QGjGZt+/v3jb4YB YjGVpnJo+XyVGJLSYuOH2Did9mxORLISR393gq5ljmP2XGLZhFsJqawyD49378oM3VHf m3/uZox2kUZpBXCSxjN02YYT/wS7y4XWh74jMXAIRBmabyjCFIlDUjLv0tTIMi1VqpbC 1KdqLwaEymd0xApls9H5JlxdyNVS/rWrSs/t/Yc31gzbYlYshVYosTkuOfTlNt7Utay/ 657A== X-Gm-Message-State: AOJu0YzqtDYGpAxAfJew7Y/qCy1/UeJtZihiwGkLSxq+N9Z1UZGPGxOg NjUVq2L6VBhyfpnP1ijz2h7Wvxb90zqYawpdz8s7jg== X-Received: by 2002:a05:600c:1884:b0:3f6:f4b:d4a6 with SMTP id x4-20020a05600c188400b003f60f4bd4a6mr110415wmp.7.1696544208096; Thu, 05 Oct 2023 15:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20230926205948.1399594-1-irogers@google.com> <8a6b9556-c82c-4253-a4c1-74d696ad26df@linux.intel.com> In-Reply-To: <8a6b9556-c82c-4253-a4c1-74d696ad26df@linux.intel.com> From: Ian Rogers Date: Thu, 5 Oct 2023 15:16:36 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric To: "Liang, Kan" Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Perry Taylor , Caleb Biggers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 05 Oct 2023 15:17:05 -0700 (PDT) On Wed, Sep 27, 2023 at 6:47=E2=80=AFAM Liang, Kan wrote: > > > > On 2023-09-26 4:59 p.m., Ian Rogers wrote: > > Broadwell-de has a consumer core and server uncore. The uncore_arb PMU > > isn't present and the broadwellx style cbox PMU should be used > > instead. Fix the tma_info_system_dram_bw_use metric to use the server > > metric rather than client. > > > > The associated converter script fix is in: > > https://github.com/intel/perfmon/pull/111 > > > > Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell varian= t events/metrics") > > Signed-off-by: Ian Rogers > > --- > > Thanks Ian. The whole patch series looks good to me. > > Reviewed-by: Kan Liang Would be good to pick this up in perf-tools-next. Thanks, Ian > Thanks, > Kan > > > tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.j= son b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json > > index 8fc62b8f667d..d0ef46c9bb61 100644 > > --- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json > > +++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json > > @@ -652,7 +652,7 @@ > > }, > > { > > "BriefDescription": "Average external Memory Bandwidth Use for= reads and writes [GB / sec]", > > - "MetricExpr": "64 * (arb@event\\=3D0x81\\,umask\\=3D0x1@ + arb= @event\\=3D0x84\\,umask\\=3D0x1@) / 1e6 / duration_time / 1e3", > > + "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) = / 1e9 / duration_time", > > "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW", > > "MetricName": "tma_info_system_dram_bw_use", > > "PublicDescription": "Average external Memory Bandwidth Use fo= r reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwi= dth, tma_sq_full"