Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp172469rdh; Wed, 25 Oct 2023 21:20:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDYbQRy94egNMikL2wIA6AGUvD1Cu6wuVjH54vvT4UmOT6nqnheYHYuHFF5DxHQAHnYYbq X-Received: by 2002:a25:b206:0:b0:d91:fdb:afd4 with SMTP id i6-20020a25b206000000b00d910fdbafd4mr16473581ybj.16.1698294047042; Wed, 25 Oct 2023 21:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698294047; cv=none; d=google.com; s=arc-20160816; b=FHmJQbkP2XQ/wOko8jk6pCt3PxsFeeC1hjdoG6fumefEB9IKj+KBzpRCjwyGoS5jNT uNTiCgfJEtI38uGLmcuInbIkUTEhPNzQryxJA3FDMoDlmNrqzlV3D/1/a7nkgQi3J/do eXwlp7Z6PfpX5ZOxug2D7JeQOl3liYpBdFuUJ+NBPpf9pFqR+AWmYEMievxPeOI5wvdl dobrQO0MbNDbD3a5qQIazMceYYtSzpUVtaWl7IzdAsljnhaqQgVr6eRYXsjEUGtzGuk8 9F0EKxWikwrUrFmxZp6H4EdXo9kPk+OO6tTSou7NLxO+VT69cW1cQI95QQGdRgaqF1qw D4Mg== 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=75q8gySjt19wzXTrkLK8R2Urnb9hTgP0iyJ1UPsf7lo=; fh=Pt131x4Nh+VJ+H7c1dMETwdxkn9KbRhuMaVq1OPqdjY=; b=ctg5Bo3syYrHdVrJ8a+DoaLYKaaQ2E5lkyjcpBJTFt+fIIbNDCnmmUcrUcW3hwIcu9 IMjKQ/tDr0+N6sVmqqLXKAnpxZMVoYFJpyp4Qk6ygBGc6QHabVhNBQFWOfcPjJr9qhhp 7ST8df1lLkmUoNqfKaJNXbGvole13+J8J8aI8BBxHM7kT/kiTIDTbVFhurv3jzYILTpY GEXnR1ad1R4wWR6JNXVmuRlmBcA5G5U+whoC9WuVVwuL5WbEpsJ9TSwZkEJLAMaj7PuZ CTNBoL9oaSYDQrhzfjJHItV7oUaCkpRf373VqD0lTd+kxwRavceTb9sU0OgYZ2ClCNzB tZvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=KN+PvH5x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p21-20020a257415000000b00da029ba6697si7138940ybc.151.2023.10.25.21.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 21:20:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=KN+PvH5x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 2B0F68027035; Wed, 25 Oct 2023 21:20:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbjJZEUR (ORCPT + 99 others); Thu, 26 Oct 2023 00:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjJZEUP (ORCPT ); Thu, 26 Oct 2023 00:20:15 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 544D8182 for ; Wed, 25 Oct 2023 21:20:13 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507a085efa7so1861e87.0 for ; Wed, 25 Oct 2023 21:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698294011; x=1698898811; 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=75q8gySjt19wzXTrkLK8R2Urnb9hTgP0iyJ1UPsf7lo=; b=KN+PvH5xswnK3vD2FZFjXhrx7YZbEj74ejf97Lmz7KbgtOJliA8qgZvd3bjt4n4EOs oLvM97cZbjeT7JCeU1BiLXv8LGTUlKpBRZw+9+I38eAjpalXGGEhXnbiVsF74PA4wMRU smBUBgzSNP2lgK8UJdE1bEpvY+BbITJ7/VpYt1521hy5prNU722m81g35/hZ9paxQYKy u0FkhFT9TangOPfBWjxguhVlOSBFXueby0spvTREhZq+75hoi9gpkHF73eiuNbYev1Vh tmHkYTag22t9vxwAcrNzqJgw3lbWgQ08PQnItQpKf56GGxMfgrpKt58+bC/FhisVrDBH K01w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698294011; x=1698898811; 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=75q8gySjt19wzXTrkLK8R2Urnb9hTgP0iyJ1UPsf7lo=; b=CuafO4ITidy0bY4PLFtDLbVPQ6sKgRFVBPmonUM1uSHvxG7W+E8mWVsKgyuobaTEm3 Z73tpdW6WWwSpBwFOkkjsRjx89UMf6kuyFI+zrfPFUSRc8asdjMRvqCJIWa80m0nBNHr GeSu9fmlhO20nEJufwP6VOJ2U2RO6nmZn5c6Z7VTF3m09isAdsvp18zB9UzeX3U6vWjh mNvFCannfnPYOzP24L0z8JwDe+Olli4sX/Os4lBywrcs64eTbtofOce/HEoKSvJDzmTc uJEAsgIiHhYHnvI6CsgVIIBm7XuCSCI3BmWae5plh/fXRhG4fDCHcz4tYP2oCEh5Fulg 1qzw== X-Gm-Message-State: AOJu0YxeLBfP7yNi8UvPbh+yAqml8CZFEpF/KWxkpV5lT0DaTFJMgGMD mrAFjpMLHJResJL1nFWmpKZGXXJezWEf7tzuHoANKQ== X-Received: by 2002:a05:6512:2101:b0:507:9a33:37a3 with SMTP id q1-20020a056512210100b005079a3337a3mr123916lfr.7.1698294011132; Wed, 25 Oct 2023 21:20:11 -0700 (PDT) MIME-Version: 1.0 References: <20230926205948.1399594-1-irogers@google.com> <8a6b9556-c82c-4253-a4c1-74d696ad26df@linux.intel.com> In-Reply-To: From: Ian Rogers Date: Wed, 25 Oct 2023 21:19:58 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric To: Namhyung Kim , Arnaldo Carvalho de Melo Cc: "Liang, Kan" , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 21:20:44 -0700 (PDT) On Wed, Oct 25, 2023 at 2:56=E2=80=AFPM Ian Rogers wro= te: > > On Thu, Oct 5, 2023 at 3:16=E2=80=AFPM Ian Rogers wr= ote: > > > > 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 serv= er > > > > 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 va= riant 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 > > Ping. Thanks Namhyung for picking this up. There were two other patches in the v2 patch set that Kan reviewed: https://lore.kernel.org/all/8a6b9556-c82c-4253-a4c1-74d696ad26df@linux.inte= l.com/ that I don't see in perf-tools-next. Ian > 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-metri= cs.json 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 Us= e for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_ba= ndwidth, tma_sq_full"