Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp22905rdh; Wed, 25 Oct 2023 14:57:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyUaA1BVQF0nynxkdX2RORBY3qqozizsEFOE8hmpXbyBxtj8IHh/wFKQ+VZMlJarNLadCx X-Received: by 2002:a05:6902:565:b0:da0:4e94:6143 with SMTP id a5-20020a056902056500b00da04e946143mr5778460ybt.14.1698271022493; Wed, 25 Oct 2023 14:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698271022; cv=none; d=google.com; s=arc-20160816; b=Hy878/+sL+7GZKam5uolN1RlhwzT/SWgscFdQTmlQ2nAOuHQ3Wb0iNEAE2Pf2R2nxl Q/p2i9C64Md9s1TDMEE7FWzERbx4BhZ/9g5Rb3ZmsvODFbL/bgnlmQsLC/+FWOv2jN6L 5VIU/qW01bm96edcJizhzwzje/feisqH36HtpWG0ikLbVLldBIoWBZ9/APcFcD2gu9y+ qtnH0sa6KKjVGa7wZWKbGS2Ktc/PWh0hfJmbqHYKjiBR6oQ4G3cmUgOUV0yo0ZsQsDEB VCbybhDpKbGiBrbkldeniUc+Ec51vex00YcswHVYh83Hch5wSUCCEjMs+9PvZr2Uwv5/ fKqg== 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=z6Wm2hf7VPlcOAa3DFo3dVIOp8FjeRPkG/lab590sqk=; fh=18S7Tr2iJOH1cLgfNlqGBisDy5E4VxC2w0zGsukZry4=; b=HB8AbZDKJF4yoAzZPKHNyevjTqsiopDjpp4wZ2hbKvylJUBZeRD8RkDKspZyEuzAY8 Y6Fk9z02SinCLspIvtu9z5rXi6vrvYVXaaO1RCpxVyyCZ2XR+VBkScLfuwWPPW+ZBkfF D+/HfZZD3saKiU6TZvujf8kiM/OJsNx5n0bV6j77DiQPvH8u7cUWZKe2vim5Oavv13aQ GGBLTEJA3yDNYYnHFYXokbNAJmM9LlDN0g9NwoMhwav/5Pmrz+IfzVm0V1t/o/WfoGAK cgqJy82I9mKP3TcZW73AWHHIYkZVwPkQs5ZNQTyJ0jgn8+M0sMe0g49SohP4il6KYY1l nQRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Z33ra6Rd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y189-20020a25c8c6000000b00d9ae9474481si11719896ybf.593.2023.10.25.14.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:57:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Z33ra6Rd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id CD7E880B31C6; Wed, 25 Oct 2023 14:56:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbjJYV4q (ORCPT + 99 others); Wed, 25 Oct 2023 17:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjJYV4k (ORCPT ); Wed, 25 Oct 2023 17:56:40 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808BD9D for ; Wed, 25 Oct 2023 14:56:38 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5068b69f4aeso1201e87.0 for ; Wed, 25 Oct 2023 14:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698270997; x=1698875797; 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=z6Wm2hf7VPlcOAa3DFo3dVIOp8FjeRPkG/lab590sqk=; b=Z33ra6RdU1y/uiTnpvjheeEvB4rV0s0ziD//NCsYjxNoX/+EOTaGFV2SvewrZn01p/ L8EyCSsz7pUiHHuvx8Fipr5ALqhZzFS6uMeLGxtUnf/5tABwHhsScWDPK0q4z0fPQ7lL Vj6bHxtyZCU1FVRRGucfP2ripjvZMIa8ClbGHuYeDppatjHs3RzgbkiQnRQLSHCxLTqw NRnQUzPKuCOwEQ386zwI7bjNtg57Nm3TiVLcHuunhSu13Y8f3g46r2VZyIumMqc1dEax 42KqrmjgFvz0Ew0wO+ZXGoBcf/b2nQYkyw//tWegSxMZQB73Ulq3y3CzzOGue62AjwK1 6JVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698270997; x=1698875797; 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=z6Wm2hf7VPlcOAa3DFo3dVIOp8FjeRPkG/lab590sqk=; b=r6+SjYrhYK46SyyDukJU8yz/ru6+QWIvzUW+Q/hy+YeaTi1wpQ5jme+iYqx+rOaEKm SemCmFBbN5jBx5Eadmqm2SyaY+trbrPunWz0XZ4N344iBjyNoWVXelVrzQvx3dyFSyZt lLRjUFbuhjfv99j5UwwqLNEEZyGlsYPM0CYkzJz7taGmTiSJQkPeFcRb09cUT06AEiuj +oPcXWfU3p8whoPO3d7O88JdtQn/AVpr3fMQEiJCx7ak30vaDjZORCCEr6DxtfJG6dGZ UNH0Ovh5strp7uSIQ2sU6AuaWjeVEtNxmW/pKN8//TVSOLJ30T3JAXoofSCaq1XzDFgI HRfA== X-Gm-Message-State: AOJu0YyFvXNCiSyxNyHQXX6OAmeXaA6gin+JF243poSCiCUU6v3RsA9x tYzA4NeECXvwp2gJPv39bHdxIj6i+sr/5n458fGInw== X-Received: by 2002:ac2:58ef:0:b0:501:a2b9:6046 with SMTP id v15-20020ac258ef000000b00501a2b96046mr107431lfo.7.1698270996475; Wed, 25 Oct 2023 14:56:36 -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 14:56:24 -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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 14:57:00 -0700 (PDT) On Thu, Oct 5, 2023 at 3:16=E2=80=AFPM Ian Rogers wrot= e: > > 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 PM= U > > > 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 vari= ant 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, 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= .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 f= or reads and writes [GB / sec]", > > > - "MetricExpr": "64 * (arb@event\\=3D0x81\\,umask\\=3D0x1@ + a= rb@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 = for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_band= width, tma_sq_full"