Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp251819rdg; Thu, 12 Oct 2023 04:57:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsRTKSHeVyasIOvcbwOMnCgu6F+36LvGr2U/scLf62WZdmF7zTJJmJD0RkZR5wko/PPuCs X-Received: by 2002:a05:6a00:15ce:b0:68e:3d83:e501 with SMTP id o14-20020a056a0015ce00b0068e3d83e501mr30012914pfu.13.1697111842461; Thu, 12 Oct 2023 04:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697111842; cv=none; d=google.com; s=arc-20160816; b=tVOlEJ50+6AcPK/A+SZ7D0tvww7dVbeI1ITn3I1NhSx0f+HNf3zFd5o40Mmi93lfqn am1PoheSKtTJdZ9G9qg00itTYTac8q7Xak245sNYndXzpkBIyBuySqkO5wYuc1uJCiyO ZJHOT2hb4DB5mltLgi62jtJHIffW/FM79lp/04zkavY90UERB+tMBQlC4Cnr1lvBg4hK HQ5O7Z1rECYUNEvnHqQBgUSofgJiANLz+6CIAXO4D0z6ESaVYnELYHk9xyA6UUrrr+Qc ewL81ZwQNyQPT7BBrPPclPgn3ngauuFRwRQpEIVHsFEmnA+FCvb9Z0Livwz1qaBxKRpm 8DwA== 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 :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=TVH82ydRNuOe85S6hLuCqUt3rqJmaXWKGWk0TzoS40Y=; fh=W3U2V5NWgOp/qb3+mq+iAX2Phz2PcGd1A8pr7VsL1jc=; b=n8LX9Kbwvawadm+/OQONG6gwSzrJ0nZtTMD80m7GSh2qQdtoy0gXcqTLAqCp+iHqqQ iGY/Z3RxM9RKCYkwJWrt6EhGsIriQLgxD8l0ZJKRSyBYdYuVGehb1fUcENTRmh678tW1 QrXwdfvHfvPEdy2weJK0j1CvhZg7NcHXKSjEV3+3/AdsI47wi7LaQMjpJH+52rO49poJ iq9mn/49Vs9qFw60tZyd2kKDp7jjxEMu+ZalFi5cfhF1Jt53TbGP5ahDPdjG0v9lTm8n zVfkLw2fBoOo9bCSwzV/kLbq3tg5VOAu+Dut4xYKIWmksHDX+Wx42ohxvJiWrpZqfEu1 Ve5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G73GJrIZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d4-20020a056a00244400b0068fea8a6169si14331138pfj.404.2023.10.12.04.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 04:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G73GJrIZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 604748075907; Thu, 12 Oct 2023 04:55:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347167AbjJLLzd (ORCPT + 99 others); Thu, 12 Oct 2023 07:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442961AbjJLLzF (ORCPT ); Thu, 12 Oct 2023 07:55:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4520265A0; Thu, 12 Oct 2023 04:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697111607; x=1728647607; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=gctK71zo6mU9YBXPKhgvnbP3DBiV6PqC8v9oU1p5Z8I=; b=G73GJrIZ1aDvjxYK6R+hJV9Ta3S9B+zAuiL+e59zRGpPMyyJ5xO1s4bl uYFSfDiwShBPyunIafpNCnz2RR17idratMED1kvUuIKeTs8568+cb/aee r2MWYFJbRIBUzRp0spIRYHclItBDb4Qssx0cIlUSHjwcmecuPIfgj/Dug UxV6uDSArzSBF0FqVKSVAVuc28zAdd2hdUjiTPekuJI1I0VUhxTIXejAA 3EbVOKL9iS3pJVP9P+/WNvXJ+QgrUTqBKOCH0w91xzDM9Ny3zlTfdZf9U /19psmJs7e+FXKuHYNJjUMtTiLnypqhxVXXBHT7jrFDT78/EtXa0lVbol Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="415949494" X-IronPort-AV: E=Sophos;i="6.03,218,1694761200"; d="scan'208";a="415949494" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 04:52:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="870545611" X-IronPort-AV: E=Sophos;i="6.03,218,1694761200"; d="scan'208";a="870545611" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.41.84]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 04:52:38 -0700 Message-ID: Date: Thu, 12 Oct 2023 14:52:36 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/7] perf arm-spe: Move PMU initialization from default config code Content-Language: en-US To: Ian Rogers , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Richter , Ravi Bangoria , Kajol Jain , Jing Zhang , Kan Liang , Yang Jihong , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231007021326.4156714-1-irogers@google.com> <20231007021326.4156714-4-irogers@google.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20231007021326.4156714-4-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 04:55:45 -0700 (PDT) On 7/10/23 05:13, Ian Rogers wrote: > Avoid setting PMU values in arm_spe_pmu_default_config, move to > perf_pmu__arch_init. > > Signed-off-by: Ian Rogers Reviewed-by: Adrian Hunter > --- > tools/perf/arch/arm/util/pmu.c | 2 ++ > tools/perf/arch/arm64/util/arm-spe.c | 3 --- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/arch/arm/util/pmu.c b/tools/perf/arch/arm/util/pmu.c > index d55d2b15f2e6..f25f68f84a94 100644 > --- a/tools/perf/arch/arm/util/pmu.c > +++ b/tools/perf/arch/arm/util/pmu.c > @@ -23,6 +23,8 @@ void perf_pmu__arch_init(struct perf_pmu *pmu __maybe_unused) > pmu->default_config = cs_etm_get_default_config(pmu); > #if defined(__aarch64__) > } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { > + pmu->selectable = true; > + pmu->is_uncore = false; > pmu->default_config = arm_spe_pmu_default_config(pmu); > } else if (strstarts(pmu->name, HISI_PTT_PMU_NAME)) { > pmu->selectable = true; > diff --git a/tools/perf/arch/arm64/util/arm-spe.c b/tools/perf/arch/arm64/util/arm-spe.c > index 9cc3d6dcb849..08a76734ccd2 100644 > --- a/tools/perf/arch/arm64/util/arm-spe.c > +++ b/tools/perf/arch/arm64/util/arm-spe.c > @@ -516,8 +516,5 @@ struct perf_event_attr > attr->sample_period = 4096; > } > > - arm_spe_pmu->selectable = true; > - arm_spe_pmu->is_uncore = false; > - > return attr; > }